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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Arial, sans-serif;
    color: white;
}

/* --- Base & Background --- */
#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

    #bg.show-bg {
        opacity: 1;
    }

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    .content::before {
        content: "";
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient( circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 35%, rgba(255,255,255,.02) 60%, transparent 100% );
        filter: blur(50px);
        z-index: -1;
        pointer-events: none;
        opacity: 0;
        transition: opacity 2.5s ease-in-out;
    }

    .content.show-bg::before {
        opacity: 1;
    }

/* --- 1. Invitation Gate Screen --- */
#authContainer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 2;
}

    #authContainer.fade-out {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    font-weight: 400;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

#inviteInput {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    outline: none;
    font-family: monospace;
    letter-spacing: 1px;
    width: 260px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    #inviteInput:focus {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

#verifyButton {
    background: white;
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

    #verifyButton:hover {
        opacity: 0.9;
    }

#authMessage {
    margin-top: 15px;
    font-size: 0.9rem;
    height: 35px;
    color: #ff4a4a;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #authMessage.success-glow {
        font-size: 1.8rem;
        color: #4aff4a;
        text-shadow: 0 0 15px rgba(74, 255, 74, 0.8), 0 0 30px rgba(74, 255, 74, 0.5);
        font-weight: bold;
        letter-spacing: 2px;
    }

/* --- 2. Main UI --- */
#droolContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -120px; /* Shoved up to avoid hitting the bottom profiles */
}

.hidden-ui {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

    .hidden-ui.fade-in {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

#mainTitle {
    font-size: 4rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 2px rgba(255,255,255,1), 0 0 5px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.75), 0 0 18px rgba(255,255,255,.35);
    transition: opacity .8s ease, transform .8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    #mainTitle.hide {
        opacity: 0;
        transform: translateY(-15px);
    }

.title-logo {
    width: 140px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255,255,255,.85)) drop-shadow(0 0 9px rgba(255,255,255,.45));
}

#subtitle {
    margin-top: 14px;
    font-size: 1.2rem;
    color: rgba(255,255,255,.85);
    text-shadow: 0 0 10px rgba(255,255,255,.15);
    transition: opacity .6s ease;
}

    #subtitle.hide {
        opacity: 0;
    }

#downloadButton {
    /* Removed position: absolute and top positioning */
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: block;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 4rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(255,255,255,.35), 0 0 25px rgba(255,255,255,.25), 0 0 50px rgba(255,255,255,.15);
    transition: opacity 1.3s ease, transform .25s ease, text-shadow .25s ease;
}

    #downloadButton.show {
        opacity: 1;
        pointer-events: auto;
    }

    #downloadButton:hover {
        transform: scale(1.04);
        text-shadow: 0 0 15px rgba(255,255,255,.75), 0 0 35px rgba(255,255,255,.55), 0 0 70px rgba(255,255,255,.35), 0 0 110px rgba(255,255,255,.18);
    }

#versionText {
    /* Removed position: absolute and top positioning */
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: block;
    margin-top: 10px; /* Gives nice breathing room directly below Download */
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    text-align: center;
    transition: opacity 1.3s ease;
}

    #versionText.show {
        opacity: 1;
    }

/* --- 3. Embedded Video Screen --- */
#videoContainer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
    z-index: 3;
}

    #videoContainer.show-video {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

video#rickrollVideo {
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    outline: none;
}

#videoSubtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    text-align: center;
}

/* --- 4. Owner & Staff Profile Section --- */

#ownerContainer {
    position: fixed;
    left: 50%;
    bottom: -500px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100vw; /* Forces the browser to give it full width */
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: bottom 1.2s cubic-bezier(.22,1,.36,1), opacity 1.2s ease;
}

    #ownerContainer.show {
        bottom: 80px;
        opacity: 1;
        pointer-events: auto;
    }

.owner-row {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.owner-card {
    transform: scale(1.12);
}

.staff-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Forces them strictly onto one line */
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 240px;
    padding: 14px 18px;
    background: rgba(0,0,0,.60);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 24px rgba(255,255,255,.10), inset 0 0 12px rgba(255,255,255,.04);
    flex-shrink: 0; /* Prevents the cards themselves from squeezing */
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.8);
    box-shadow: 0 0 10px rgba(255,255,255,.4);
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    font-weight: 600;
}

    .profile-info h3 a {
        color: inherit;
        text-decoration: none;
    }

        .profile-info h3 a:hover {
            text-decoration: underline;
        }

.profile-info p {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}

/* --- Responsive Fixes --- */

@media (max-width: 850px) {
    /* If the screen is narrow (mobile), allow them to stack normally */
    .staff-row {
        flex-wrap: wrap;
    }
}

@media (max-height: 850px) {
    /* If the screen is short, pad the main content and shrink the bottom slightly to avoid collision */
    .content {
        padding-bottom: 220px;
    }

    #ownerContainer.show {
        bottom: 20px;
        transform: translateX(-50%) scale(0.85);
        transform-origin: bottom center;
    }
}
/* --- Bunny Videos Section --- */
#bunnySection {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    z-index: 10;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    #bunnySection.hide {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
    }

#bunnyToggle {
    font-size: 0.95rem;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 3px;
}

    #bunnyToggle:hover {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

#bunnyVideos {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    max-height: 285px;
    opacity: 1;
    transform: scale(1);
    /* Snappy yet smooth 0.85s drop */
    transition: max-height 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.75s ease;
    overflow: hidden;
}

    #bunnyVideos.hidden-bunnies {
        max-height: 0;
        opacity: 0;
        transform: scale(0.9);
        margin-top: 0;
        pointer-events: none;
    }

    #bunnyVideos video {
        /* Allow the video to dictate its natural width up to 480px max */
        width: 100%;
        max-width: 480px;
        height: auto;
        /* Fill the frame without showing pillarbox black bars */
        object-fit: cover;
        /* NO black background fill */
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }