body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #fce4ec;
    font-family: 'Arial', sans-serif;
    flex-direction: column;
}

.password-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fce4ec;
    z-index: 100;
}

.password-card {
    background: white;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 260px;
}

.password-prompt {
    margin: 0 0 16px;
    font-size: 1.1em;
    color: #8b6b7e;
}

.password-card input {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 12px;
    padding: 10px 14px;
    font-size: 1em;
    border: 1px solid #e0d0d6;
    border-radius: 8px;
    box-sizing: border-box;
}

.password-card input:focus {
    outline: none;
    border-color: #b85c8a;
}

.password-submit {
    padding: 8px 20px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background: #b85c8a;
    color: white;
    cursor: pointer;
}

.password-submit:hover {
    background: #a04d78;
}

.password-error {
    margin: 12px 0 0;
    font-size: 0.9em;
    color: #c62828;
    min-height: 1.2em;
}

#main-content {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

#main-content.visible {
    opacity: 1;
}

.container {
    text-align: center;
    max-width: 480px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.hero {
    margin-bottom: 1.75rem;
}

.hero h1 {
    font-size: 2.5em;
    color: #b85c8a;
    margin: 0 0 0.25em;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.1em;
    color: #6b5b63;
    margin: 0;
}

.buttons {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.yes-button {
    font-size: 1.5em;
    padding: 12px 24px;
    background-color: #f48fb1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.no-button {
    font-size: 1.5em;
    padding: 12px 24px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.gif_container {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.gif_container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.gif_container .home-gif {
    max-width: 220px;
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }
    .hero {
        margin-bottom: 2rem;
    }
    .hero h1 {
        font-size: 2.6em;
    }
    .gif_container {
        margin-top: 2.5rem;
    }
}

/* Tesla Model Y / in-car browser: wide landscape, large touch targets */
@media (min-width: 900px) and (max-height: 1100px) {
    body {
        padding: 1rem 0;
    }
    .container {
        max-width: 560px;
        padding: 2rem 2.5rem;
    }
    .hero h1 {
        font-size: 2.85em;
        line-height: 1.2;
    }
    .buttons {
        gap: 16px;
    }
    .yes-button,
    .no-button {
        min-height: 52px;
        padding: 16px 32px;
        font-size: 1.65em;
        border-radius: 10px;
    }
    .gif_container {
        margin-top: 2rem;
    }
    .gif_container .home-gif {
        max-width: 260px;
    }
    .password-card {
        padding: 32px 40px;
        min-width: 280px;
    }
    .password-card input {
        padding: 14px 18px;
        font-size: 1.05em;
        max-width: 260px;
    }
    .password-submit {
        min-height: 48px;
        padding: 12px 28px;
        font-size: 1.05em;
    }
}
