/* ============================================
   lovely.day — Glassmorphic Memory Palace
   Aurora-gradient horizontal-scroll experience
   ============================================ */

/* --- Palette Reference ---
   #0a0a14 - Void Base (Deep Space Black)
   #38ef7d - Aurora Green (Oxygen Emission)
   #c850c0 - Aurora Magenta (Nitrogen Low)
   #6a3093 - Aurora Violet (Upper Atmosphere)
   #11998e - Aurora Teal (Ionospheric Blue)
   #ffffff - Glass Surface (Frosted White at 8% opacity)
   #e8e6f0 - Text Primary (Lunar White)
   #8b89a0 - Text Muted (Nebula Gray)
*/

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a14;
    color: #e8e6f0;
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg,
        #38ef7d 0%,
        #11998e 25%,
        #6a3093 50%,
        #c850c0 75%,
        #38ef7d 100%
    );
    background-size: 400% 400%;
    animation: aurora-drift 30s ease-in-out infinite;
    opacity: 0.35;
}

@keyframes aurora-drift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 0%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* --- Aurora Ribbons SVG --- */
.aurora-ribbons {
    position: fixed;
    top: 0;
    left: 0;
    width: 700vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.ribbon {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: ribbon-flow 12s linear infinite;
}

.ribbon-1 {
    animation-delay: 0s;
    animation-duration: 15s;
}

.ribbon-2 {
    animation-delay: -5s;
    animation-duration: 18s;
}

.ribbon-3 {
    animation-delay: -8s;
    animation-duration: 20s;
}

@keyframes ribbon-flow {
    0%   { stroke-dashoffset: 2000; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2000; }
}

/* --- Site Logo --- */
.site-logo {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 1000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8e6f0;
    opacity: 0.3;
    transition: opacity 0.6s ease;
    cursor: default;
    user-select: none;
}

.site-logo:hover {
    opacity: 1;
}

/* --- Scroll Container --- */
.scroll-container {
    display: flex;
    flex-direction: row;
    width: 700vw;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- Panel Base --- */
.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: center;
    overflow: hidden;
}

.panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Panel-specific aurora tints */
.panel-1 .panel-bg {
    background: radial-gradient(ellipse at 50% 50%, rgba(56, 239, 125, 0.08) 0%, transparent 70%);
}

.panel-2 .panel-bg {
    background: radial-gradient(ellipse at 30% 60%, rgba(17, 153, 142, 0.1) 0%, transparent 65%);
}

.panel-3 .panel-bg {
    background: radial-gradient(ellipse at 60% 40%, rgba(17, 153, 142, 0.15) 0%, rgba(56, 239, 125, 0.05) 50%, transparent 80%);
}

.panel-4 .panel-bg {
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 80, 192, 0.15) 0%, rgba(106, 48, 147, 0.1) 40%, transparent 75%);
}

.panel-5 .panel-bg {
    background: radial-gradient(ellipse at 40% 50%, rgba(106, 48, 147, 0.12) 0%, rgba(200, 80, 192, 0.08) 50%, transparent 80%);
}

.panel-6 .panel-bg {
    background: radial-gradient(ellipse at 60% 50%, rgba(106, 48, 147, 0.08) 0%, rgba(10, 10, 20, 0.3) 60%, transparent 85%);
}

.panel-7 .panel-bg {
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 80, 192, 0.12) 0%, rgba(56, 239, 125, 0.08) 40%, rgba(106, 48, 147, 0.1) 70%, transparent 90%);
}

/* --- Panel Dividers --- */
.panel-dividers {
    position: fixed;
    top: 0;
    left: 0;
    width: 700vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
}

.divider {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100vh;
    background: linear-gradient(180deg,
        rgba(56, 239, 125, 0.15) 0%,
        rgba(200, 80, 192, 0.12) 50%,
        rgba(17, 153, 142, 0.1) 100%
    );
}

/* --- Glass Card --- */
.glass-card {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), inset 0 0 30px rgba(255, 255, 255, 0.03);
    padding: 48px;
    max-width: 520px;
    position: relative;
}

/* Diamond lattice texture in glass cards */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0 L24 12 L12 24 L0 12Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

/* Glass edge gradient on border */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- Typography --- */
.title-enormous {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(100px, 15vw, 200px);
    color: #e8e6f0;
    mix-blend-mode: screen;
    text-align: center;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 60px rgba(56, 239, 125, 0.3), 0 0 120px rgba(200, 80, 192, 0.15);
}

.panel-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(36px, 5vw, 72px);
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: #e8e6f0;
    mix-blend-mode: screen;
    margin-bottom: 24px;
}

.body-text {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.body-text:last-of-type {
    margin-bottom: 20px;
}

.caption-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b89a0;
    display: block;
    margin-top: 8px;
}

.final-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(48px, 8vw, 96px);
    color: #e8e6f0;
    mix-blend-mode: screen;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1;
}

.dot-accent {
    color: #38ef7d;
}

.final-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8b89a0;
    text-align: center;
    margin-top: 16px;
}

/* --- Panel Content Positioning --- */
.panel-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-1-content {
    justify-content: center;
    align-items: center;
}

.panel-2-content {
    justify-content: center;
    padding-left: 10vw;
}

.panel-3-content {
    justify-content: flex-end;
    padding-right: 8vw;
}

.panel-4-content {
    justify-content: center;
}

.panel-5-content {
    justify-content: flex-start;
    padding-left: 8vw;
}

.panel-6-content {
    justify-content: center;
    padding-right: 6vw;
}

.panel-7-content {
    justify-content: center;
    align-items: center;
}

/* --- Clear Circle (Panel 7) --- */
.clear-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 60px rgba(56, 239, 125, 0.15), 0 0 120px rgba(200, 80, 192, 0.1), inset 0 0 40px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* --- Hexagonal Crystals --- */
.hexagon {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform;
}

.hex-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.12) 0%, rgba(200, 80, 192, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hex-medium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(200, 80, 192, 0.15) 0%, rgba(106, 48, 147, 0.12) 100%);
}

.hex-small {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.2) 0%, rgba(56, 239, 125, 0.15) 100%);
}

/* Crystal layer positioning */
.crystal-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.crystal-interactive {
    pointer-events: auto;
}

/* --- Panel 1 Crystals --- */
.hex-float-1 {
    top: 15%;
    right: 18%;
    animation: crystal-rotate 60s linear infinite, crystal-float-y 8s ease-in-out infinite;
}

/* --- Panel 2 Crystals --- */
.hex-float-2 {
    top: 20%;
    right: 12%;
    animation: crystal-rotate 60s linear infinite reverse, crystal-float-y 10s ease-in-out infinite;
}

.hex-cluster-1 {
    bottom: 25%;
    right: 20%;
    animation: crystal-rotate 45s linear infinite, crystal-float-y 7s ease-in-out infinite 1s;
}

.hex-cluster-2 {
    bottom: 18%;
    right: 28%;
    animation: crystal-rotate 50s linear infinite reverse, crystal-float-y 6s ease-in-out infinite 2s;
}

/* --- Panel 3 Crystals (window shape) --- */
.hex-window-center {
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation: crystal-rotate 60s linear infinite;
    width: 180px;
    height: 180px;
}

.hex-window-tl {
    top: 22%;
    left: 12%;
    animation: crystal-rotate 50s linear infinite reverse;
}

.hex-window-tr {
    top: 22%;
    left: 30%;
    animation: crystal-rotate 55s linear infinite;
}

.hex-window-bl {
    bottom: 22%;
    left: 12%;
    animation: crystal-rotate 48s linear infinite;
}

.hex-window-br {
    bottom: 22%;
    left: 30%;
    animation: crystal-rotate 52s linear infinite reverse;
}

.hex-scatter-1 {
    top: 10%;
    left: 5%;
    animation: crystal-float-y 5s ease-in-out infinite;
}

.hex-scatter-2 {
    top: 65%;
    left: 42%;
    animation: crystal-float-y 7s ease-in-out infinite 1s;
}

.hex-scatter-3 {
    bottom: 8%;
    left: 8%;
    animation: crystal-float-y 6s ease-in-out infinite 2s;
}

/* --- Panel 4 Crystals (dense) --- */
.hex-float-3 {
    top: 10%;
    left: 8%;
    animation: crystal-rotate 55s linear infinite, crystal-float-y 9s ease-in-out infinite;
}

.hex-float-4 {
    bottom: 12%;
    right: 10%;
    animation: crystal-rotate 65s linear infinite reverse, crystal-float-y 11s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(200, 80, 192, 0.18) 0%, rgba(106, 48, 147, 0.15) 100%);
}

.hex-drift-1 {
    top: 35%;
    left: 15%;
    animation: crystal-rotate 40s linear infinite, crystal-float-y 6s ease-in-out infinite;
}

.hex-drift-2 {
    top: 60%;
    right: 30%;
    animation: crystal-rotate 38s linear infinite reverse, crystal-float-y 7s ease-in-out infinite 1s;
}

.hex-drift-3 {
    bottom: 30%;
    left: 40%;
    animation: crystal-rotate 42s linear infinite, crystal-float-y 8s ease-in-out infinite 2s;
}

.hex-scatter-4 { top: 8%; left: 45%; animation: crystal-float-y 5s ease-in-out infinite; }
.hex-scatter-5 { top: 75%; left: 8%; animation: crystal-float-y 6s ease-in-out infinite 1s; }
.hex-scatter-6 { bottom: 5%; right: 35%; animation: crystal-float-y 5s ease-in-out infinite 2s; }
.hex-scatter-7 { top: 40%; right: 8%; animation: crystal-float-y 7s ease-in-out infinite 3s; }

/* --- Panel 5 Interactive Crystals --- */
.hex-interactive {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.hex-i-1  { top: 15%; left: 55%; }
.hex-i-2  { top: 30%; left: 65%; }
.hex-i-3  { top: 55%; left: 70%; }
.hex-i-4  { top: 70%; left: 55%; }
.hex-i-5  { top: 45%; left: 80%; }
.hex-i-6  { top: 10%; left: 75%; }
.hex-i-7  { top: 80%; left: 68%; }
.hex-i-8  { top: 25%; left: 85%; }
.hex-i-9  { top: 60%; left: 88%; }
.hex-i-10 { top: 40%; left: 58%; }

/* --- Panel 6 Crystals (fading) --- */
.hex-fading-1 {
    top: 30%;
    left: 15%;
    animation: crystal-rotate 70s linear infinite, crystal-fade 8s ease-in-out infinite;
    opacity: 0.6;
}

.hex-fading-2 {
    top: 20%;
    right: 25%;
    animation: crystal-rotate 60s linear infinite reverse, crystal-fade 10s ease-in-out infinite 2s;
    opacity: 0.5;
}

.hex-fading-3 {
    bottom: 25%;
    left: 35%;
    animation: crystal-rotate 55s linear infinite, crystal-fade 7s ease-in-out infinite 1s;
    opacity: 0.45;
}

.hex-fading-4 {
    top: 65%;
    right: 15%;
    animation: crystal-fade 6s ease-in-out infinite;
    opacity: 0.4;
}

.hex-fading-5 {
    bottom: 12%;
    right: 40%;
    animation: crystal-fade 9s ease-in-out infinite 3s;
    opacity: 0.35;
}

/* --- Panel 7 Mosaic Crystals --- */
.hex-mosaic {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.15) 0%, rgba(200, 80, 192, 0.12) 50%, rgba(106, 48, 147, 0.1) 100%);
    animation: crystal-rotate 60s linear infinite;
}

.hex-m-1  { top: 5%;  left: 10%; width: 100px; height: 100px; animation-duration: 50s; }
.hex-m-2  { top: 8%;  left: 35%; width: 70px;  height: 70px;  animation-duration: 55s; animation-direction: reverse; }
.hex-m-3  { top: 5%;  right: 25%; width: 90px; height: 90px;  animation-duration: 48s; }
.hex-m-4  { top: 3%;  right: 8%; width: 60px;  height: 60px;  animation-duration: 62s; animation-direction: reverse; }
.hex-m-5  { top: 25%; left: 5%;  width: 80px;  height: 80px;  animation-duration: 58s; }
.hex-m-6  { top: 30%; left: 28%; width: 110px; height: 110px; animation-duration: 52s; animation-direction: reverse; }
.hex-m-7  { top: 22%; right: 15%; width: 75px; height: 75px;  animation-duration: 45s; }
.hex-m-8  { top: 28%; right: 3%; width: 50px;  height: 50px;  animation-duration: 65s; animation-direction: reverse; }
.hex-m-9  { bottom: 25%; left: 8%;  width: 85px; height: 85px; animation-duration: 53s; }
.hex-m-10 { bottom: 30%; left: 30%; width: 65px; height: 65px; animation-duration: 60s; animation-direction: reverse; }
.hex-m-11 { bottom: 22%; right: 20%; width: 95px; height: 95px; animation-duration: 47s; }
.hex-m-12 { bottom: 28%; right: 5%; width: 55px; height: 55px; animation-duration: 57s; animation-direction: reverse; }
.hex-m-13 { bottom: 5%; left: 15%; width: 70px; height: 70px; animation-duration: 63s; }
.hex-m-14 { bottom: 8%; left: 40%; width: 90px; height: 90px; animation-duration: 51s; animation-direction: reverse; }
.hex-m-15 { bottom: 3%; right: 18%; width: 60px; height: 60px; animation-duration: 56s; }
.hex-m-16 { bottom: 10%; right: 2%; width: 45px; height: 45px; animation-duration: 68s; animation-direction: reverse; }

/* --- Refraction Spots --- */
.refraction-spot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-spot 4s ease-in-out infinite;
}

.spot-1  { top: 30%; right: 22%; width: 12px; height: 12px; background: radial-gradient(circle, rgba(56, 239, 125, 0.5) 0%, transparent 70%); animation-delay: 0s; }
.spot-2  { bottom: 35%; left: 30%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(200, 80, 192, 0.4) 0%, transparent 70%); animation-delay: 1s; }
.spot-3  { top: 40%; left: 15%;  width: 14px; height: 14px; background: radial-gradient(circle, rgba(17, 153, 142, 0.5) 0%, transparent 70%); animation-delay: 0.5s; }
.spot-4  { top: 35%; left: 25%;  width: 12px; height: 12px; background: radial-gradient(circle, rgba(56, 239, 125, 0.4) 0%, transparent 70%); animation-delay: 0s; }
.spot-5  { bottom: 30%; left: 18%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(200, 80, 192, 0.5) 0%, transparent 70%); animation-delay: 2s; }
.spot-6  { top: 20%; left: 50%;  width: 14px; height: 14px; background: radial-gradient(circle, rgba(200, 80, 192, 0.5) 0%, transparent 70%); animation-delay: 0.5s; }
.spot-7  { top: 55%; right: 20%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(106, 48, 147, 0.6) 0%, transparent 70%); animation-delay: 1.5s; }
.spot-8  { bottom: 15%; left: 35%; width: 16px; height: 16px; background: radial-gradient(circle, rgba(56, 239, 125, 0.4) 0%, transparent 70%); animation-delay: 2.5s; }
.spot-9  { top: 20%; left: 60%;  width: 12px; height: 12px; background: radial-gradient(circle, rgba(56, 239, 125, 0.5) 0%, transparent 70%); animation-delay: 0s; }
.spot-10 { top: 45%; left: 75%;  width: 14px; height: 14px; background: radial-gradient(circle, rgba(200, 80, 192, 0.45) 0%, transparent 70%); animation-delay: 1s; }
.spot-11 { bottom: 25%; left: 65%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(17, 153, 142, 0.5) 0%, transparent 70%); animation-delay: 2s; }
.spot-12 { bottom: 40%; right: 12%; width: 12px; height: 12px; background: radial-gradient(circle, rgba(106, 48, 147, 0.5) 0%, transparent 70%); animation-delay: 3s; }
.spot-13 { top: 25%; left: 40%;  width: 10px; height: 10px; background: radial-gradient(circle, rgba(56, 239, 125, 0.3) 0%, transparent 70%); animation-delay: 0.5s; }
.spot-14 { bottom: 20%; right: 30%; width: 8px; height: 8px; background: radial-gradient(circle, rgba(200, 80, 192, 0.3) 0%, transparent 70%); animation-delay: 2s; }
.spot-15 { top: 12%; left: 20%;  width: 14px; height: 14px; background: radial-gradient(circle, rgba(56, 239, 125, 0.5) 0%, transparent 70%); animation-delay: 0s; }
.spot-16 { top: 18%; right: 20%; width: 12px; height: 12px; background: radial-gradient(circle, rgba(200, 80, 192, 0.5) 0%, transparent 70%); animation-delay: 0.8s; }
.spot-17 { top: 50%; left: 15%;  width: 10px; height: 10px; background: radial-gradient(circle, rgba(17, 153, 142, 0.5) 0%, transparent 70%); animation-delay: 1.5s; }
.spot-18 { bottom: 18%; left: 25%; width: 14px; height: 14px; background: radial-gradient(circle, rgba(106, 48, 147, 0.5) 0%, transparent 70%); animation-delay: 2.2s; }
.spot-19 { bottom: 15%; right: 15%; width: 12px; height: 12px; background: radial-gradient(circle, rgba(56, 239, 125, 0.4) 0%, transparent 70%); animation-delay: 3s; }
.spot-20 { top: 40%; right: 8%;  width: 10px; height: 10px; background: radial-gradient(circle, rgba(200, 80, 192, 0.4) 0%, transparent 70%); animation-delay: 1.2s; }

@keyframes pulse-spot {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.6); }
}

/* --- Frost Particles --- */
.frost-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.frost-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: rgba(255, 255, 255, 0.2);
    animation: frost-rise 12s linear infinite;
}

.fp-1  { left: 15%; bottom: -5px; animation-delay: 0s;   animation-duration: 14s; }
.fp-2  { left: 45%; bottom: -5px; animation-delay: 3s;   animation-duration: 16s; }
.fp-3  { left: 75%; bottom: -5px; animation-delay: 7s;   animation-duration: 12s; }
.fp-4  { left: 10%; bottom: -5px; animation-delay: 0s;   animation-duration: 13s; }
.fp-5  { left: 30%; bottom: -5px; animation-delay: 2s;   animation-duration: 15s; }
.fp-6  { left: 60%; bottom: -5px; animation-delay: 5s;   animation-duration: 11s; }
.fp-7  { left: 85%; bottom: -5px; animation-delay: 8s;   animation-duration: 14s; }
.fp-8  { left: 8%;  bottom: -5px; animation-delay: 0s;   animation-duration: 12s; }
.fp-9  { left: 22%; bottom: -5px; animation-delay: 1.5s; animation-duration: 14s; }
.fp-10 { left: 40%; bottom: -5px; animation-delay: 4s;   animation-duration: 13s; }
.fp-11 { left: 65%; bottom: -5px; animation-delay: 6s;   animation-duration: 15s; }
.fp-12 { left: 82%; bottom: -5px; animation-delay: 9s;   animation-duration: 11s; }
.fp-13 { left: 5%;  bottom: -5px; animation-delay: 0s;   animation-duration: 11s; width: 4px; height: 4px; }
.fp-14 { left: 18%; bottom: -5px; animation-delay: 1s;   animation-duration: 13s; }
.fp-15 { left: 35%; bottom: -5px; animation-delay: 3s;   animation-duration: 12s; width: 4px; height: 4px; }
.fp-16 { left: 50%; bottom: -5px; animation-delay: 5s;   animation-duration: 14s; }
.fp-17 { left: 70%; bottom: -5px; animation-delay: 7s;   animation-duration: 10s; width: 4px; height: 4px; }
.fp-18 { left: 90%; bottom: -5px; animation-delay: 9s;   animation-duration: 13s; }
.fp-19 { left: 3%;  bottom: -5px; animation-delay: 0s;   animation-duration: 10s; }
.fp-20 { left: 12%; bottom: -5px; animation-delay: 1s;   animation-duration: 12s; width: 4px; height: 4px; }
.fp-21 { left: 25%; bottom: -5px; animation-delay: 2s;   animation-duration: 11s; }
.fp-22 { left: 38%; bottom: -5px; animation-delay: 3s;   animation-duration: 13s; width: 4px; height: 4px; }
.fp-23 { left: 55%; bottom: -5px; animation-delay: 4.5s; animation-duration: 10s; }
.fp-24 { left: 72%; bottom: -5px; animation-delay: 6s;   animation-duration: 12s; }
.fp-25 { left: 88%; bottom: -5px; animation-delay: 8s;   animation-duration: 11s; width: 4px; height: 4px; }
.fp-26 { left: 10%; bottom: -5px; animation-delay: 0s;   animation-duration: 14s; }
.fp-27 { left: 28%; bottom: -5px; animation-delay: 2s;   animation-duration: 12s; }
.fp-28 { left: 48%; bottom: -5px; animation-delay: 4s;   animation-duration: 15s; }
.fp-29 { left: 68%; bottom: -5px; animation-delay: 6s;   animation-duration: 13s; }
.fp-30 { left: 85%; bottom: -5px; animation-delay: 8s;   animation-duration: 11s; }
.fp-31 { left: 5%;  bottom: -5px; animation-delay: 0s;   animation-duration: 10s; width: 4px; height: 4px; }
.fp-32 { left: 14%; bottom: -5px; animation-delay: 0.8s; animation-duration: 11s; }
.fp-33 { left: 22%; bottom: -5px; animation-delay: 1.5s; animation-duration: 12s; width: 4px; height: 4px; }
.fp-34 { left: 33%; bottom: -5px; animation-delay: 2.2s; animation-duration: 10s; }
.fp-35 { left: 42%; bottom: -5px; animation-delay: 3s;   animation-duration: 11s; width: 4px; height: 4px; }
.fp-36 { left: 55%; bottom: -5px; animation-delay: 3.8s; animation-duration: 10s; }
.fp-37 { left: 65%; bottom: -5px; animation-delay: 4.5s; animation-duration: 12s; width: 4px; height: 4px; }
.fp-38 { left: 75%; bottom: -5px; animation-delay: 5.5s; animation-duration: 11s; }
.fp-39 { left: 85%; bottom: -5px; animation-delay: 6.5s; animation-duration: 10s; width: 4px; height: 4px; }
.fp-40 { left: 93%; bottom: -5px; animation-delay: 7.5s; animation-duration: 11s; }

@keyframes frost-rise {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-105vh) rotate(180deg); opacity: 0; }
}

/* Panel 7 frost converges to center */
.frost-converge .frost-particle {
    animation-name: frost-converge-anim;
}

@keyframes frost-converge-anim {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.3; }
    70%  { opacity: 0.25; }
    100% { transform: translateY(-60vh) translateX(calc(50vw - 100%)) rotate(360deg); opacity: 0; }
}

/* --- Crystal Animations --- */
@keyframes crystal-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes crystal-float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

@keyframes crystal-fade {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 0.25; }
}

/* --- Pulse Glow --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(56, 239, 125, 0.3), 0 0 60px rgba(56, 239, 125, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.04); }
    50%      { box-shadow: 0 0 24px rgba(56, 239, 125, 0.6), 0 0 48px rgba(200, 80, 192, 0.2), 0 0 80px rgba(56, 239, 125, 0.1), inset 0 0 40px rgba(255, 255, 255, 0.06); }
}

/* --- Progress Bar --- */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38ef7d 0%, #11998e 25%, #6a3093 50%, #c850c0 75%, #38ef7d 100%);
    background-size: 200% 100%;
    animation: aurora-drift 15s ease-in-out infinite;
    transition: width 0.15s ease-out;
}

.progress-tick {
    position: absolute;
    top: -4px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: rgba(255, 255, 255, 0.15);
    animation: pulse-glow-tick 4s ease-in-out infinite;
    z-index: 1001;
}

@keyframes pulse-glow-tick {
    0%, 100% { background: rgba(255, 255, 255, 0.15); }
    50%      { background: rgba(56, 239, 125, 0.4); }
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .aurora-bg,
    .ribbon,
    .hexagon,
    .frost-particle,
    .refraction-spot,
    .hex-mosaic,
    .clear-circle,
    .progress-fill,
    .progress-tick {
        animation: none !important;
    }

    .hex-interactive {
        transition: none !important;
    }

    .aurora-bg {
        background-position: 50% 50%;
    }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .glass-card {
        padding: 32px;
        max-width: 85vw;
    }

    .panel-title {
        font-size: clamp(28px, 6vw, 48px);
    }

    .title-enormous {
        font-size: clamp(60px, 12vw, 120px);
    }

    .body-text {
        font-size: 15px;
    }

    .clear-circle {
        width: 260px;
        height: 260px;
    }

    .final-title {
        font-size: clamp(36px, 7vw, 64px);
    }

    .hex-large {
        width: 120px;
        height: 120px;
    }

    .hex-medium {
        width: 50px;
        height: 50px;
    }
}
