/* ==========================================================================
   Our Love Constellation - Celestial Luxury Stylesheet (Full 6 Chapters)
   Crafted with deep cosmic aesthetics, starlight glows, and pointer physics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-celestial: 'Cinzel', serif;
  --font-romantic: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --color-cosmic-bg: #070914;
  --color-nebula-deep: #120d2c;
  --color-stardust-gold: #fde047;
  --color-celestial-cyan: #38bdf8;
  --color-twilight-rose: #f472b6;
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-cosmic-bg);
  color: #f1f5f9;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: radial-gradient(circle at 50% 20%, #151034 0%, #090a1a 60%, #04050d 100%);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
}

/* Typography Utility Classes */
.font-celestial {
  font-family: var(--font-celestial);
  letter-spacing: 0.08em;
}

.font-romantic {
  font-family: var(--font-romantic);
}

.font-serif-luxury {
  font-family: var(--font-serif);
}

/* Canvas Backgrounds */
#starlight-canvas,
#meteor-canvas,
#gravity-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#meteor-canvas {
  z-index: 2;
}

#gravity-canvas {
  z-index: 3;
}

/* Ambient Nebula Glow Elements */
.nebula-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatNebula 22s infinite alternate ease-in-out;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.15); }
  100% { transform: translate(-35px, 45px) scale(0.95); }
}

/* Glassmorphism Celestial Card */
.celestial-card {
  background: rgba(15, 17, 36, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(253, 224, 71, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65),
              0 0 30px rgba(253, 224, 71, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.celestial-card:hover {
  border-color: rgba(253, 224, 71, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75),
              0 0 45px rgba(253, 224, 71, 0.18);
}

/* Starlight Glowing Buttons */
.btn-celestial {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.25) 0%, rgba(244, 114, 182, 0.3) 100%);
  border: 1px solid rgba(253, 224, 71, 0.5);
  color: #fff;
  box-shadow: 0 0 25px rgba(253, 224, 71, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.btn-celestial::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-celestial:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-celestial:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.85);
  box-shadow: 0 0 35px rgba(253, 224, 71, 0.5);
}

.btn-celestial:active {
  transform: scale(0.97);
}

/* ==========================================================================
   0. TELESCOPE ROTARY DIAL (GATE SECTION)
   ========================================================================== */
.telescope-lens-viewport {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(45, 30, 90, 0.7), rgba(5, 7, 20, 0.98));
  border: 5px double rgba(253, 224, 71, 0.6);
  box-shadow: 0 0 50px rgba(253, 224, 71, 0.25), inset 0 0 45px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 640px) {
  .telescope-lens-viewport {
    width: 330px;
    height: 330px;
  }
}

.rotary-dial-bezel {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(253, 224, 71, 0.45);
  touch-action: none;
  cursor: grab;
  transition: border-color 0.3s;
}

.rotary-dial-bezel:active {
  cursor: grabbing;
  border-color: rgba(253, 224, 71, 0.85);
}

.dial-notch {
  position: absolute;
  width: 2px;
  height: 10px;
  background: rgba(253, 224, 71, 0.5);
  top: 4px;
  left: 50%;
  margin-left: -1px;
  transform-origin: 50% calc(min(280px, 72vw) / 2 - 14px);
}

@media (min-width: 640px) {
  .dial-notch {
    transform-origin: 50% 151px;
  }
}

.dial-pointer-needle {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 14px;
  background: #fde047;
  border-radius: 2px;
  box-shadow: 0 0 10px #fde047;
  z-index: 5;
}

/* ==========================================================================
   1. STAR CONNECT (FREEFORM DRAG & AUTO-FADE CAPTION)
   ========================================================================== */
.star-connect-arena {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 320px;
  margin: 0 auto;
  touch-action: none;
}

@media (min-width: 640px) {
  .star-connect-arena {
    height: 440px;
  }
}

.constellation-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.constellation-line {
  stroke: rgba(244, 114, 182, 0.9);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.95));
}

.temp-drag-line {
  stroke: #fde047;
  stroke-width: 3.5;
  stroke-dasharray: 6, 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px #fde047);
}

.star-connect-node {
  position: absolute;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 25%, #fde047 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  touch-action: none;
}

@media (min-width: 640px) {
  .star-connect-node {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

.star-connect-node.connected {
  opacity: 1;
  background: radial-gradient(circle, #fff 30%, #f472b6 75%, transparent 100%);
  box-shadow: 0 0 25px rgba(244, 114, 182, 0.9);
  animation: starPulse 2.5s infinite ease-in-out;
}

.star-connect-node.active-hover {
  transform: scale(1.35) !important;
  opacity: 1;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.7)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 16px rgba(244, 114, 182, 0.9)); }
}

.fade-toast {
  animation: fadeToastAnim 3.2s forwards ease-in-out;
}

@keyframes fadeToastAnim {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ==========================================================================
   2. COSMIC HARMONY MATCH (MINI GAME)
   ========================================================================== */
.cosmic-card-wrapper {
  perspective: 700px;
  width: 100%;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.cosmic-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 14px;
}

@media (min-width: 640px) {
  .cosmic-card-inner {
    border-radius: 18px;
  }
}

.cosmic-card-wrapper.is-flipped .cosmic-card-inner,
.cosmic-card-wrapper.is-matched .cosmic-card-inner {
  transform: rotateY(180deg);
}

.cosmic-card-front,
.cosmic-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(253, 224, 71, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Card Back (Facing player initially) */
.cosmic-card-back {
  background: radial-gradient(circle at 50% 35%, #181538 0%, #080917 100%);
  color: #fde047;
}

.cosmic-card-wrapper:hover .cosmic-card-back {
  border-color: rgba(253, 224, 71, 0.7);
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.3);
}

.cosmic-card-back .card-back-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.6));
  animation: floatCardIcon 3s infinite ease-in-out;
}

@media (min-width: 640px) {
  .cosmic-card-back .card-back-icon {
    font-size: 1.75rem;
  }
}

@keyframes floatCardIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Card Front (Revealed face) */
.cosmic-card-front {
  background: linear-gradient(145deg, rgba(30, 25, 65, 0.96) 0%, rgba(12, 14, 30, 0.98) 100%);
  transform: rotateY(180deg);
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.35);
  padding: 4px;
}

.cosmic-card-front .card-front-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.8));
}

@media (min-width: 640px) {
  .cosmic-card-front .card-front-icon {
    font-size: 2.1rem;
    margin-bottom: 4px;
  }
}

.cosmic-card-front .card-front-title {
  font-size: 9px;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .cosmic-card-front .card-front-title {
    font-size: 11px;
  }
}

.cosmic-card-wrapper.is-matched .cosmic-card-front {
  border-color: #fde047;
  background: linear-gradient(145deg, rgba(48, 30, 85, 0.96) 0%, rgba(16, 18, 45, 0.98) 100%);
  box-shadow: 0 0 25px rgba(253, 224, 71, 0.6), inset 0 0 15px rgba(253, 224, 71, 0.25);
  animation: cardMatchPulse 2s infinite ease-in-out;
}

@keyframes cardMatchPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.5)); transform: rotateY(180deg) scale(1); }
  50% { filter: drop-shadow(0 0 14px rgba(244, 114, 182, 0.8)); transform: rotateY(180deg) scale(1.03); }
}

/* ==========================================================================
   3. GRAVITY PULL (DUAL LIGHT PHYSICS)
   ========================================================================== */
.gravity-arena {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 290px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(253, 224, 71, 0.25);
  background: radial-gradient(circle, rgba(20, 15, 45, 0.6) 0%, rgba(7, 9, 20, 0.95) 100%);
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 640px) {
  .gravity-arena {
    height: 380px;
    border-radius: 28px;
  }
}

.gravity-orb {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  z-index: 25;
  transition: box-shadow 0.3s;
}

.gravity-orb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.gravity-orb-a {
  background: radial-gradient(circle, #ffffff 20%, #38bdf8 70%, transparent 100%);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
}

.gravity-orb-b {
  background: radial-gradient(circle, #ffffff 20%, #f472b6 70%, transparent 100%);
  box-shadow: 0 0 25px rgba(244, 114, 182, 0.8);
}

.supernova-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 10%, #fde047 50%, #f472b6 80%, transparent 100%);
  animation: supernovaExplode 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes supernovaExplode {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(4); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(5.5); opacity: 0; }
}

/* ==========================================================================
   4. ORBITING MEMORY PLANETS (3D PERSPECTIVE)
   ========================================================================== */
.orbit-universe-3d {
  perspective: 1100px;
  width: 100%;
  max-width: 460px;
  height: 290px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  overflow: hidden;
}

@media (min-width: 640px) {
  .orbit-universe-3d {
    height: 380px;
  }
}

.orbit-universe-3d:active {
  cursor: grabbing;
}

.orbit-plane-3d {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

@media (max-width: 390px) {
  .orbit-plane-3d {
    scale: 0.84;
  }
}

.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(253, 224, 71, 0.22);
  pointer-events: none;
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.05);
}

.planet-node-3d {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.planet-node-3d:hover {
  transform: scale(1.35) !important;
  filter: drop-shadow(0 0 20px currentColor);
}

.planet-tab-card {
  cursor: pointer;
  user-select: none;
}


/* ==========================================================================
   5. STARLIGHT TOSS INTO COSMIC JAR & CELESTIAL SCROLL
   ========================================================================== */
.toss-game-arena {
  width: 100%;
  max-width: 440px;
  height: 350px;
  background: radial-gradient(circle at 50% 20%, rgba(30, 27, 75, 0.75) 0%, rgba(10, 12, 30, 0.95) 100%);
  border: 2px solid rgba(253, 224, 71, 0.35);
  border-radius: 28px;
  box-shadow: 0 0 35px rgba(253, 224, 71, 0.15), inset 0 0 30px rgba(15, 23, 42, 0.9);
}

@media (max-width: 480px) {
  .toss-game-arena {
    height: 320px;
    border-radius: 22px;
  }
}

/* Target Jar */
.toss-target-jar {
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 15;
  transition: transform 0.2s ease;
}

.toss-target-jar.jar-hit {
  animation: jarBounce 0.5s ease;
}

@keyframes jarBounce {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) scale(1.15) rotate(-3deg); }
  60% { transform: translateX(-50%) scale(0.95) rotate(2deg); }
  100% { transform: translateX(-50%) scale(1); }
}

.jar-rim {
  width: 68px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid rgba(253, 224, 71, 0.8);
  background: rgba(253, 224, 71, 0.25);
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.6);
  z-index: 2;
}

.jar-glow-opening {
  position: absolute;
  top: 6px;
  width: 58px;
  height: 12px;
  border-radius: 9999px;
  background: radial-gradient(ellipse, #fef08a 20%, #f472b6 80%, transparent 100%);
  filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.jar-catch-sparkle {
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jar-catch-sparkle.sparkle-pop {
  opacity: 1;
  transform: scale(1.6) translateY(-10px);
}

.jar-body {
  width: 96px;
  height: 105px;
  margin-top: -6px;
  border-radius: 18px 18px 30px 30px;
  border: 2px solid rgba(253, 224, 71, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 25, 60, 0.65) 100%);
  box-shadow: 0 0 25px rgba(253, 224, 71, 0.2), inset 0 0 16px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jar-liquid-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, #f59e0b 0%, #ec4899 70%, #fef08a 100%);
  filter: blur(1px);
  opacity: 0.85;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.6);
}

.jar-label {
  position: relative;
  z-index: 5;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Star Projectile */
.toss-star-projectile {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  border-radius: 9999px;
  user-select: none;
  z-index: 25;
}

.toss-star-projectile .star-icon {
  font-size: 30px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.9));
  transition: transform 0.1s ease;
}

.toss-star-projectile .star-glow {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.4) 0%, transparent 70%);
  animation: starPulse 1.8s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 0.95; }
}

.toss-star-projectile.flying {
  transition: none;
  pointer-events: none;
}

.celestial-scroll-parchment {
  background: radial-gradient(circle at top, #14122e 0%, #0c0d20 100%);
  border: 2px solid rgba(253, 224, 71, 0.4);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(253, 224, 71, 0.18);
  position: relative;
}

/* ==========================================================================
   6. CELESTIAL VOWS & FUTURE JOURNEY BOARDING PASS
   ========================================================================== */
.vow-card {
  cursor: pointer;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(253, 224, 71, 0.22);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   6. CELESTIAL CHEST (LOCKED BOX) & TIMELESS PROMISE MODAL
   ========================================================================== */
.celestial-chest-box {
  width: 170px;
  height: 145px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

@media (min-width: 640px) {
  .celestial-chest-box {
    width: 200px;
    height: 165px;
  }
}

.celestial-chest-box:hover {
  transform: translateY(-6px) scale(1.04);
}

.celestial-chest-box.chest-opened {
  animation: chestBounceOpen 0.8s forwards ease;
}

@keyframes chestBounceOpen {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) translateY(-10px); }
  60% { transform: scale(0.96) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

.chest-halo {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.25) 0%, rgba(244, 114, 182, 0.15) 50%, transparent 75%);
  border-radius: 40px;
  filter: blur(12px);
  z-index: 0;
  animation: chestHaloPulse 3s infinite ease-in-out;
}

@keyframes chestHaloPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Lid */
.chest-lid {
  width: 100%;
  height: 52px;
  background: linear-gradient(180deg, #2e265c 0%, #171536 100%);
  border: 2px solid rgba(253, 224, 71, 0.65);
  border-radius: 26px 26px 8px 8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 2px 6px rgba(253, 224, 71, 0.4);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chest-opened .chest-lid {
  transform: translateY(-22px) rotateX(45deg);
  box-shadow: 0 0 35px rgba(253, 224, 71, 0.8);
}

.chest-lid-band {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b45309 0%, #fef08a 50%, #b45309 100%);
  border-radius: 2px;
}

.chest-lid-gem {
  font-size: 15px;
  color: #fef08a;
  filter: drop-shadow(0 0 8px #fef08a);
  animation: gemGleam 2.2s infinite ease-in-out;
}

@keyframes gemGleam {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Base Body */
.chest-base {
  width: 95%;
  height: 80px;
  background: linear-gradient(180deg, #181533 0%, #0d0b20 100%);
  border: 2px solid rgba(253, 224, 71, 0.5);
  border-top: none;
  border-radius: 4px 4px 20px 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(253, 224, 71, 0.1);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .chest-base {
    height: 95px;
  }
}

.chest-trim-left, .chest-trim-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(180deg, #d97706 0%, #fde047 50%, #78350f 100%);
  border-radius: 2px;
}

.chest-trim-left { left: 16px; }
.chest-trim-right { right: 16px; }

/* Golden Lock */
.chest-lock {
  position: absolute;
  top: -15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #eab308 60%, #854d0e 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.8), 0 4px 10px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
}

.chest-opened .chest-lock {
  transform: scale(1.15);
  background: radial-gradient(circle at 35% 35%, #ec4899 0%, #be185d 60%, #831843 100%);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.9);
}

.lock-glow-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(253, 224, 71, 0.6);
  animation: rotateLockRing 8s infinite linear;
}

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

/* Modal Popup Card */
.timeless-promise-card {
  background: linear-gradient(145deg, rgba(20, 22, 45, 0.97) 0%, rgba(10, 11, 26, 0.99) 100%);
  border: 2px solid rgba(253, 224, 71, 0.4);
  box-shadow: 0 0 50px rgba(253, 224, 71, 0.2), 0 25px 50px rgba(0, 0, 0, 0.95);
}

.boarding-pass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-25deg);
  animation: shinePass 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shinePass {
  0%, 70% { left: -120%; }
  100% { left: 180%; }
}

.pass-perforation {
  border-right: 2px dashed rgba(253, 224, 71, 0.35);
  position: relative;
}

.pass-notch-top, .pass-notch-bottom {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #070914;
  border: 2px solid rgba(253, 224, 71, 0.45);
  z-index: 10;
}

.pass-notch-top {
  top: -10px;
  right: -11px;
}

.pass-notch-bottom {
  bottom: -10px;
  right: -11px;
}

.time-capsule-crystal {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, #a855f7 40%, #070914 90%);
  border: 3px solid rgba(253, 224, 71, 0.5);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.6), inset 0 0 25px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: floatCapsule 5s infinite ease-in-out;
}

@keyframes floatCapsule {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.04); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #070914;
}
::-webkit-scrollbar-thumb {
  background: rgba(253, 224, 71, 0.35);
  border-radius: 9999px;
}
