*{box-sizing:border-box;margin:0;padding:0;font-family:system-ui,-apple-system,sans-serif}html,body,#root{background:#0f0f14;width:100%;height:100%}.app-wrapper{justify-content:center;align-items:center;width:100%;height:100dvh;display:flex}.mobile-shell{color:#fff;background:#1e1e24;flex-direction:column;width:100%;height:100dvh;display:flex;position:relative;overflow:hidden}@media (width>=500px){.mobile-shell{border:1px solid #323240;border-radius:28px;width:440px;height:88vh;max-height:860px;box-shadow:0 24px 60px #000000b3}}.lock-screen{justify-content:center;align-items:center;gap:1rem;padding:2rem}.lock-screen form{flex-direction:column;gap:.75rem;width:100%;display:flex}.lock-screen input,.lock-screen button{text-align:center;border:none;border-radius:12px;padding:14px;font-size:1.1rem}.lock-screen input{color:#fff;background:#2b2b36;outline:none}.lock-screen button{color:#fff;cursor:pointer;background:#ff4d6d;font-weight:700}.error-text{color:#ff4d6d;text-align:center;font-size:.85rem}.top-bar{background:#2b2b36;border-bottom:1px solid #3a3a48;justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.user-info{align-items:center;gap:8px;display:flex}.user-tag{color:#ddd;font-size:.9rem}.logout-btn{cursor:pointer;background:#3a3a48;border:none;border-radius:10px;padding:6px 10px;font-size:.9rem}.content{flex-direction:column;flex:1;display:flex;overflow-y:auto}.chat-view{flex-direction:column;height:100%;display:flex}.messages-list{flex-direction:column;flex:1;gap:8px;padding:14px;display:flex;overflow-y:auto}.bubble{word-wrap:break-word;border-radius:16px;max-width:78%;padding:10px 14px;line-height:1.4}.bubble small{opacity:.75;margin-bottom:2px;font-size:.7rem;display:block}.bubble.mine{background:#ff4d6d;border-bottom-right-radius:4px;align-self:flex-end}.bubble.theirs{background:#2f2f3d;border-bottom-left-radius:4px;align-self:flex-start}.chat-input{background:#2b2b36;gap:8px;padding:10px;display:flex}.chat-input input{color:#fff;background:#1e1e24;border:none;border-radius:20px;outline:none;flex:1;padding:12px 14px}.chat-input button{color:#fff;cursor:pointer;background:#ff4d6d;border:none;border-radius:20px;padding:0 18px;font-weight:700}.pins-view{flex-direction:column;gap:16px;padding:14px;display:flex}.pin-uploader{background:#2b2b36;border-radius:14px;flex-direction:column;gap:10px;padding:14px;display:flex}.photo-picker-row{gap:10px;display:flex}.picker-btn{text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;flex:1;padding:12px;font-size:.95rem;font-weight:600;transition:opacity .15s}.picker-btn:active{opacity:.8}.camera-btn{color:#fff;background:#3a86ff}.gallery-btn{color:#fff;background:#3a3a48}.image-preview{border-radius:10px;width:100%;max-height:220px;position:relative;overflow:hidden}.image-preview img{object-fit:cover;width:100%;height:220px;display:block}.clear-preview{color:#fff;cursor:pointer;background:#000000b3;border:none;border-radius:50%;width:28px;height:28px;position:absolute;top:8px;right:8px}.pin-uploader input[type=text]{color:#fff;background:#1e1e24;border:none;border-radius:8px;outline:none;padding:12px}.pin-submit-btn{color:#fff;cursor:pointer;background:#ff4d6d;border:none;border-radius:8px;padding:12px;font-weight:700}.pin-submit-btn:disabled{opacity:.4;cursor:not-allowed}.pins-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.polaroid{color:#222;text-align:center;background:#fff;border-radius:8px;padding:8px 8px 14px;box-shadow:0 4px 10px #0000004d}.polaroid-img-wrap{width:100%;position:relative}.polaroid img{aspect-ratio:1;object-fit:cover;border-radius:4px;width:100%;margin-bottom:6px;display:block}.polaroid p{word-wrap:break-word;font-size:.9rem;font-weight:600}.polaroid small{color:#666;font-size:.75rem}.delete-pin-btn{cursor:pointer;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#000000a6;border:none;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;font-size:.85rem;display:flex;position:absolute;top:6px;right:6px}.delete-pin-btn:active{transform:scale(.92)}.sounds-grid{grid-template-columns:1fr 1fr;gap:16px;padding:20px;display:grid}.sound-btn{aspect-ratio:1;color:#fff;cursor:pointer;background:linear-gradient(145deg,#ff4d6d,#c9184a);border:none;border-radius:24px;font-size:1.3rem;font-weight:700;box-shadow:0 6px #800f2f}.sound-btn:active{transform:translateY(4px);box-shadow:0 2px #800f2f}.modal-overlay{z-index:100;background:#000000b3;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.confirm-modal{color:#fff;text-align:center;background:#2b2b36;border-radius:16px;width:100%;max-width:320px;padding:20px;box-shadow:0 12px 30px #00000080}.confirm-modal h3{margin-bottom:8px;font-size:1.15rem}.confirm-modal p{color:#bbb;margin-bottom:18px;font-size:.9rem}.modal-actions{gap:10px;display:flex}.modal-actions button{cursor:pointer;border:none;border-radius:10px;flex:1;padding:10px;font-weight:700}.cancel-btn{color:#fff;background:#3a3a48}.confirm-delete-btn{color:#fff;background:#ff4d6d}.bottom-nav{background:#2b2b36;border-top:1px solid #3a3a48;display:flex}.bottom-nav button{color:#888;cursor:pointer;background:0 0;border:none;flex:1;padding:14px;font-size:.95rem;font-weight:600}.bottom-nav button.active{color:#ff4d6d;border-top:2px solid #ff4d6d}.lightbox-overlay{z-index:200;background:#000000eb;justify-content:center;align-items:center;padding:16px;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.lightbox-card{background:#2b2b36;border-radius:20px;flex-direction:column;width:100%;max-width:450px;max-height:85vh;display:flex;position:relative;overflow:hidden;box-shadow:0 25px 60px #000c}.lightbox-card img{object-fit:contain;background:#000;width:100%;max-height:65vh;display:block}.lightbox-info{color:#fff;text-align:center;background:#2b2b36;padding:16px}.lightbox-info p{margin-bottom:4px;font-size:1.05rem}.lightbox-info small{color:#aaa;font-size:.85rem}.lightbox-close{color:#fff;cursor:pointer;z-index:10;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000b3;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.1rem;display:flex;position:absolute;top:12px;right:12px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
