/* Persistent bell; request notices use normal flow and never cover boards. */
.friends-presence-widget { width:max-content; max-width:calc(100vw - 24px); align-items:center; gap:8px; pointer-events:none; }
.friends-presence-widget .friends-presence-toggle { margin-left:0; }
/* Puzzle pages used a wide invisible widget and a tiny, detached toggle. */
body:has(.puzzle-journey-room) .friends-presence-widget { right:max(.55rem, env(safe-area-inset-right)); }
body:has(.puzzle-journey-room) .friends-presence-toggle { width:44px; min-height:44px; }
body:has(.puzzle-journey-room) .friends-presence-toggle__icons img:last-child { width:22px; height:22px; }
body:has(.puzzle-journey-room) .friends-presence-toggle__badge { top:-5px; right:-5px; min-width:20px; height:20px; font-size:11px; }
.friends-presence-widget > * { pointer-events:auto; }
.friend-request-bell { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:none; width:48px; height:48px; border:1px solid var(--theme-border); border-radius:16px; color:var(--theme-title); background:var(--theme-surface); text-decoration:none; box-shadow:0 4px 14px rgba(3,14,24,.1); }
.friend-request-bell svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.friend-request-bell.has-pending { color:#c22e3d; border-color:#db7380; background:#fff0f2; }
.friend-request-bell__count { position:absolute; top:-5px; right:-5px; display:grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border:2px solid var(--theme-surface); border-radius:20px; background:#c22e3d; color:#fff; font-size:11px; font-weight:850; line-height:1; }
.friend-request-bell:focus-visible,.friend-request-notice a:focus-visible,.friend-request-notice button:focus-visible { outline:3px solid var(--theme-accent-text); outline-offset:3px; }
.friend-request-bell:hover { filter:brightness(.96); }
.friend-request-notice { position:static; display:flex; align-items:center; gap:10px; width:min(100%,760px); margin:0 auto 14px; padding:8px 10px; border:1px solid #db7380; border-radius:14px; background:var(--theme-surface); color:var(--theme-title); }
.friend-request-notice[hidden],.friend-request-bell__count[hidden] { display:none !important; }
.friend-request-notice a { display:flex; flex:1; align-items:center; gap:10px; min-height:44px; min-width:0; color:inherit; text-decoration:none; }
.friend-request-notice__icon { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:12px; color:#c22e3d; background:#fff0f2; }
.friend-request-notice__icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; }
.friend-request-notice__copy { display:grid; gap:3px; }
.friend-request-notice__copy strong { font-size:13px; line-height:1.35; }
.friend-request-notice__copy small { color:var(--theme-muted); font-size:12px; }
.friend-request-notice button { flex:none; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:10px; color:var(--theme-title); background:var(--theme-surface-hover); font-size:24px; cursor:pointer; }
@media(max-width:900px) { .friend-request-bell { width:44px; height:44px; border-radius:14px; } }
