/* Shared hours: the line on the join panel, the pill in the top bar and the end card. Frosted glass like
   every HUD; each thing arrives with a 250 ms ease and takes its room from the start (no layout shift). */

.shared-join { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); font-size: 12.5px; }
.shared-join .btn { flex: none; min-height: 30px; padding: 3px 10px; }
.shared-join .btn[hidden] { display: none; }

.shared-pill { display: none; align-items: center; gap: 7px; flex: none; min-width: 12.5em; justify-content: center; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--ink); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shared-pill.on { display: inline-flex; animation: shared-in .25s ease both; }
.shared-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.shared-pill[data-kind="live"] i { animation: shared-beat 2.4s ease-in-out infinite; }

.shared-card { position: fixed; z-index: 18; left: 50%; top: 50%; display: none; width: min(420px, calc(100vw - 2 * var(--gap))); padding: 22px 22px 18px; text-align: center; transform: translate(-50%, -50%); }
.shared-card.on { display: block; animation: shared-card-in .3s ease both; }
.shared-card h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.shared-card p { margin: 0 0 16px; color: var(--hud-muted); font-size: 14px; }
.shared-card-acts { display: flex; gap: 8px; justify-content: center; }
.shared-card-acts .btn { min-height: 42px; padding: 6px 18px; font-size: 14px; }

@keyframes shared-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes shared-card-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }
@keyframes shared-beat { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); opacity: .55; } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } }

/* On a phone the top bar has no room for it: the pill hangs under the bar's left end (the bar is its
   containing block, so nothing in the bar moves). */
@media (max-width: 760px) {
  .shared-pill { position: absolute; left: 0; top: calc(100% + 8px); min-width: 0; padding: 6px 12px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); box-shadow: 0 8px 28px #0002; }
}
body.pip .shared-card, body.record .shared-card, body.record .shared-pill { display: none !important; }
