:root {
    --bg-grad-tl: #E1BEE7;
    --bg-grad-center: #FFC1D5;
    --bg-grad-br: #FFECB3;
    --text-grad-start: #F06292;
    --text-grad-end: #BA68C8;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --icon-bg: rgba(255, 255, 255, 0.25);
    --icon-border: rgba(255, 255, 255, 0.5);
    --icon-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.2);
    --input-border-gold: #FFD66B;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-grad-center);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7) 1px, transparent 200px),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.7) 1px, transparent 200px),
        radial-gradient(circle at 50% 50%, var(--bg-grad-center), transparent 70%),
        linear-gradient(to bottom right, var(--bg-grad-tl), var(--bg-grad-center), var(--bg-grad-br));
    background-size: cover;
    position: relative;
}

.screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

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

.start-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.start-heading {
    font-size: 1.7rem; font-weight: 700;
    display: flex; align-items: center;
    gap: 0.75rem; margin-bottom: 1.5rem;
}
.start-heading span {
    background: linear-gradient(90deg, var(--text-grad-start), var(--text-grad-end));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sparkles-icon { color: #A582F7; }
.character-wrapper { position: relative; margin-bottom: 2rem; cursor: pointer; }
.character-image {
    width: 100%; max-width: 250px; height: auto;
    display: block; position: relative; z-index: 2;
}
.character-glow {
    position: absolute; top: 50%; left: 50%;
    width: 120%; padding-bottom: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
    transform: translate(-50%, -50%); z-index: 1;
}
.social-icons { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.social-icon {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--icon-bg); border: 1px solid var(--icon-border);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    color: var(--icon-color); text-decoration: none;
    transition: background-color 0.2s ease;
}
.social-icon:hover { background-color: rgba(255, 255, 255, 0.4); }
.social-icon svg { width: 24px; height: 24px; }
.secondary-text {
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 0.5rem;
}
.halo-icon { color: #FFD54F; }

/* --- NEW, PIXEL-PERFECT PASSWORD SCREEN STYLES --- */
.password-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); /* Glass edge effect */
    border-radius: 30px;
    padding: 35px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-icon {
    margin-bottom: 25px;
    opacity: 0.8;
}

.password-card h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

#password-form {
    width: 100%;
}

#password-input {
    width: 100%;
    background: transparent;
    border: 2px solid var(--input-border-gold);
    border-radius: 12px;
    padding: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    outline: none;
    transition: box-shadow 0.2s ease;
}
#password-input::placeholder {
    color: rgba(255, 214, 107, 0.7);
}
#password-input:focus {
    box-shadow: 0 0 15px rgba(255, 214, 107, 0.4);
}

.submit-button {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.submit-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}