:root{font-family:Chewy,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#4287f5;color:#fff}#app{max-width:960px;margin:0 auto;padding:16px}.prompt{display:flex;flex-direction:column;gap:16px;max-width:360px;margin:48px auto}.prompt h1{margin:0;font-family:Chewy,system-ui,sans-serif;font-weight:400;font-size:2.25rem}.prompt .hint{margin:0;opacity:.7;font-size:.9rem}.prompt label{display:flex;flex-direction:column;gap:6px}.prompt input{font-size:1rem;padding:10px 12px;min-height:44px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit}.prompt button{font-size:1rem;padding:12px;min-height:44px;border-radius:6px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer}.app-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.app-header h1{margin:0;font-size:1.5rem}.gallery-loading,.error{padding:32px;text-align:center;opacity:.6}.app-header .home-link{color:inherit;text-decoration:none;font-family:Chewy,system-ui,sans-serif;font-size:2rem;font-weight:400}#main{position:relative}.decor{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0;will-change:transform}.decor-item{position:absolute;-webkit-user-select:none;user-select:none;opacity:.85;filter:drop-shadow(0 3px 8px rgba(0,0,0,.18))}.grid{display:flex;flex-direction:column;gap:40px;padding:24px 0;position:relative;z-index:1}.tile{position:relative;display:block;width:fit-content;max-width:70%;padding:10px 10px 44px;background:#fdfdfb;border-radius:2px;color:#222;text-decoration:none;box-shadow:0 10px 22px #00000047;transform:rotate(var(--tilt, 0deg))}.tile:nth-child(odd){align-self:flex-start}.tile:nth-child(2n){align-self:flex-end}.tile img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto}.tile-caption{position:absolute;left:14px;right:14px;bottom:10px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:1rem;color:#333}.tile-caption .uploader{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-reactions{display:flex;gap:6px;flex-shrink:0;white-space:nowrap}.reaction-chip{position:relative;display:inline-flex;align-items:baseline;gap:2px}.reaction-chip .dim{font-size:.8rem;color:#888}.reaction-tooltip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);padding:4px 10px;background:#222;color:#fff;border-radius:6px;font-size:.85rem;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 80ms ease;z-index:40}.reaction-chip:hover .reaction-tooltip{opacity:1}.grid-sentinel{height:1px}.camera-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0));width:56px;height:56px;border-radius:50%;border:none;background:transparent;color:#fff;font-size:28px;cursor:pointer;z-index:10}.tile-pending{opacity:.7;cursor:default}.tile-pending .tile-caption{font-style:italic}.tile-caption-text{display:block;margin:8px 2px 4px;font-family:Chewy,system-ui,sans-serif;font-size:1.15rem;color:#222;line-height:1.25;overflow-wrap:anywhere}.photo-caption{margin:12px 0 4px;font-family:Chewy,system-ui,sans-serif;font-size:1.5rem;line-height:1.2}.caption-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:16px;z-index:30}.caption-dialog{width:100%;max-width:420px;background:#fdfdfb;color:#222;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 40px #0006}.caption-preview{width:100%;max-height:50vh;object-fit:contain;border-radius:4px;background:#eee}.caption-input{font:inherit;font-size:1rem;padding:10px 12px;min-height:44px;border:1px solid #ccc;border-radius:6px;background:#fff;color:inherit}.caption-actions{display:flex;justify-content:flex-end;gap:8px}.caption-actions button{padding:10px 16px;min-height:44px;border-radius:6px;border:1px solid #ccc;background:#fff;color:inherit;cursor:pointer;font:inherit}.caption-actions button[data-action=post]{background:#4287f5;border-color:#4287f5;color:#fff}.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom,0));transform:translate(-50%);padding:10px 16px;background:#222;color:#fff;border-radius:20px;font-size:.9rem;box-shadow:0 4px 12px #0000004d;z-index:20}.back-link a{color:inherit;text-decoration:none}.photo-card{position:relative;display:block;width:fit-content;max-width:100%;margin:16px auto 28px;padding:12px 12px 52px;background:#fdfdfb;color:#222;border-radius:2px;box-shadow:0 14px 28px #00000047;transform:rotate(-1.2deg)}.photo-card-img{display:block;max-width:100%;max-height:65vh;width:auto;height:auto}.photo-card-caption{margin:12px 4px 4px;font-family:Chewy,system-ui,sans-serif;font-size:1.3rem;line-height:1.25;text-align:center;color:#222;overflow-wrap:anywhere}.photo-card-meta{position:absolute;left:16px;right:16px;bottom:16px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:1rem;color:#333}.photo-card-meta .uploader{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-card-meta .dim{flex-shrink:0}.dim{opacity:.6}.reaction-picker{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 8px}.reaction-btn{font-size:1.4rem;min-width:44px;min-height:44px;padding:4px 8px;border-radius:8px;border:1px solid transparent;background:#ffffff26;color:inherit;cursor:pointer}.reaction-btn.reacted{border-color:#fff;background:#ffffff4d}.reaction-tally{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 16px;min-height:1.5em}.tally-item{font-size:1rem}.comments h2{font-size:1.1rem;margin:16px 0 8px}.comment-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.comment-list li{padding:10px 14px;border-radius:6px;background:#ffffffeb;color:#222;box-shadow:0 2px 8px #0000001f;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.comment-list li.mine{background:#fffbe8}.comment-list li.dim{background:transparent;color:inherit;box-shadow:none}.comment-list .ts{margin-left:auto;font-size:.8rem;color:#666}.comment-form{display:flex;gap:8px;margin-top:12px}.comment-form textarea{flex:1;padding:10px 12px;font:inherit;font-size:1rem;border:1px solid rgba(255,255,255,.4);border-radius:6px;background:#ffffffeb;color:#222;resize:vertical}.comment-form textarea::placeholder{color:#888}.comment-form button{padding:0 18px;min-height:44px;border-radius:6px;border:1px solid rgba(255,255,255,.6);background:#ffffff26;color:inherit;font:inherit;cursor:pointer}.comment-form button:hover{background:#ffffff4d}
