:root {
    --primary-color: #f7d5e4; /* Soft pink / gold */
    --accent-color: #ffd700;
}

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

body {
    background-color: #050505;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.cinzel-font {
    font-family: 'Cinzel', serif;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* Intro & Outro Screens */
#intro-screen, #outro-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a0b12 0%, #000000 100%);
    text-align: center;
}

.intro-content {
    animation: fadeIn 2s ease-out;
}

.glow-text {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(247, 213, 228, 0.4), 0 0 40px rgba(247, 213, 228, 0.2);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.intro-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

#start-btn, #replay-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background: linear-gradient(45deg, #ffd700, #ffb347);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
}

#start-btn:hover, #replay-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* Slideshow */
#slideshow-container {
    background-color: #000;
}

#slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1);
}

.slide::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center top;
    filter: blur(30px) brightness(0.4);
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.slide.active {
    opacity: 1;
    animation: kenBurns 10s ease-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.10); }
}

.overlay-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    z-index: 5;
    pointer-events: none;
}

.text-overlay {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}

#dynamic-text {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.4);
    opacity: 0;
    transition: opacity 1.5s ease;
    letter-spacing: 3px;
    font-weight: 400;
}

#dynamic-text.show {
    opacity: 1;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .glow-text {
        font-size: 2rem;
    }
    #dynamic-text {
        font-size: 1.5rem;
    }
    .text-overlay {
        bottom: 20%;
    }
    .slide::after {
        background-size: cover;
        background-position: center top;
    }
    .slide::before {
        display: none;
    }
}

@media (min-width: 769px) {
    .glow-text {
        font-size: 4rem;
    }
    #dynamic-text {
        font-size: 3rem;
    }
    .text-overlay {
        bottom: 10%;
    }
}
