body, html {
    margin: 0; padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background-color: transparent; 
    -webkit-user-select: none; 
    user-select: none;
}

#video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100vw; 
    min-height: 100vh;
    z-index: -100;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

#login-screen {
    height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center;
    background: rgba(0, 0, 0, 0.6);  
    position: fixed; top: 0; left: 0;
    z-index: 9999;
    transition: opacity 0.5s;
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 350px;
    max-width: 90%;
}

.login-box h2 { margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

input {
    width: 80%; padding: 12px; margin-bottom: 20px;
    border: none; border-radius: 30px; text-align: center;
    font-size: 16px; background: rgba(255,255,255,0.9); outline: none;
}

button.login-btn {
    padding: 12px 40px; border: none; border-radius: 30px;
    background: #ff4757; color: white; font-weight: bold; cursor: pointer;
    font-size: 16px; transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}
button.login-btn:hover { transform: scale(1.05); }

#error-msg { color: #ff6b6b; font-weight: bold; display: none; margin-top: 15px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

#main-content {
    display: none; padding: 40px 20px; text-align: center;
    background: rgba(255, 240, 243, 0.95); /* Lekko przeźroczyste tło */
    min-height: 100vh;
}
.app-container {
    display: flex; justify-content: center; gap: 20px; margin: 30px 0; flex-wrap: wrap;
}
.app-item {
    display: flex; flex-direction: column; align-items: center; cursor: pointer;
    transition: transform 0.2s;
}
.app-item:hover { transform: scale(1.1); }
.app-icon {
    width: 65px; height: 65px; border-radius: 18px;
    display: flex; justify-content: center; align-items: center;
    font-size: 28px; color: white; margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.icon-letter { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.icon-music { background: linear-gradient(135deg, #1DB954, #191414); /* Kolory Spotify */ }
.icon-notes { background: linear-gradient(135deg, #f6d365, #fda085); }

#app-display-area {
    background: white; border-radius: 20px; padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px; margin: 0 auto;
}
.hidden-content { display: none; animation: fadeIn 0.8s; }
.active-content { display: block; }

.spotify-wrapper {
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; max-width: 900px; margin: 0 auto; padding-bottom: 50px;
}
.photo-card {
    background: #eee; border-radius: 15px; overflow: hidden;
    aspect-ratio: 1/1; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scratch-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    cursor: crosshair; z-index: 10;
}
.valentine-buttons { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.btn { padding: 12px 35px; border-radius: 25px; border: none; color: white; cursor: pointer; font-size: 1.1em; font-weight: bold;}
.btn-yes { background: #2ed573; }
.btn-no { background: #ff4757; position: relative; }

@keyframes fadeIn { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }