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

body {
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #000000 0%, #000000 70%, #1a1a2e 85%, #2d2d3a 95%, #3a3a4a 100%);
    min-height: 100vh;
    color: #e8e8e8;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    animation: twinkle 3s infinite;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 16px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 24px rgba(155, 139, 189, 0.6));
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, white, #9b8bbd, #6b5b95);
    border-radius: 50%;
    box-shadow: 0 0 10px #9b8bbd, 0 0 20px #6b5b95;
    animation: shoot 4s linear infinite;
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #9b8bbd, transparent);
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
}

@keyframes shoot {
    0% {
        transform: translateX(-100px) translateY(100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-100vh);
        opacity: 0;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(107, 91, 149, 0.3);
    z-index: 1000;
    padding: 2.5rem 0 1.2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0 1rem 0.8rem 1rem;
    scroll-behavior: smooth;
}

.navbar ul::-webkit-scrollbar {
    height: 4px;
}

.navbar ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 0 1rem;
}

.navbar ul::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(107, 91, 149, 0.6), rgba(155, 139, 189, 0.6));
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(155, 139, 189, 0.2);
}

.navbar ul::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(107, 91, 149, 0.8), rgba(155, 139, 189, 0.8));
    box-shadow: 0 0 4px rgba(155, 139, 189, 0.4);
}

.navbar ul {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 139, 189, 0.6) rgba(0, 0, 0, 0.1);
}

.dev-mode-off .moon-phase-slider,
.dev-mode-off .time-control-slider,
.dev-mode-off .clear-data-button {
    display: none !important;
}

.navbar li {
    position: relative;
}

.nav-link {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}

.nav-link:hover {
    background: linear-gradient(45deg, #6b5b95, #9b8bbd);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 91, 149, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-link.active {
    background: linear-gradient(45deg, #6b5b95, #9b8bbd);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

main {
    padding-top: 160px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.page {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

.letter-box {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.15) 0%,
        rgba(107, 91, 149, 0.25) 25%,
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(107, 91, 149, 0.2) 75%,
        rgba(155, 139, 189, 0.18) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(155, 139, 189, 0.4);
    border-radius: 15px;
    padding: 5rem;
    margin: 4rem auto 2rem auto;
    max-width: 800px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(155, 139, 189, 0.1);
    position: relative;
    color: #e8e8e8;
    font-family: 'Playfair Display', serif;
    animation: subtle-glow 6s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    0% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 60px rgba(155, 139, 189, 0.1);
    }
    100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 80px rgba(155, 139, 189, 0.2);
    }
}


.letter-content {
    position: relative;
    z-index: 1;
}

.letter-header {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #6b5b95;
    font-weight: 500;
    text-align: left;
    margin-bottom: 2rem;
}

.letter-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #e8e8e8;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.signature {
    text-align: right;
    margin-top: 3rem;
}

.sincerely {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #6b5b95;
    margin-bottom: 0.5rem;
}

.name {
    font-family: 'Allura', cursive;
    font-size: 2.5rem;
    color: #6b5b95;
    font-weight: 400;
}

.placeholder-content {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.placeholder-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #9b8bbd;
}

.cats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
}

.cat-section {
    text-align: center;
    flex: 1;
    position: relative;
}

.placeholder-cat {
    max-width: 30vw;
    max-height: 30vh;
    width: auto;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    z-index: 5;
    position: relative;
}

.placeholder-cat:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(155, 139, 189, 0.4);
}

.cat-section h3 {
    font-size: 1.5rem;
    color: #9b8bbd;
    font-weight: 400;
    margin: 0;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 2px solid #9b8bbd;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    z-index: 10;
}

.cat-section:first-child h3 {
    top: -5rem;
    left: 50%;
    transform: translateX(-30%) rotate(-5deg);
}

.autumn-text {
    bottom: -2rem;
    right: 50%;
    transform: translateX(30%) rotate(3deg) !important;
}

.cat-section:last-child h3 {
    bottom: -3rem;
    right: 50%;
    transform: translateX(30%) rotate(3deg) !important;
}

.center-tape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 11.25vw;
    max-height: 11.25vh;
    width: auto;
    height: auto;
    z-index: 1;
    opacity: 0.8;
}

.heart {
    font-size: 4rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .navbar ul {
        gap: 1rem;
        padding: 0 1rem 0.6rem 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .letter-box {
        padding: 2rem;
        margin: 2rem 1rem 1rem 1rem;
    }
    
    .letter-content p {
        font-size: 1.2rem;
    }
    
    .placeholder-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        gap: 0.5rem;
        flex-wrap: nowrap;
        padding: 0 0.5rem 0.6rem 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.moon {
    position: fixed;
    /* Position will be set dynamically by JavaScript */
    width: 84px;
    height: 84px;
    background: 
        radial-gradient(ellipse 11px 14px at 25% 25%, rgba(0, 0, 0, 0.08) 30%, transparent 60%),
        radial-gradient(ellipse 6px 8px at 35% 40%, rgba(0, 0, 0, 0.06) 40%, transparent 70%),
        radial-gradient(ellipse 4px 6px at 45% 70%, rgba(0, 0, 0, 0.05) 50%, transparent 80%),
        radial-gradient(ellipse 3px 4px at 70% 30%, rgba(0, 0, 0, 0.04) 40%, transparent 70%),
        radial-gradient(ellipse 7px 11px at 60% 65%, rgba(0, 0, 0, 0.07) 35%, transparent 65%),
        radial-gradient(circle at 35% 35%, #fafafa 0%, #f0f0f5 25%, #e8e8f0 50%, #d8d8e8 75%, #c8c8d8 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 14px rgba(248, 248, 255, 0.6),
        0 0 28px rgba(248, 248, 255, 0.4),
        0 0 42px rgba(248, 248, 255, 0.2),
        inset -6px -6px 18px rgba(0, 0, 0, 0.08),
        inset 2px 2px 11px rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: all 1s ease;
}

.moon.new-moon {
    opacity: 0.3;
    box-shadow: 
        0 0 7px rgba(248, 248, 255, 0.2),
        0 0 14px rgba(248, 248, 255, 0.1);
}

.moon.full-moon {
    opacity: 1;
    box-shadow: 
        0 0 21px rgba(248, 248, 255, 0.8),
        0 0 42px rgba(248, 248, 255, 0.6),
        0 0 63px rgba(248, 248, 255, 0.4),
        inset -7px -7px 14px rgba(0, 0, 0, 0.1);
}

.moon-phase-slider {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 230px;
}

.phase-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.phase-control-header label {
    font-size: 14px;
    color: #9b8bbd;
    margin: 0;
}

.moon-phase-slider input[type="range"] {
    width: 200px;
    margin-bottom: 8px;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1a1a2e, #9b8bbd);
    outline: none;
}

.moon-phase-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #f8f8ff, #d8d8e8);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(248, 248, 255, 0.5);
}

.moon-phase-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #f8f8ff, #d8d8e8);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(248, 248, 255, 0.5);
}

.phase-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

#moonPhaseLabel {
    color: #e8e8f0;
    font-weight: 500;
}

.phase-info {
    color: #9b8bbd;
    font-size: 10px;
}

.time-control-slider {
    position: fixed;
    top: 200px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 230px;
}

.time-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.time-control-header label {
    font-size: 14px;
    color: #9b8bbd;
    margin: 0;
}

.active-button {
    background: #6b5b95;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

.active-button:hover {
    background: #9b8bbd;
    transform: translateY(-1px);
}

.active-button.active {
    background: linear-gradient(45deg, #4a9f4a, #66bb6a);
    box-shadow: 0 0 10px rgba(74, 159, 74, 0.5);
}

.active-button.active::after {
    content: '●';
    position: absolute;
    top: -3px;
    right: -3px;
    color: #4a9f4a;
    font-size: 8px;
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.time-control-slider input[type="range"] {
    width: 200px;
    margin-bottom: 8px;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1a1a2e, #6b5b95, #1a1a2e);
    outline: none;
}

.time-control-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #f8f8ff, #d8d8e8);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(248, 248, 255, 0.5);
}

.time-control-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #f8f8ff, #d8d8e8);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(248, 248, 255, 0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

#timeLabel {
    color: #e8e8f0;
    font-weight: 500;
}

.time-range-info {
    color: #9b8bbd;
    font-size: 10px;
}

.clear-data-button {
    position: fixed;
    top: 140px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #9b8bbd 0%, #b8a9d9 30%, #d4c5f0 50%, #b8a9d9 70%, #9b8bbd 100%);
    border: 2px solid rgba(155, 139, 189, 0.6);
    border-radius: 25px;
    color: #2a2a3a;
    font-size: 13px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(155, 139, 189, 0.3),
        0 0 25px rgba(155, 139, 189, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

.clear-data-button:hover {
    background: linear-gradient(135deg, #b8a9d9 0%, #d4c5f0 30%, #e8ddf5 50%, #d4c5f0 70%, #b8a9d9 100%);
    border-color: rgba(155, 139, 189, 0.8);
    box-shadow: 
        0 6px 20px rgba(155, 139, 189, 0.4),
        0 0 35px rgba(155, 139, 189, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.clear-data-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 2px 8px rgba(155, 139, 189, 0.3),
        0 0 15px rgba(155, 139, 189, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #8a7bb5 0%, #9b8bbd 30%, #b8a9d9 50%, #9b8bbd 70%, #8a7bb5 100%);
}

.lock-center {
    position: absolute;
    text-align: center;
    margin: auto;
    height: 332px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-letter-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.myLock {
    display: inline-block;
    text-align: center;
    height: 306px;
    padding: 34px 43px 51px 43px;
    margin: auto;
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 30%, #000000 70%, #0a0a0a 100%);
    border-radius: 25px;
    border: 2px solid rgba(107, 91, 149, 0.3);
    box-shadow: 
        inset 0 -4px 8px rgba(107, 91, 149, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 2px 20px rgba(107, 91, 149, 0.4),
        0 0 60px rgba(107, 91, 149, 0.1);
}

.myLock .lockInset {
    display: inline-block;
    position: relative;
    padding: 23px;
    background: linear-gradient(135deg, #1a1a2e 0%, #000000 50%, #0a0a0a 100%);
    border-radius: 15px;
    border: 1px solid rgba(107, 91, 149, 0.2);
    box-shadow: 
        inset 0 -8px 4px -4px rgba(107, 91, 149, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(107, 91, 149, 0.2);
}

.myLock .lockLine {
    position: absolute;
    margin: auto -23px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(107, 91, 149, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(107, 91, 149, 0.5);
}

.myLock .lockWrapper {
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 20%, #1a1a2e 50%, #000000 80%, #000000 100%);
    border-radius: 8px;
    height: 128px;
    border: 1px solid rgba(107, 91, 149, 0.3);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(107, 91, 149, 0.2);
    min-width: 460px;
}

.myLock .dial {
    display: inline-block;
    vertical-align: top;
    height: 128px;
    width: 71px;
    margin: 0px 4px;
    background: linear-gradient(135deg, 
        #1a1a2e 0%, #2d2d3a 10%, #3a3a4a 20%, 
        #4a4a5a 30%, #5a5a6a 40%, #6a6a7a 50%,
        #5a5a6a 60%, #4a4a5a 70%, #3a3a4a 80%, 
        #2d2d3a 90%, #1a1a2e 100%);
    border: 2px solid rgba(107, 91, 149, 0.4);
    border-top: none;
    border-bottom: none;
    overflow: hidden;
    font-size: 45px;
    font-family: 'Playfair Display', serif;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 0 10px rgba(107, 91, 149, 0.5);
    color: #e8e8e8;
    cursor: pointer;
    box-shadow: 
        inset 0 0 10px rgba(107, 91, 149, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.myLock .dial:hover {
    box-shadow: 
        inset 0 0 15px rgba(107, 91, 149, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(107, 91, 149, 0.3);
}

.myLock .dial ol {
    display: inline;
    position: relative;
    top: -60px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.myLock .dial ol li {
    display: block;
    position: relative;
    font-weight: 500;
    margin: 0 auto;
    height: 51px;
    line-height: 51px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
}

.myLock .dial ol li:hover {
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 0 15px rgba(107, 91, 149, 0.8);
}

.myLock .shadow {
    pointer-events: none;
    position: absolute;
    top: 0px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 5%,
        transparent 35%,
        transparent 65%,
        rgba(0, 0, 0, 0.9) 95%
    );
    border-radius: 8px;
    height: 150px;
    width: 100%;
}

.myLock .btnEnter {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 0 8px rgba(155, 139, 189, 0.6);
    color: #f0f0f5;
    cursor: pointer;
    margin: 20px auto 15px;
    width: 200px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px 0;
    background: linear-gradient(135deg, #6b5b95 0%, #7a6ba5 30%, #8a7bb5 50%, #7a6ba5 70%, #6b5b95 100%);
    border-radius: 12px;
    border: 2px solid rgba(155, 139, 189, 0.6);
    box-shadow: 
        inset 0 -3px 6px rgba(107, 91, 149, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(155, 139, 189, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.myLock .btnEnter:hover {
    background: linear-gradient(135deg, #7a6ba5 0%, #8a7bb5 30%, #9a8bc5 50%, #8a7bb5 70%, #7a6ba5 100%);
    box-shadow: 
        inset 0 -3px 6px rgba(107, 91, 149, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(155, 139, 189, 0.4);
    transform: translateY(-1px);
}

.myLock .btnEnter:active {
    font-size: 23px;
    background: linear-gradient(135deg, #5a4a85 0%, #6a5a95 30%, #7a6ba5 50%, #6a5a95 70%, #5a4a85 100%);
    box-shadow: 
        inset 0 3px 12px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(107, 91, 149, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.myLock.unlocked {
    border: 2px solid rgba(125, 184, 125, 0.5);
    box-shadow: 
        inset 0 -4px 8px rgba(125, 184, 125, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 2px 20px rgba(125, 184, 125, 0.3),
        0 0 60px rgba(125, 184, 125, 0.2);
}

.myLock.unlocked .btnEnter {
    background: linear-gradient(135deg, #7db87d 0%, #a0d4a0 30%, #c4f0c4 50%, #a0d4a0 70%, #7db87d 100%);
    border: 2px solid rgba(125, 184, 125, 0.6);
    pointer-events: none;
}

.myLock.exploding {
    animation: lock-shake-explode 5s ease-out forwards;
    position: relative;
}

@keyframes lock-shake-explode {
    /* Gentle jitter for first 2 seconds */
    0% {
        transform: translate(0, 0);
        opacity: 1;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 20px rgba(107, 91, 149, 0.4);
    }
    2% { transform: translate(0.5px, 0.3px); }
    4% { transform: translate(-0.3px, 0.5px); }
    6% { transform: translate(0.4px, -0.2px); }
    8% { transform: translate(-0.2px, -0.4px); }
    10% { transform: translate(0.3px, 0.2px); }
    12% { transform: translate(-0.5px, 0.1px); }
    14% { transform: translate(0.2px, -0.3px); }
    16% { transform: translate(-0.1px, 0.4px); }
    18% { transform: translate(0.4px, -0.1px); }
    20% { transform: translate(-0.3px, 0.3px); }
    22% { transform: translate(0.1px, -0.4px); }
    24% { transform: translate(-0.4px, 0.2px); }
    26% { transform: translate(0.5px, -0.2px); }
    28% { transform: translate(-0.2px, 0.5px); }
    30% { transform: translate(0.3px, -0.3px); }
    32% { transform: translate(-0.1px, 0.1px); }
    34% { transform: translate(0.2px, -0.5px); }
    36% { transform: translate(-0.5px, 0.4px); }
    38% { transform: translate(0.4px, -0.1px); }
    
    /* More violent jitter at 2 seconds (40% through 5s animation) */
    40% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 20px rgba(107, 91, 149, 0.6),
            0 0 30px rgba(155, 139, 189, 0.4);
    }
    41% { transform: translate(1px, 0.8px); }
    42% { transform: translate(-0.8px, 1px); }
    43% { transform: translate(0.9px, -0.7px); }
    44% { transform: translate(-0.7px, -0.9px); }
    45% { transform: translate(0.8px, 0.6px); }
    46% { transform: translate(-1px, 0.5px); }
    47% { transform: translate(0.6px, -0.8px); }
    48% { transform: translate(-0.5px, 0.9px); }
    49% { transform: translate(0.9px, -0.6px); }
    50% { transform: translate(-0.8px, 0.8px); }
    51% { transform: translate(0.7px, -0.9px); }
    52% { transform: translate(-0.9px, 0.7px); }
    53% { transform: translate(1px, -0.5px); }
    54% { transform: translate(-0.6px, 1px); }
    55% { transform: translate(0.8px, -0.8px); }
    56% { transform: translate(-0.7px, 0.6px); }
    57% { transform: translate(0.5px, -1px); }
    58% { transform: translate(-1px, 0.9px); }
    59% { transform: translate(0.9px, -0.7px); }
    
    /* Very violent jitter at 3 seconds (60% through 5s animation) */
    60% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 20px rgba(107, 91, 149, 0.8),
            0 0 50px rgba(155, 139, 189, 0.6);
    }
    61% { transform: translate(2px, 1.5px); }
    62% { transform: translate(-1.5px, 2px); }
    63% { transform: translate(1.8px, -1.3px); }
    64% { transform: translate(-1.3px, -1.8px); }
    65% { transform: translate(1.6px, 1.2px); }
    66% { transform: translate(-2px, 1px); }
    67% { transform: translate(1.2px, -1.6px); }
    68% { transform: translate(-1px, 1.8px); }
    69% { transform: translate(1.8px, -1.2px); }
    70% { transform: translate(-1.6px, 1.6px); }
    71% { transform: translate(1.4px, -1.8px); }
    72% { transform: translate(-1.8px, 1.4px); }
    73% { transform: translate(2px, -1px); }
    74% { transform: translate(-1.2px, 2px); }
    75% { transform: translate(1.6px, -1.6px); }
    76% { transform: translate(-1.4px, 1.2px); }
    77% { transform: translate(1px, -2px); }
    78% { transform: translate(-2px, 1.8px); }
    79% { transform: translate(1.8px, -1.4px); }
    
    /* Final explosion at 4 seconds (80% through 5s animation) */
    80% {
        transform: translate(0, 0);
        opacity: 1;
        box-shadow: 
            0 0 100px rgba(255, 255, 255, 1),
            0 0 200px rgba(107, 91, 149, 1),
            0 0 300px rgba(155, 139, 189, 0.8);
    }
    100% {
        transform: translate(0, 0);
        opacity: 0;
        box-shadow: 
            0 0 200px rgba(255, 255, 255, 1),
            0 0 400px rgba(107, 91, 149, 1),
            0 0 600px rgba(155, 139, 189, 1);
    }
}

.myLock.exploding .dial {
    animation: dial-fragment 0.5s ease-out forwards;
    animation-delay: 4s; /* Start after 4 seconds of shaking */
}

@keyframes dial-fragment {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(155, 139, 189, 0.8),
            0 0 40px rgba(107, 91, 149, 0.6);
    }
    100% {
        transform: translate(var(--fragment-x, 0), var(--fragment-y, 0)) rotate(var(--fragment-rotate, 0deg)) scale(0.1);
        opacity: 0;
        box-shadow: 
            0 0 50px rgba(155, 139, 189, 1),
            0 0 100px rgba(107, 91, 149, 0.8);
    }
}

.myLock.exploding .dial:nth-child(1) {
    --fragment-x: -300px;
    --fragment-y: -200px;
    --fragment-rotate: -360deg;
}

.myLock.exploding .dial:nth-child(2) {
    --fragment-x: -150px;
    --fragment-y: -300px;
    --fragment-rotate: -180deg;
}

.myLock.exploding .dial:nth-child(3) {
    --fragment-x: 0px;
    --fragment-y: -350px;
    --fragment-rotate: 0deg;
}

.myLock.exploding .dial:nth-child(4) {
    --fragment-x: 150px;
    --fragment-y: -300px;
    --fragment-rotate: 180deg;
}

.myLock.exploding .dial:nth-child(5) {
    --fragment-x: 300px;
    --fragment-y: -200px;
    --fragment-rotate: 360deg;
}

/* Purple starry particle effects */
.myLock.exploding::before,
.myLock.exploding::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: star-particles 1s ease-out forwards;
    animation-delay: 4s;
}

.myLock.exploding::before {
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(155, 139, 189, 1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(107, 91, 149, 1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(155, 139, 189, 1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(107, 91, 149, 1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(155, 139, 189, 1), transparent);
    background-repeat: no-repeat;
    background-size: 200px 100px;
}

.myLock.exploding::after {
    background: 
        radial-gradient(1px 1px at 60px 20px, rgba(155, 139, 189, 1), transparent),
        radial-gradient(2px 2px at 80px 60px, rgba(107, 91, 149, 1), transparent),
        radial-gradient(1px 1px at 110px 10px, rgba(155, 139, 189, 1), transparent),
        radial-gradient(1px 1px at 140px 50px, rgba(107, 91, 149, 1), transparent),
        radial-gradient(2px 2px at 170px 70px, rgba(155, 139, 189, 1), transparent);
    background-repeat: no-repeat;
    background-size: 200px 100px;
    animation-delay: 4.2s;
}

@keyframes star-particles {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(4) rotate(360deg);
    }
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link.revealed {
    color: #d4c5f0;
    text-shadow: 0 0 10px rgba(212, 197, 240, 0.5);
}



.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000 0%, #000000 70%, #1a1a2e 85%, #2d2d3a 95%, #3a3a4a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    position: relative;
    text-align: center;
    color: #e8e8e8;
    font-family: 'Playfair Display', serif;
}

.loading-moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 50%, #b0b0b0 100%);
    margin: 0 auto 2rem auto;
    position: relative;
    animation: loading-moon-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(240, 240, 240, 0.3);
}

.loading-moon::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(200, 200, 200, 0.3) 0%, transparent 70%);
}

@keyframes loading-moon-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(240, 240, 240, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(240, 240, 240, 0.5);
        transform: scale(1.05);
    }
}

.loading-stars {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    animation: loading-stars-rotate 8s linear infinite;
}

.loading-stars::before,
.loading-stars::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 4px white);
}

.loading-stars::before {
    top: 20px;
    left: 30px;
    animation: loading-star-twinkle 2s ease-in-out infinite;
}

.loading-stars::after {
    top: 60px;
    right: 40px;
    animation: loading-star-twinkle 2s ease-in-out infinite 1s;
}

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

@keyframes loading-star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #9b8bbd;
    text-shadow: 0 0 10px rgba(155, 139, 189, 0.5);
}

.loading-dots {
    display: flex;
    gap: 0.2rem;
}

.loading-dots span {
    animation: loading-dots-bounce 1.5s ease-in-out infinite;
    color: #6b5b95;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-dots-bounce {
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.4;
    }
    30% { 
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Mystery Countdown Timers */
.mystery-timers {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem auto 2rem auto;
    max-width: 1000px;
    padding: 0 2rem;
}

.timer-container {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(45, 45, 58, 0.9) 30%, 
        rgba(107, 91, 149, 0.1) 70%, 
        rgba(155, 139, 189, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(155, 139, 189, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 139, 189, 0.02) 0%, transparent 70%);
    animation: timer-rotate 25s linear infinite;
    pointer-events: none;
}

@keyframes timer-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timer-container:hover {
    border-color: rgba(155, 139, 189, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(155, 139, 189, 0.2);
    transform: translateY(-3px);
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.timer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #e8e8e8;
    text-shadow: 0 0 15px rgba(155, 139, 189, 0.4);
    background: linear-gradient(45deg, #e8e8e8, #9b8bbd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-stars {
    display: flex;
    gap: 0.8rem;
}

.timer-star {
    color: rgba(155, 139, 189, 0.8);
    font-size: 1.2rem;
    animation: timer-star-pulse 3s ease-in-out infinite;
}

.timer-star:nth-child(1) { animation-delay: 0s; }
.timer-star:nth-child(2) { animation-delay: 1s; }
.timer-star:nth-child(3) { animation-delay: 2s; }

@keyframes timer-star-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
        text-shadow: 0 0 8px rgba(155, 139, 189, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        text-shadow: 0 0 20px rgba(155, 139, 189, 0.8);
    }
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8) 0%, 
        rgba(45, 45, 58, 0.6) 50%, 
        rgba(26, 26, 46, 0.8) 100%);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.time-segment:hover {
    border-color: rgba(155, 139, 189, 0.6);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(155, 139, 189, 0.4);
    transform: translateY(-2px);
}

.time-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #e8e8e8;
    text-shadow: 
        0 0 10px rgba(155, 139, 189, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    animation: timer-number-glow 4s ease-in-out infinite;
}

@keyframes timer-number-glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(155, 139, 189, 0.6);
    }
    50% { 
        text-shadow: 0 0 20px rgba(155, 139, 189, 0.9);
    }
}

.time-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(155, 139, 189, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.time-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: rgba(155, 139, 189, 0.6);
    animation: timer-separator-blink 2s ease-in-out infinite;
}

@keyframes timer-separator-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.timer-message {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(232, 232, 232, 0.8);
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    text-shadow: 0 0 8px rgba(155, 139, 189, 0.3);
}

.timer-container.expired {
    border-color: rgba(155, 139, 189, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timer-container.expired .time-segment {
    border-color: rgba(125, 184, 125, 0.4);
    background: linear-gradient(135deg, 
        rgba(125, 184, 125, 0.2) 0%, 
        rgba(160, 212, 160, 0.1) 50%, 
        rgba(125, 184, 125, 0.2) 100%);
}

.timer-container.expired .time-value {
    color: rgba(125, 184, 125, 0.9);
    text-shadow: 0 0 15px rgba(125, 184, 125, 0.7);
}

.timer-container.expired .timer-message {
    color: rgba(125, 184, 125, 0.9);
    text-shadow: 0 0 10px rgba(125, 184, 125, 0.5);
}

/* Audio Player Styles */
.audio-player {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    min-height: 200px;
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.15) 0%, 
        rgba(107, 91, 149, 0.08) 50%, 
        rgba(155, 139, 189, 0.15) 100%);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: rgba(155, 139, 189, 0.95);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(155, 139, 189, 0.4);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-pause-btn {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.3) 0%, 
        rgba(107, 91, 149, 0.2) 100%);
    border: 2px solid rgba(155, 139, 189, 0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(155, 139, 189, 0.9);
    font-size: 1.4rem;
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.4) 0%, 
        rgba(107, 91, 149, 0.3) 100%);
    border-color: rgba(155, 139, 189, 0.6);
    box-shadow: 0 0 15px rgba(155, 139, 189, 0.3);
    transform: scale(1.05);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.progress-wrapper {
    width: 100%;
    position: relative;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(155, 139, 189, 0.2);
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid rgba(155, 139, 189, 0.3);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(155, 139, 189, 0.8) 0%, 
        rgba(107, 91, 149, 0.9) 100%);
    border-radius: 4px;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(155, 139, 189, 0.4);
}

.progress-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, 
        rgba(155, 139, 189, 0.9) 0%, 
        rgba(107, 91, 149, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(155, 139, 189, 0.5);
    transition: all 0.2s ease;
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(155, 139, 189, 0.7);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: rgba(155, 139, 189, 0.8);
    text-shadow: 0 0 5px rgba(155, 139, 189, 0.3);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.2) 0%, 
        rgba(107, 91, 149, 0.1) 100%);
    border: 2px solid rgba(155, 139, 189, 0.3);
    font-size: 1.3rem;
    cursor: pointer;
    color: rgba(155, 139, 189, 0.9);
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.volume-btn:hover {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.3) 0%, 
        rgba(107, 91, 149, 0.2) 100%);
    color: rgba(155, 139, 189, 1);
    text-shadow: 0 0 10px rgba(155, 139, 189, 0.6);
    border-color: rgba(155, 139, 189, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(155, 139, 189, 0.3);
    transform: translateY(-1px);
}

.volume-slider {
    width: 80px;
    display: flex;
    align-items: center;
}

.volume-input {
    width: 100%;
    height: 8px;
    background: rgba(155, 139, 189, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    appearance: none;
    border: 1px solid rgba(155, 139, 189, 0.3);
}

.volume-input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, 
        rgba(155, 139, 189, 0.9) 0%, 
        rgba(107, 91, 149, 0.8) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(155, 139, 189, 0.4);
    transition: all 0.2s ease;
}

.volume-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(155, 139, 189, 0.6);
}

.volume-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, 
        rgba(155, 139, 189, 0.9) 0%, 
        rgba(107, 91, 149, 0.8) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(155, 139, 189, 0.4);
}

/* Loop Button Styles */
.loop-btn {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.2) 0%, 
        rgba(107, 91, 149, 0.1) 100%);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(155, 139, 189, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.loop-btn:hover {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.3) 0%, 
        rgba(107, 91, 149, 0.2) 100%);
    color: rgba(155, 139, 189, 0.9);
    border-color: rgba(155, 139, 189, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(155, 139, 189, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.loop-btn.active {
    background: linear-gradient(135deg, 
        rgba(155, 139, 189, 0.4) 0%, 
        rgba(107, 91, 149, 0.3) 100%);
    color: rgba(155, 139, 189, 1);
    border-color: rgba(155, 139, 189, 0.6);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3), 
        0 0 20px rgba(155, 139, 189, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(155, 139, 189, 0.6);
}

.loop-btn.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(155, 139, 189, 0.25), 
        rgba(107, 91, 149, 0.3), 
        rgba(155, 139, 189, 0.25));
    z-index: -1;
    animation: loop-glow 2s ease-in-out infinite;
}

.loop-btn.active .loop-arrow {
    /* Removed rotation animation */
}

@keyframes loop-glow {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

@keyframes arrow-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loop Arrow Styling */
.loop-arrow {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    
    /* Use exact site purple color with mask */
    background-color: rgba(155, 139, 189, 0.7);
    mask: url('resources/arrow.png') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('resources/arrow.png') no-repeat center;
    -webkit-mask-size: contain;
}

.loop-btn:hover .loop-arrow {
    background-color: rgba(155, 139, 189, 0.9);
    transform: scale(1.1);
}

.loop-btn.active .loop-arrow {
    background-color: rgba(155, 139, 189, 1);
    filter: drop-shadow(0 0 8px rgba(155, 139, 189, 0.6));
}

@media (max-width: 768px) {
    .mystery-timers {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .timer-container {
        padding: 2rem;
    }
    
    .timer-title {
        font-size: 1.5rem;
    }
    
    .timer-display {
        gap: 0.5rem;
    }
    
    .time-segment {
        padding: 0.8rem 1rem;
        min-width: 60px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .timer-message {
        font-size: 1rem;
    }
    
    .audio-player {
        padding: 1.5rem;
        gap: 1.5rem;
        min-height: 160px;
    }
    
    .audio-title {
        font-size: 1.4rem;
    }
    
    .audio-controls {
        gap: 0.8rem;
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .loop-btn {
        width: 50px;
        height: 50px;
    }
    
    .loop-arrow {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .timer-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timer-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .time-segment {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 1.5rem;
        min-width: auto;
        width: 100%;
        justify-content: space-between;
    }
    
    .time-value {
        margin-bottom: 0;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-container {
        order: -1;
    }
    
    .volume-container {
        align-self: center;
    }
}

