/* --- CSS STYLES --- */
:root {
    --bg-color: #fff0f5; 
    --dot-color: #ffc8dd;
    --fancy-blue: #a2d2ff;
    --fancy-purple: #cdb4db;
    --font-main: 'Mali', cursive;
    --font-burmese: 'Pyidaungsu', sans-serif;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--dot-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--dot-color) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: url('https://cur.cursors-4u.net/nature/nat-10/nat984.cur'), auto;
}

/* --- CUSTOM SCROLLBAR (Cat Chasing Mouse) --- */
::-webkit-scrollbar { width: 20px; } /* Slightly wider for icons */
::-webkit-scrollbar-track { background: #fff0f5; border-left: 2px dashed #ffc8dd; }

/* The Cat (Scroll Thumb) */
::-webkit-scrollbar-thumb { 
    background-color: #ffc8dd; /* Fallback color */
    background-image: url('https://cdn-icons-png.flaticon.com/512/616/616430.png'); /* Cat Icon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    border-radius: 10px;
    border: 2px solid #fff0f5;
    /* The Mouse (Shadow offset ahead of cat) */
    box-shadow: 0 -25px 0 0 rgba(0,0,0,0), /* Spacer */
                0 -40px 0 -5px #a9a9a9; /* Mouse shape silhouette */
}

/* Interaction Cursors */
button, .photo-card, .music-player-wrapper, .camera-wrapper, .trendy-postcard, .draggable {
    cursor: url('https://cur.cursors-4u.net/nature/nat-10/nat984.cur'), pointer;
}

/* --- LOCK SCREEN --- */
#lockScreen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 240, 245, 0.98); backdrop-filter: blur(10px);
    z-index: 20000; display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.lock-hidden { transform: translateY(-100%); }
.lock-avatar { width: 100px; height: 100px; background: #fff; border-radius: 50%; border: 4px solid var(--fancy-blue); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--fancy-blue); margin-bottom: 20px; box-shadow: 0 5px 15px rgba(162, 210, 255, 0.5); }
.lock-title { font-size: 1.5rem; color: #555; margin-bottom: 20px; }
.pin-display { display: flex; gap: 15px; margin-bottom: 30px; }
.pin-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #ccc; transition: all 0.2s; }
.pin-filled { background: var(--fancy-blue); border-color: var(--fancy-blue); transform: scale(1.2); }
.shake { animation: shake 0.3s; }
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-10px);} 75% {transform: translateX(10px);} }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.num-btn { width: 70px; height: 70px; border-radius: 50%; background: white; border: 2px solid #eee; font-size: 1.5rem; color: #555; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 #eee; transition: transform 0.1s, box-shadow 0.1s; }
.num-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #eee; }

/* --- MAIN CONTENT --- */
.main-content { opacity: 0; transition: opacity 1s; pointer-events: none; }
.content-visible { opacity: 1; pointer-events: auto; }
.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.snowflake { position: absolute; top: -10px; color: white; font-size: 1em; opacity: 0.8; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh); } }
.trail-dot { position: fixed; pointer-events: none; z-index: 9999; font-size: 14px; animation: fadeOut 1s forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(20px); } }
.sticker { position: absolute; z-index: 200; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1)); cursor: move; }
.st-1 { top: 15%; left: 10%; font-size: 40px; } .st-2 { top: 25%; right: 15%; font-size: 35px; } .st-3 { top: 50%; left: 2%; font-size: 45px; } .st-4 { bottom: 20%; right: 5%; font-size: 30px; } .st-5 { top: 40%; right: 25%; font-size: 25px; }
.wall-container { width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 20px; padding-bottom: 150px; }

/* Camera & Postcard & Music */
.camera-wrapper { position: fixed; top: 30px; right: 30px; z-index: 100; width: 140px; height: 160px; display: flex; justify-content: center; }
.instax-css { position: relative; width: 130px; height: 130px; background: #aaddf0; border-radius: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 102; transform: rotate(5deg); transition: transform 0.2s; border: 4px solid white; }
.instax-css:active { transform: rotate(5deg) scale(0.95); }
.instax-flash { position: absolute; top: 12px; left: 35px; width: 25px; height: 35px; background: #fff; border-radius: 5px; border: 2px solid #ddd; }
.instax-lens-outer { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; background: #d0efff; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; }
.instax-lens-inner { width: 70px; height: 70px; background: #aaddf0; border-radius: 50%; border: 2px solid #fff; display: flex; justify-content: center; align-items: center; }
.instax-lens-black { width: 45px; height: 45px; background: #222; border-radius: 50%; position: relative; }
.instax-logo { position: absolute; top: 15px; right: 15px; font-weight: bold; font-size: 10px; color: white; transform: rotate(-90deg); }
.shutter-btn { position: absolute; bottom: 20px; left: 10px; width: 20px; height: 20px; background: white; border-radius: 50%; }
.polaroid-print { position: absolute; top: 40px; left: 50%; transform: translateX(-50%) rotate(5deg); width: 80px; height: 100px; background: white; padding: 5px 5px 20px 5px; box-sizing: border-box; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 100; display: flex; justify-content: center; align-items: flex-start; transition: top 1.5s ease-out, opacity 0.3s; opacity: 0; }
.polaroid-inner { width: 70px; height: 70px; background: #eee; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.polaroid-inner img { width: 100%; height: 100%; object-fit: cover; }
.is-printing { top: 150px !important; opacity: 1 !important; }
.trendy-postcard { position: absolute; top: 150px; left: 5%; width: 200px; height: 140px; background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); border-radius: 15px; box-shadow: 0 10px 20px rgba(162, 210, 255, 0.4); transform: rotate(-6deg); z-index: 5; transition: transform 0.3s; padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 4px solid white; cursor: move; }
.trendy-postcard:hover { transform: scale(1.05) rotate(0deg); z-index: 60; }
.card-grid { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; background-image: radial-gradient(#fff 20%, transparent 20%); background-size: 10px 10px; opacity: 0.5; border-radius: 10px; border: 2px dashed white; }
.sticker-deco { position: absolute; font-size: 25px; filter: drop-shadow(2px 2px 0 white); }
.card-text { font-family: 'Patrick Hand', cursive; font-weight: bold; font-size: 1.6rem; color: #fff; text-shadow: 2px 2px 0px rgba(0,0,0,0.1); z-index: 2; }
.music-player-wrapper { position: relative; width: 320px; height: 120px; margin-bottom: 50px; z-index: 50; display: flex; justify-content: center; margin-top: 50px; }
.chain { position: absolute; top: -100px; width: 2px; height: 120px; background: #bbb; z-index: 49; box-shadow: 1px 1px 0 white; }
.chain-left { left: 80px; transform: rotate(-3deg); }
.chain-right { right: 80px; transform: rotate(3deg); }
.fancy-music-player { width: 300px; height: 100px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); border-radius: 50px; border: 4px solid white; box-shadow: 0 10px 30px rgba(162, 210, 255, 0.4); display: flex; align-items: center; justify-content: space-between; padding: 10px 25px; box-sizing: border-box; position: relative; transform: rotate(1deg); transition: all 0.2s; }
.album-icon { width: 60px; height: 60px; background: #cdb4db; border-radius: 50%; border: 3px solid white; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; animation: spin 5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.song-details { flex-grow: 1; margin-left: 15px; }
.song-details h3 { margin: 0; font-size: 1.2rem; color: #555; }
.song-details p { margin: 0; font-size: 0.8rem; color: #888; }
.progress-bar-bg { width: 100%; height: 6px; background: #eee; border-radius: 3px; margin-top: 5px; overflow: hidden;}
.progress-fill { height: 100%; width: 40%; background: #a2d2ff; border-radius: 3px; animation: progress 30s linear infinite; }
@keyframes progress { 0% {width: 0%} 100% {width: 100%} }
.fancy-play-btn { width: 40px; height: 40px; background: #a2d2ff; border-radius: 50%; color: white; border: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; }

/* --- MASONRY GRID & MOUSE ANIMATION --- */
.masonry-wall { column-count: 4; column-gap: 20px; width: 90%; max-width: 1200px; padding-bottom: 50px; }
@media (max-width: 900px) { .masonry-wall { column-count: 3; } }
@media (max-width: 600px) { .masonry-wall { column-count: 2; } }
.photo-card { background: white; padding: 10px 10px 40px 10px; margin-bottom: 25px; border-radius: 10px; box-shadow: 5px 5px 0px rgba(0,0,0,0.05); break-inside: avoid; position: relative; transform: rotate(var(--rot)); border: 1px solid #eee; transition: transform 0.3s; overflow: hidden; /* Hide mouse initially */ }
.photo-card:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 99; box-shadow: 10px 10px 20px rgba(0,0,0,0.1); }
.photo-card img { width: 100%; border-radius: 5px; display: block; }
.caption { position: absolute; bottom: 10px; width: 100%; text-align: center; left: 0; font-family: 'Patrick Hand'; font-size: 1.3rem; color: #555; }
.tape { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 50px; height: 20px; background: #fcf6bd; opacity: 0.8; border-radius: 2px; }

/* Cheese & Mouse Elements */
.cheese-bit {
    position: absolute; bottom: -30px; left: 20px; font-size: 20px;
    transition: bottom 0.3s; opacity: 0; z-index: 101;
}
.mouse-actor {
    position: absolute; bottom: -50px; right: 10px; width: 40px;
    transition: all 0.3s; z-index: 102;
}
.shock-mark {
    position: absolute; top: -15px; right: 5px; color: red; font-weight: bold; font-size: 20px;
    opacity: 0; transform: scale(0); z-index: 103;
}

/* Hover Trigger */
.photo-card:hover .cheese-bit { bottom: 10px; opacity: 1; }
.photo-card:hover .mouse-actor {
    animation: mouseReaction 2s forwards; /* Run animation on hover */
}

@keyframes mouseReaction {
    0% { bottom: -50px; right: 10px; transform: scaleX(1); } /* Start outside */
    20% { bottom: 5px; right: 40px; } /* Run to cheese */
    40% { transform: scaleX(1) rotate(-10deg); } /* Eat */
    50% { transform: scaleX(-1); } /* Look left (at photo) */
    60% { transform: scaleX(-1) scale(1.1); } /* Shocked freeze */
    70% { transform: scaleX(-1) scale(1.1) rotate(5deg); } /* Shiver */
}
/* Apply shock mark animation when mouse actor animates past 50% */
.photo-card:hover .mouse-actor .shock-mark {
     animation: showShock 0.5s forwards 1s; /* Delay 1s (50% of 2s) */
}
@keyframes showShock {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(1); }
}

/* Accessories & Modals */
.bottom-emojis { position: fixed; bottom: 35px; left: 0; width: 100%; height: 100px; pointer-events: none; z-index: 20; }
.b-emoji { position: absolute; font-size: 50px; filter: drop-shadow(2px 5px 5px rgba(0,0,0,0.1)); transition: transform 0.3s; pointer-events: auto; }
.b-emoji:hover { transform: scale(1.2) translateY(-10px); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); backdrop-filter: blur(5px); z-index: 1000; display: none; justify-content: center; align-items: center; }
.active { display: flex; animation: fadeIn 0.3s; }
.popup-img-wrapper { background: white; padding: 15px; border-radius: 20px; transform: rotate(-2deg); box-shadow: 0 20px 50px rgba(162, 210, 255, 0.3); max-width: 90%; text-align: center; border: 4px solid #a2d2ff; }
.popup-img-wrapper img { max-height: 70vh; max-width: 100%; border-radius: 10px;}
.note-paper { width: 320px; padding: 40px; background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%); border-radius: 20px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 2px solid #eee; font-family: 'Pyidaungsu', sans-serif; line-height: 1.8; color: #555; position: relative; text-align: left;}
.note-paper h2 { color: #ff6b81; font-family: 'Patrick Hand'; font-size: 2rem; margin-top: 0; text-align: center;}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }