:root {
    --accent: #ff6b6b;
    --modal-bg: rgba(255, 255, 255, 0.95);
    --text: #2d3436;
}

body {
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling in "Room" mode */
    font-family: 'Nunito', sans-serif;
    background-color: #333;
    /* Backdrop */
    background-image: url('../../assets/scene_wedding.png');
    background-size: cover;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    backdrop-filter: blur(15px);
    z-index: -1;
}

/* Mobile Frame */
.mobile-frame {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    background: black;
    /* Loading or fallback */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Start Modal */
.modal {
    position: fixed;
    top: 50%;
    /* Center in frame/screen */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px;
    /* Match frame */
    height: 100vh;
    background: #2d3436;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Warm Modal Styling */
.warm-modal {
    background: #fff9f0 !important;
    /* Force solid background */
    border: 3px solid #e6dabf;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.4);
    font-family: 'Nunito', sans-serif;
    color: #5d4037 !important;
    /* Force text color */
    position: relative;
    overflow: hidden;
    transform-origin: center;
    border-radius: 40px;
    /* V7: Rounded corners (not boxy) */
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-content {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.great-vibes {
    font-family: 'Great Vibes', cursive;
    /* Use Google font if available or fallback */
    font-size: 3rem;
    color: #8d6e63;
    margin: 10px 0;
}

.ornament-top,
.ornament-bottom {
    font-size: 2rem;
    color: #8d6e63;
    opacity: 0.5;
}

.btn-start {
    background: #8d6e63;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(141, 110, 99, 0.4);
    transition: 0.3s;
}

.btn-start:hover {
    background: #6d4c41;
    transform: translateY(-2px);
}

/* Game Container */
.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hidden {
    display: none;
}

.room-background {
    width: 100%;
    height: 100%;
    /* New Wedding Scene - Corrected Path */
    background: url('../../../assets/scene_wedding.png') no-repeat center center;
    background-size: cover;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
    /* Vignette */
}

/* Hotspots */
.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

/* Asset Hotspots */
.asset-hotspot {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    /* Floating Animation */
    animation: float 3s ease-in-out infinite;
}

.asset-hotspot img {
    /* Resize assets to fit scene nicely */
    width: 120px;
    height: auto;
    /* V7: "Remove" white background via blend mode */
    mix-blend-mode: multiply;
    /* V7: Slight transparency fix if blend makes it too dark */
    filter: brightness(1.1) contrast(1.1);
}

/* Individual adjustments */
#hotspot-couple img {
    width: 140px;
}

#hotspot-calendar img {
    width: 100px;
}

#hotspot-guestbook img {
    width: 130px;
}

#hotspot-gallery img {
    width: 110px;
}

.asset-hotspot:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 8px 12px rgba(255, 215, 0, 0.6));
    /* Glow effect */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hidden generic indicators */
.asset-hotspot .indicator,
.asset-hotspot .label {
    display: none;
}

.indicator {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.2rem;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
}

.label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transition: 0.3s;
}

.hotspot:hover .label {
    opacity: 1;
}

@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Info Modals (Popups) - Override */
.info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    /* background set via warm-modal class */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-modal.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* Countdown */
.countdown-container {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px dashed #d7ccc8;
}

.countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5d4037;
}

.target-date {
    font-size: 0.9rem;
    color: #8d6e63;
}

/* Gallery Slider */
.gallery-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 5s linear;
    /* Ken Burns Effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Slow zoom */
}

.gallery-img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
}

.caption {
    margin-top: 10px;
    font-style: italic;
    color: #5d4037;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    background: #d7ccc8;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: #5d4037;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.info-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: #8d6e63;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}