:root {
    --bg: #050505;
    --accent: #00f3ff;
    --soft-pink: #ff0055;
    --text-main: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Lock scroll until unlocked */
    overflow-y: hidden;
    width: 100vw;
}

body.unlocked { overflow-y: auto; }

/* loader */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.progress-bar { width: 200px; height: 2px; background: #333; margin-top: 15px; }
.progress-fill { width: 0%; height: 100%; background: var(--accent); }
.loader-text { margin-top: 15px; color: var(--accent); font-size: 0.75rem; letter-spacing: 2px; }

/* lock screen */
#lock-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    z-index: 9000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.8s ease;
}
.biometric-area {
    width: 80px; height: 80px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; margin-bottom: 25px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.biometric-area:active { transform: scale(0.9); border-color: var(--accent); background: rgba(0, 243, 255, 0.1); }
.hint-text { font-size: 0.75rem; opacity: 0.6; letter-spacing: 1px; }
.passcode-dots { display: flex; gap: 12px; margin-top: 25px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #555; transition: 0.2s; }
.dot.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* main app*/
#main-app {
    width: 100%;
    /* visible by default so layout calculates correctly */
    opacity: 1; 
}

section {
    min-height: 100vh;
    padding: 30px 20px;
    display: flex; flex-direction: column; justify-content: center;
    border-bottom: 1px solid #111;
}

/* hero*/
.hero-section { text-align: left; }
.subtitle { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.hero-title { font-size: 3.5rem; line-height: 1.1; font-weight: 700; font-family: 'Space Grotesk'; margin-bottom: 15px; }
.fade-text { color: #888; font-size: 1.1rem; }
.scroll-hint { margin-top: 60px; font-size: 0.75rem; opacity: 0.5; animation: bounce 2s infinite; letter-spacing: 1px; }

/*traits*/
.section-title { font-family: 'Space Grotesk'; font-size: 2rem; margin-bottom: 30px; border-left: 3px solid var(--accent); padding-left: 15px; }
.traits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.trait-btn {
    background: #111; border: 1px solid #333; padding: 25px 10px; border-radius: 12px;
    text-align: center; cursor: pointer; font-family: 'Space Grotesk'; font-size: 0.9rem;
    color: #ddd; transition: 0.2s;
}
.trait-btn:active { background: #222; border-color: var(--accent); transform: scale(0.96); }

/*memories */
.memory-track { display: flex; gap: 20px; overflow-x: auto; padding: 30px 10px; scrollbar-width: none; }
.polaroid {
    min-width: 260px; background: white; padding: 12px 12px 50px 12px;
    color: black; text-align: center; font-family: 'Inter', sans-serif; font-weight: 600;
    transform: rotate(-2deg); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 2px;
}
.polaroid img { width: 100%; height: 320px; object-fit: cover; filter: grayscale(10%); margin-bottom: 15px; }
.polaroid:nth-child(even) { transform: rotate(2deg); }

/* letter */
.letter-box {
    background: rgba(255,255,255,0.03); padding: 30px; border-radius: 16px;
    border-left: 3px solid var(--soft-pink); font-size: 1.1rem; line-height: 1.7; color: #e0e0e0;
    font-family: 'Inter', sans-serif; font-weight: 300;
}
.letter-header { color: var(--soft-pink); margin-bottom: 25px; font-family: 'Space Grotesk'; }
.celebrate-btn {
    margin-top: 40px; background: var(--soft-pink); border: none; color: white;
    padding: 16px 40px; font-family: 'Space Grotesk'; font-size: 1rem; border-radius: 50px;
    cursor: pointer; box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); width: 100%;
}

/* modal*/
#custom-modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
    z-index: 9500; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #1a1a1a; border: 1px solid #333; padding: 30px;
    border-radius: 20px; text-align: center; max-width: 350px; width: 100%;
}
#modal-title { color: var(--accent); font-family: 'Space Grotesk'; margin-bottom: 15px; font-size: 1.5rem; }
#modal-body { color: #ccc; line-height: 1.5; margin-bottom: 25px; font-size: 1rem; }
.close-btn { background: transparent; border: 1px solid #555; color: white; padding: 10px 30px; border-radius: 50px; }

/* utils */
.brand-font { font-family: 'Space Grotesk', sans-serif; letter-spacing: 2px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }