/*
 * Unlayered CSS - Tailwind v4 puts generated classes inside @layer utilities
 * which causes them to lose to unlayered user-agent defaults (form elements, etc.)
 * and also makes certain responsive utilities not override correctly.
 * These rules stay outside the Tailwind build pipeline so they remain unlayered.
 */

/* === Responsive Layout Utilities === */
@media (min-width: 64rem) {
  .lg\:flex { display: flex; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:flex-1 { flex: 1; }
  .lg\:min-w-0 { min-width: 0; }
  .lg\:w-56 { width: 14rem; }
  .lg\:w-80 { width: 20rem; }
  .lg\:ml-56 { margin-left: 14rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:static { position: static; }
  .lg\:translate-x-0 { translate: 0; }
  .lg\:hidden { display: none; }
}

/* === Dark Mode - override base Tailwind utility classes so `dark:` variants aren't needed === */

.dark .text-text-muted { color: var(--color-text-muted-dark); }
.dark .text-text { color: var(--color-text-dark); }
.dark .bg-surface { background-color: var(--color-surface-dark); }
.dark .bg-surface-hover { background-color: var(--color-surface-hover-dark); }
.dark .border-border { border-color: var(--color-border-dark); }

/* === Form Elements === */

.pf\:input, .pf\:textarea, .pf\:select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.pf\:input::placeholder, .pf\:textarea::placeholder {
  color: color-mix(in srgb, var(--color-text-muted) 40%, transparent);
}

.pf\:input:focus, .pf\:textarea:focus, .pf\:select:focus {
  border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.dark .pf\:input, .dark .pf\:textarea, .dark .pf\:select {
  border-color: var(--color-border-dark);
  background: var(--color-surface-dark);
  color: var(--color-text-dark);
}

.dark .pf\:input::placeholder, .dark .pf\:textarea::placeholder {
  color: color-mix(in srgb, var(--color-text-muted-dark) 40%, transparent);
}

.pf\:textarea {
  min-height: 6rem;
  resize: vertical;
}

.pf\:select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.dark .pf\:select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.pf\:select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.dark .pf\:select option {
  background: var(--color-surface-dark);
  color: var(--color-text-dark);
}

.pf\:label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.dark .pf\:label {
  color: var(--color-text-dark);
}

.pf\:checkbox, .pf\:radio {
  accent-color: var(--color-primary);
}

.pf\:checkbox {
  border-radius: 0.25rem;
}

.pf\:file {
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
}

.pf\:file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pf\:file::file-selector-button:hover {
  background: var(--color-primary-hover);
}

.dark .pf\:file {
  color: var(--color-text-dark);
}

.pf\:hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.dark .pf\:hint {
  color: var(--color-text-muted-dark);
}

.pf\:btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all .15s;
  border: none;
}

.pf\:btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  scale: 1.02;
}

.pf\:btn:active {
  scale: 0.98;
}

.pf\:btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  scale: 1;
  box-shadow: none;
}

.pf\:btn-quiet {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.pf\:btn-quiet:hover {
  background: var(--color-surface-hover);
}

.pf\:icon-dismiss {
  background: transparent;
  border: none;
  padding: 0.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.pf\:icon-dismiss:hover {
  color: var(--color-text);
}

/* Error state for fields inside field_with_errors wrapper */
.field_with_errors .pf\:input,
.field_with_errors .pf\:textarea,
.field_with_errors .pf\:select {
  border-color: #ef4444;
}

.field_with_errors .pf\:input:focus,
.field_with_errors .pf\:textarea:focus,
.field_with_errors .pf\:select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ef4444 25%, transparent);
}

/* Disabled state */
.pf\:input:disabled, .pf\:textarea:disabled, .pf\:select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Live room (TikTok-style full-bleed) — unlayered to beat UA defaults.
   inset:0 alone sizes the box; an extra 100svh/100dvh height fights bottom
   and leaves a dead black band under the dock on mobile browsers. */
.pf\:live-room {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-height: none;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.pf\:live-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.pf\:live-video.is-mirrored {
  transform: scaleX(-1);
}
.pf\:live-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
/* Pause ("be right back") card: above the video, below the HUD, chat and gifts. */
.pf\:live-pause {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 9rem;
  pointer-events: none;
}
.pf\:live-pause.is-paused,
.pf\:live-room.is-reconnecting .pf\:live-pause-local {
  display: flex;
  background: radial-gradient(circle at 50% 40%, rgba(225, 29, 72, 0.28), rgba(10, 10, 10, 0.92) 70%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pf\:live-room.is-paused-state .pf\:live-pause-local {
  display: none;
}
.pf\:live-pause-card {
  max-width: 20rem;
  text-align: center;
  animation: pf-live-pause-in 280ms ease-out both;
}
.pf\:live-pause-cup {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pf\:live-pause-emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(245, 158, 11, 0.35));
}
.pf\:live-pause-steam {
  position: absolute;
  top: 0.2rem;
  width: 0.35rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(2px);
  animation: pf-live-steam 2.4s ease-in-out infinite;
}
.pf\:live-pause-steam:nth-child(1) { left: 1.9rem; animation-delay: 0s; }
.pf\:live-pause-steam:nth-child(2) { left: 2.6rem; animation-delay: 0.6s; }
.pf\:live-pause-steam:nth-child(3) { left: 3.3rem; animation-delay: 1.2s; }
.pf\:live-pause-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pf\:live-pause-sub {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}
.pf\:live-pause-countdown {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
  font-variant-numeric: tabular-nums;
}
.pf\:live-pause-countdown:empty {
  display: none;
}
.pf\:live-pause-spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e11d48;
  animation: pf-live-spin 900ms linear infinite;
}
.pf\:live-break-bar {
  position: absolute;
  left: 50%;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  z-index: 25;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pf\:live-break-bar.is-active {
  display: flex;
}
.pf\:obs-warning {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  z-index: 26;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(180, 83, 9, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}
.pf\:obs-warning[hidden] {
  display: none;
}
/* OBS console: guests or battle hosts, live with sound, over the (delayed) preview. */
.pf\:obs-monitor {
  position: absolute;
  left: 0.75rem;
  top: calc(7.5rem + env(safe-area-inset-top, 0px));
  z-index: 24;
  width: min(42vw, 13rem);
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
}
.pf\:obs-monitor[hidden] {
  display: none;
}
.pf\:obs-monitor video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.6rem;
  background: #000;
}
.pf\:obs-monitor p {
  margin: 0.3rem 0.15rem 0;
  color: rgba(255, 255, 255, 0.75);
}
.pf\:obs-monitor button {
  margin-top: 0.3rem;
  width: 100%;
  padding: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pf\:live-break-resume {
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pf\:live-break-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.pf\:live-break-option {
  padding: 0.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pf\:live-break-option:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: #e11d48;
}
@keyframes pf-live-pause-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes pf-live-steam {
  0% { opacity: 0; transform: translateY(0.6rem) scaleY(0.6); }
  40% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-0.8rem) scaleY(1.1); }
}
@keyframes pf-live-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pf\:live-pause-steam, .pf\:live-pause-spinner, .pf\:live-pause-card { animation: none; }
}
.pf\:live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pf\:live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
}
.pf\:live-viewers:hover,
.pf\:live-viewers[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.65);
}
/* The viewers sheet (live_streams/_viewers_sheet), TikTok-style: the ranking scrolls, the viewer's own row stays
   pinned at the bottom. */
.pf\:live-viewers-sheet { padding-bottom: 0; }
.pf\:live-viewers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.pf\:live-viewers-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.pf\:live-viewers-head p { margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.pf\:live-viewers-body { padding-bottom: 1rem; }
.pf\:live-viewers-coins { display: inline-flex; align-items: center; gap: 0.2rem; flex-shrink: 0; font-size: 0.8rem; font-weight: 700; color: #fde68a; }
.pf\:live-viewers-row.rank-1 .pf\:live-viewers-rank { color: #fde047; }
.pf\:live-viewers-row.rank-2 .pf\:live-viewers-rank { color: #e5e7eb; }
.pf\:live-viewers-row.rank-3 .pf\:live-viewers-rank { color: #f59e0b; }
.pf\:live-viewers-row.rank-1 .pf\:live-viewers-avatar { box-shadow: 0 0 0 2px #fde047; }
.pf\:live-viewers-row.rank-2 .pf\:live-viewers-avatar { box-shadow: 0 0 0 2px #d1d5db; }
.pf\:live-viewers-row.rank-3 .pf\:live-viewers-avatar { box-shadow: 0 0 0 2px #d97706; }
#live_viewers_me:not(:empty) {
  position: sticky;
  bottom: 0;
  margin: 0 -1rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(24, 24, 24, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pf\:live-viewers-me { display: flex; align-items: center; gap: 0.6rem; min-width: 0; padding: 0 0.25rem; }
.pf\:live-viewers-gift {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #e11d48;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.pf\:live-viewers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pf\:live-viewers-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  padding: 0.2rem 0.25rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pf\:live-viewers-row:hover,
.pf\:live-viewers-row:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.pf\:live-viewers-badges {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
}
.pf\:live-viewers-badge {
  padding: 0.02rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6rem;
  font-weight: 700;
}
.pf\:live-viewers-badge.is-sub {
  background: rgba(225, 29, 72, 0.35);
}
.pf\:live-viewers-badge.is-new {
  background: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
.pf\:live-viewers-more {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.pf\:live-viewers-rank {
  width: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.pf\:live-viewers-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.pf\:live-viewers-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.pf\:live-viewers-empty {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0.15rem 0.15rem;
}
.pf\:live-muted-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.pf\:live-rail {
  position: absolute;
  right: 0.5rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.pf\:live-rail-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pf\:live-rail-btn[aria-pressed="true"] {
  background: rgba(225, 29, 72, 0.85);
}
.pf\:live-chat-stack {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-height: 28dvh;
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, transparent, #000 18%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
  will-change: transform, opacity;
}
.pf\:live-chat-stack::-webkit-scrollbar { display: none; }
.pf\:live-chat-stack.is-hidden {
  transform: translate3d(110%, 0, 0);
  opacity: 0;
  pointer-events: none;
}
.pf\:live-chat-peek {
  position: absolute;
  left: 0;
  bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
  z-index: 21;
  width: 1.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
}
.pf\:live-chat-peek.is-visible {
  display: inline-flex;
}
.pf\:live-gifts {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(32dvh + 4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 21;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.35rem;
  pointer-events: none;
}
.pf\:live-joins {
  position: absolute;
  left: 0.75rem;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: min(16rem, calc(100vw - 5.5rem));
  pointer-events: none;
}
.pf\:live-join-toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate3d(-120%, 0, 0);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.pf\:live-join-toast.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.pf\:live-join-toast.is-leaving {
  transform: translate3d(-120%, 0, 0);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease;
}
.pf\:live-join-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.pf\:live-join-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.pf\:live-join-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
}
.pf\:live-join-meta {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.1;
}
.pf\:studio-go-live {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pf\:studio-go-live:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.pf\:studio-go-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pf-studio-live-pulse 1.6s ease-out infinite;
}
@keyframes pf-studio-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.pf\:live-compose-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.pf\:live-compose {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.pf\:live-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0.7rem 1rem;
  /* Under 16px iOS Safari zooms the page on focus and pushes the buttons off screen. */
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(10px);
}
.pf\:live-input::placeholder {
  color: rgba(255,255,255,0.55);
}
.pf\:live-send,
.pf\:live-compose-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pf\:live-send {
  background: #e11d48;
}
.pf\:live-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.2rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.pf\:live-comment-avatar {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.pf\:live-comment-avatar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pf\:live-comment-body {
  font-size: 0.875rem;
  line-height: 1.25;
  word-break: break-word;
}
.pf\:live-comment-name {
  font-weight: 700;
  margin-right: 0.3rem;
  color: inherit;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.pf\:live-comment-name:hover {
  text-decoration: underline;
}
.pf\:live-comment-context {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.pf\:live-comment-context.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.pf\:live-comment-context-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.pf\:live-comment-context-card {
  position: relative;
  z-index: 1;
  width: min(22rem, calc(100% - 1.5rem));
  margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1rem;
  background: rgba(22, 22, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  padding: 1rem;
  transform: translate3d(0, 1rem, 0);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}
.pf\:live-comment-context.is-open .pf\:live-comment-context-card {
  transform: translate3d(0, 0, 0);
}
.pf\:live-comment-context-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem;
}
.pf\:live-comment-context-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pf\:live-comment-context-actions form {
  margin: 0;
}
.pf\:live-comment-context-btn {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: center;
}
.pf\:live-comment-context-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.pf\:live-comment-context-btn-danger {
  background: rgba(225, 29, 72, 0.22);
  color: #fecdd3;
}
.pf\:live-comment-context-btn-danger:hover {
  background: rgba(225, 29, 72, 0.34);
}
.pf\:live-comment-context-cancel {
  width: 100%;
  margin-top: 0.65rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem;
  cursor: pointer;
}
/* Live sheets: a floating glass card a little off the screen's edges, with a grip on top to drag it down
   (live_sheet_controller.js adds the grip and the drag). */
.pf\:live-sheet {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-height: min(72dvh, calc(100dvh - 4rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(40, 37, 46, 0.86), rgba(18, 17, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  padding: 0 1.1rem 1.1rem;
  transform: translate3d(0, calc(100% + 1.5rem), 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 64px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}
.pf\:live-sheet::-webkit-scrollbar { display: none; }
.pf\:live-sheet.is-open {
  transform: translate3d(0, var(--sheet-drag, 0px), 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
.pf\:live-sheet.is-dragging { transition: none; }
.pf\:live-sheet-grip {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  height: 1.6rem;
  margin: 0 -1.1rem 0.15rem;
  padding-top: 0.55rem;
  cursor: grab;
  touch-action: none;
}
.pf\:live-sheet-grip::before {
  content: "";
  width: 2.4rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}
.pf\:live-sheet.is-dragging .pf\:live-sheet-grip { cursor: grabbing; }
.pf\:live-sheet h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.pf\:live-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.pf\:live-sheet-close svg { width: 1rem; height: 1rem; }
.pf\:live-sheet-close:active { transform: scale(0.9); }
@media (hover: hover) {
  .pf\:live-sheet-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
}
.pf\:live-sheet-effects {
  max-height: min(52dvh, 28rem);
  background: rgba(12, 12, 12, 0.48);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.pf\:live-sheet-share {
  max-height: min(78dvh, 36rem);
}
.pf\:live-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #e11d48;
  text-decoration: none;
}
.pf\:live-share-btn:hover {
  opacity: 0.92;
}
.pf\:live-share-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pf\:live-share-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.12);
}
.pf\:live-share-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}
.pf\:live-share-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
  padding: 0.5rem;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
}
.pf\:live-share-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pf\:live-share-input {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.pf\:live-share-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.pf\:live-share-note {
  display: block;
  resize: none;
  font-size: 16px;
  line-height: 1.35;
}
@media (min-width: 640px) {
  .pf\:live-share-note { font-size: 0.875rem; }
}
.pf\:live-share-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
}
.pf\:live-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:live-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pf\:live-sheet-backdrop.is-effects {
  background: transparent;
}
.pf\:live-toolbar {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pf\:live-tool {
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pf\:live-tool[aria-pressed="true"] {
  background: rgba(225, 29, 72, 0.9);
}
.pf\:live-filter-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.3rem 0.3rem 0.25rem;
  margin: -0.3rem 0 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pf\:live-filter-row::-webkit-scrollbar {
  display: none;
}
/* Looks are portrait cards with the look on a face (public/live/looks), the creator's photo for a personal look,
   the bare face for None, and the name under it. Selected: white ring and a red check. */
.pf\:live-filter-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}
.pf\:live-filter-chip-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.85rem;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(251, 207, 232, 0.45), rgba(167, 139, 250, 0.4));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.pf\:live-filter-chip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf\:live-filter-chip-initial { font-size: 1.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.9); }
.pf\:live-filter-chip-badge {
  position: absolute; left: 0.25rem; bottom: 0.25rem; padding: 0.1rem 0.35rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.02em;
}
.pf\:live-filter-chip [data-filter-label] {
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-filter-chip[aria-pressed="true"],
.pf\:live-filter-chip.is-selected { color: #fff; }
.pf\:live-filter-chip[aria-pressed="true"] .pf\:live-filter-chip-thumb,
.pf\:live-filter-chip.is-selected .pf\:live-filter-chip-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e11d48; }
.pf\:live-filter-chip[aria-pressed="true"] .pf\:live-filter-chip-thumb::after {
  content: ""; position: absolute; top: 0.25rem; right: 0.25rem; width: 1.05rem; height: 1.05rem; border-radius: 999px;
  background: #e11d48 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}
/* Loading a look: a soft pulse on its card while the label counts the download. */
.pf\:live-filter-chip.is-loading .pf\:live-filter-chip-thumb { animation: pf-look-loading 1s ease-in-out infinite alternate; }
@keyframes pf-look-loading { from { opacity: 1; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .pf\:live-filter-chip.is-loading .pf\:live-filter-chip-thumb { animation: none; opacity: 0.6; } }
.pf\:live-filter-chip.is-error .pf\:live-filter-chip-thumb { box-shadow: 0 0 0 2px #f87171; }

/* Effects sheet layout: one segmented control (Looks | Background), then titled sections. */
.pf\:fx-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.9rem;
  border-radius: 0.9rem; background: rgba(255, 255, 255, 0.08);
}
.pf\:fx-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.5rem;
  border: 0; border-radius: 0.7rem; background: transparent; color: rgba(255, 255, 255, 0.7);
  font: 600 0.85rem/1 Inter, system-ui, sans-serif; cursor: pointer;
}
.pf\:fx-tab[aria-pressed="true"] { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.pf\:fx-tab-icon { width: 1.05rem; height: 1.05rem; }
.pf\:fx-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.pf\:fx-panel.hidden { display: none; }
.pf\:fx-section { display: flex; flex-direction: column; gap: 0.7rem; }
.pf\:fx-heading {
  display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.8rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.85); letter-spacing: 0.01em;
}
.pf\:fx-heading-icon { width: 1rem; height: 1rem; color: #fb7185; }
.pf\:fx-slider { display: block; font-size: 0.85rem; }
.pf\:fx-hint { margin: -0.45rem 0 0; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.pf\:fx-slider.hidden { display: none; }
.pf\:fx-slider-head { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, 0.9); }
.pf\:fx-slider-head > span:last-child { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.pf\:fx-slider-name { display: inline-flex; align-items: center; gap: 0.4rem; }
.pf\:fx-slider-icon { width: 0.95rem; height: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.pf\:fx-row { display: flex; flex-direction: column; gap: 0.45rem; }
.pf\:fx-label { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); }
.pf\:fx-link {
  align-self: flex-start; padding: 0.35rem 0; border: 0; background: none; color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem; text-decoration: underline; cursor: pointer;
}
.pf\:live-touchups.hidden { display: none; }
.pf\:live-touchups { display: flex; flex-direction: column; gap: 0.8rem; }
/* Background: icon and colour tiles, three to a row. */
.pf\:fx-bg-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.pf\:fx-bg-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.55rem 0.25rem;
  border: 0; border-radius: 0.85rem; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.85);
  font: 600 0.72rem/1.1 Inter, system-ui, sans-serif; cursor: pointer;
}
.pf\:fx-bg-option-art {
  display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--swatch, rgba(255, 255, 255, 0.12)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.pf\:fx-bg-option-icon { width: 1.15rem; height: 1.15rem; }
.pf\:fx-bg-option[aria-pressed="true"] { background: rgba(225, 29, 72, 0.2); color: #fff; box-shadow: inset 0 0 0 2px #e11d48; }
.pf\:fx-bg-option[aria-pressed="true"] .pf\:fx-bg-option-art { box-shadow: 0 0 0 2px #fff; }
.pf\:live-room.is-camera-off .pf\:fx-bg-option[data-camera-only] { display: none; }
.pf\:live-room.is-camera-off .pf\:fx-tab[data-camera-only] { display: none; }
.pf\:live-beauty-advanced summary {
  list-style: none;
}
.pf\:live-beauty-advanced summary::-webkit-details-marker {
  display: none;
}
.pf\:live-bg-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.pf\:live-bg-thumb.is-selected,
.pf\:live-bg-thumb[aria-pressed="true"] {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
  border-color: transparent;
}
.pf\:live-hud-top form {
  display: inline-flex;
  margin: 0;
}
.pf\:live-gift-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: pf-live-gift-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}
.pf\:video-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(225, 29, 72, 0.22), transparent 62%),
    #0a0a0a;
  color: #f3f4f6;
  overflow: hidden;
}
.pf\:video-remote, .pf\:video-local {
  position: absolute;
  background: #111;
  object-fit: cover;
}
.pf\:video-remote {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
.pf\:video-stage.is-live .pf\:video-remote { opacity: 1; }
.pf\:video-local {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: scaleX(-1);
}
.pf\:video-local.is-processed { transform: none; }
.pf\:video-local.is-hidden-source {
  width: 16px;
  height: 16px;
  opacity: 0;
  pointer-events: none;
}
.pf\:video-canvas {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}
.pf\:video-canvas.is-preview {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  object-fit: cover;
}
.pf\:video-stage.is-live .pf\:video-canvas.is-preview,
.pf\:video-stage.is-live .pf\:video-local {
  inset: auto;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 7.25rem;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 4;
}
.pf\:video-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 22%),
    linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.35) 28%, transparent 52%);
}
.pf\:video-stage.is-live .pf\:video-shade {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 18%), linear-gradient(to top, rgba(0,0,0,0.72), transparent 34%);
}
.pf\:video-top, .pf\:video-sheet, .pf\:video-dock, .pf\:video-error, .pf\:video-gifts, .pf\:video-burst, .pf\:video-effects {
  position: absolute;
  z-index: 5;
}
.pf\:video-top {
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.85rem 0.7rem;
  pointer-events: none;
}
.pf\:video-top a, .pf\:video-top button, .pf\:video-balance, .pf\:video-earned, .pf\:video-lock-tip { pointer-events: auto; }
.pf\:video-coins {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  pointer-events: none;
}
.pf\:video-earned {
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(245,158,11,0.16);
  border: 1px solid rgba(245,158,11,0.75);
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 800;
}
.pf\:video-earned.is-tappable { cursor: pointer; }
.pf\:video-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 0;
  background: #f59e0b;
  color: #111;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245,158,11,0.35);
}
.pf\:video-lock-chip svg { width: 0.9rem; height: 0.9rem; }
.pf\:video-lock-chip[hidden], .pf\:video-lock-tip[hidden] { display: none; }
.pf\:video-lock-tip.is-info { max-width: 17rem; text-align: left; }
.pf\:video-lock-chip.is-muted, .pf\:video-tool.is-muted { opacity: 0.55; box-shadow: none; }
.pf\:video-lock-tip {
  margin: 0;
  max-width: 13rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(17,17,17,0.88);
  border: 1px solid rgba(245,158,11,0.6);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: right;
}
.pf\:video-top-copy { flex: 1; min-width: 0; }
.pf\:video-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
}
.pf\:video-status { margin: 0; font-weight: 700; font-size: 1rem; }
.pf\:video-status.is-name { font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.pf\:one-on-one-nav { color: #f59e0b; font-weight: 800; }
a.pf\:one-on-one-card { display: block; text-decoration: none; }
a.pf\:one-on-one-card:hover { border-color: rgba(245, 158, 11, 0.8); }
.pf\:video-balance {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(22,22,22,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  font-weight: 700;
}
.pf\:video-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1.25rem calc(7.5rem + env(safe-area-inset-bottom, 0px));
  /* Opaque enough that the audio-card / camera preview behind it does not bleed through
     (otherwise "Audio only" and @username float over the people list). */
  background: linear-gradient(to top, rgba(10, 10, 10, 0.97) 55%, rgba(10, 10, 10, 0.82) 100%);
  border-radius: 1.25rem 1.25rem 0 0;
  width: min(100%, 28rem);
  margin: 0 auto;
  box-sizing: border-box;
}
.pf\:video-sheet .pf\:video-mode {
  width: min(100%, 18rem);
}
.pf\:video-sheet[hidden], .pf\:video-dock[hidden], .pf\:video-error[hidden], .pf\:video-burst[hidden] { display: none; }
.pf\:video-sheet h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.pf\:video-sheet p, .pf\:video-paypal { margin: 0; max-width: 26rem; color: rgba(243,244,246,0.82); font-size: 0.95rem; line-height: 1.45; }
.pf\:video-paypal a { color: #f59e0b; }
.pf\:video-people {
  width: min(100%, 24rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem;
  border-radius: 1rem;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.pf\:video-people-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pf\:video-people-title { margin: 0; font-size: 0.78rem; font-weight: 700; color: #f3f4f6; }
.pf\:video-people-search {
  width: 7.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(22,22,22,0.9);
  color: #f3f4f6;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
}
.pf\:video-people-list { display: flex; flex-direction: column; max-height: 9.5rem; overflow: auto; }
.pf\:video-people-empty { margin: 0.35rem 0.2rem; font-size: 0.8rem; color: rgba(243,244,246,0.7); }
.pf\:video-person {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.15rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.pf\:video-person:first-child { border-top: 0; }
.pf\:video-person-face {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a161c;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 700;
}
.pf\:video-person-face img { width: 100%; height: 100%; object-fit: cover; }
.pf\:video-person-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf\:video-person-name { font-size: 0.82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf\:video-person-meta { font-size: 0.68rem; color: rgba(243,244,246,0.55); }
.pf\:video-person-call { font-size: 0.72rem; font-weight: 700; color: #f59e0b; }
.pf\:video-paypal.is-hidden { display: none; }
.pf\:video-pulse { display: flex; gap: 0.4rem; height: 0.7rem; align-items: flex-end; }
.pf\:video-pulse span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #e11d48;
  animation: video-pulse 1s ease-in-out infinite;
}
.pf\:video-pulse span:nth-child(2) { animation-delay: 0.15s; }
.pf\:video-pulse span:nth-child(3) { animation-delay: 0.3s; }
.pf\:video-dock {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem calc(6.5rem + env(safe-area-inset-bottom, 0px));
}
.pf\:video-gifts-dock, .pf\:video-actions, .pf\:video-dialog-actions { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; }
.pf\:video-primary, .pf\:video-secondary, .pf\:video-gift, .pf\:video-icon-btn, .pf\:video-ghost {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}
.pf\:video-primary { background: #e11d48; min-width: 14rem; padding: 0.9rem 1.4rem; }
.pf\:video-secondary { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.16); padding: 0.75rem 1.2rem; }
.pf\:video-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.2); padding: 0.75rem 1rem; }
.pf\:video-icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,22,22,0.7);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.pf\:video-icon-btn svg { width: 1.15rem; height: 1.15rem; }
.pf\:video-gift {
  min-width: 4.2rem;
  padding: 0.35rem 0.55rem 0.4rem;
  background: rgba(22,22,22,0.72);
  border: 1px solid rgba(245,158,11,0.45);
  font-size: 0.85rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  border-radius: 1rem;
}
.pf\:gift-sticker {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  min-width: 3.4rem;
  min-height: 3.4rem;
  border-radius: 0.9rem;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  background-color: #2a161c;
  background-size: 280%;
  background-position: center;
  background-repeat: no-repeat;
}
.pf\:gift-sticker img {
  position: absolute;
  left: -90%;
  top: -90%;
  width: 280%;
  height: 280%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.pf\:gift-sticker.is-burst {
  width: 9.5rem;
  height: 9.5rem;
  min-width: 9.5rem;
  min-height: 9.5rem;
  border-radius: 1.6rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
}
.pf\:video-audio { position: relative; }
.pf\:video-audio-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  min-width: 9.5rem;
  max-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  background: rgba(16, 16, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 6;
}
.pf\:video-audio-menu[hidden] { display: none; }
.pf\:video-audio-choice {
  border: 0;
  background: transparent;
  color: #f3f4f6;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.pf\:video-audio-choice.is-on { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.pf\:video-tool {
  border: 0;
  background: transparent;
  color: #f3f4f6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 3.2rem;
}
.pf\:video-tool-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.14);
}
.pf\:video-tool-icon svg { width: 1.1rem; height: 1.1rem; }
.pf\:video-tool.is-off .pf\:video-tool-icon,
.pf\:video-tool.is-end .pf\:video-tool-icon { background: #e11d48; border-color: transparent; }
.pf\:video-sheet[hidden],
.pf\:video-dock[hidden],
.pf\:video-error[hidden],
.pf\:video-burst[hidden] { display: none; }
.pf\:video-error {
  left: 50%;
  top: calc(4.4rem + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  background: rgba(185,28,28,0.92);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  max-width: 90vw;
}
.pf\:video-error-link { color: #fde047; font-weight: 800; text-decoration: underline; pointer-events: auto; }
.pf\:video-error:has(.pf\:video-error-link) { pointer-events: auto; }
.pf\:video-gift.is-stage { box-shadow: inset 0 0 0 1.5px rgba(253, 224, 71, 0.85); }
.pf\:video-gifts {
  left: 0.85rem;
  right: 5.5rem;
  bottom: calc(15.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}
.pf\:video-gift-toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(10,10,10,0.78);
  border: 1px solid rgba(245,158,11,0.65);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  font-weight: 700;
}
.pf\:video-gift-toast.is-small { animation: video-gift-hold 7.5s ease forwards; }
.pf\:video-gift-toast.is-medium { animation: video-gift-hold 9s ease forwards; }
.pf\:video-gift-toast.is-large {
  animation: video-gift-hold 12s ease forwards;
  background: rgba(245,158,11,0.94);
  color: #111;
  border-color: transparent;
}
.pf\:video-burst {
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pf\:video-burst[hidden] { display: none; }
.pf\:video-burst.is-large { animation: video-burst 4.2s ease forwards; }
.pf\:video-burst.is-medium, .pf\:video-burst.is-small { animation: video-burst 3.2s ease forwards; }
.pf\:video-effects {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: block;
  max-height: min(72vh, 34rem);
  overflow: auto;
  padding: 0.9rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10,10,10,0.94);
  border-radius: 1.25rem 1.25rem 0 0;
  color: #f3f4f6;
}
.pf\:video-effects[hidden] { display: none; }
/* Phones: the effects sheet keeps a lower band; your picture sits above it (video_call_setup.css). */
@media (max-width: 63.99rem) {
  .pf\:video-effects { height: min(46dvh, 26rem); max-height: none; background: rgba(12,12,12,0.9); }
}
.pf\:video-effects-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pf\:video-effects-bar h2 { margin: 0; font-size: 1rem; }
.pf\:video-dialog {
  border: 0;
  border-radius: 16px;
  padding: 1rem;
  max-width: 24rem;
  width: calc(100% - 2rem);
  background: #161616;
  color: #f3f4f6;
}
.pf\:video-dialog::backdrop { background: rgba(0,0,0,0.55); }
.pf\:video-stage.is-locked .pf\:video-remote { visibility: hidden; }
.pf\:video-dock .pf\:video-gifts-dock {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline: 0.25rem;
  mask-image: linear-gradient(to right, transparent 0, #000 0.75rem, #000 calc(100% - 0.75rem), transparent 100%);
}
.pf\:video-dock .pf\:video-gifts-dock::-webkit-scrollbar { display: none; }
.pf\:video-dock .pf\:video-gifts-dock .pf\:video-gift { flex: 0 0 auto; scroll-snap-align: start; }

/* In a call: one compact row of icon controls, a tap hides them, and either picture can be the big one. */
.pf\:video-icon-off { display: none; }
.pf\:video-tool.is-off .pf\:video-icon-on { display: none; }
.pf\:video-tool.is-off .pf\:video-icon-off { display: block; }
.pf\:video-label-off { display: none; }
.pf\:video-tool.is-off .pf\:video-label-on { display: none; }
.pf\:video-tool.is-off .pf\:video-label-off { display: inline; }
.pf\:video-hangup { transform: rotate(135deg); }
.pf\:video-stage.is-live .pf\:video-dock {
  gap: 0.6rem;
  padding: 0.5rem 0.75rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.pf\:video-stage.is-live .pf\:video-actions { flex-wrap: nowrap; gap: 0.5rem; }
.pf\:video-stage.is-live .pf\:video-tool { min-width: 0; gap: 0; font-size: 0; }
.pf\:video-stage.is-live .pf\:video-tool-icon { width: 2.85rem; height: 2.85rem; }
.pf\:video-stage.is-live .pf\:video-tool-icon svg { width: 1.25rem; height: 1.25rem; }
.pf\:video-stage.is-live .pf\:video-gift { min-width: 3.4rem; padding: 0.25rem 0.4rem 0.3rem; font-size: 0.72rem; }
.pf\:video-stage.is-live .pf\:gift-sticker { width: 2.4rem; height: 2.4rem; min-width: 2.4rem; min-height: 2.4rem; border-radius: 0.7rem; }
.pf\:video-stage.is-live .pf\:video-gifts { bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px)); }
.pf\:video-stage.is-live .pf\:video-lock-chip { display: none; }
.pf\:video-stage.is-live .pf\:video-coins {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 4.25rem;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}
.pf\:video-stage.is-live .pf\:video-earned,
.pf\:video-stage.is-live .pf\:video-balance { padding: 0.2rem 0.55rem; font-size: 0.72rem; }
.pf\:video-stage.is-live .pf\:video-lock-tip { position: absolute; top: 100%; left: 0; margin-top: 0.35rem; text-align: left; }
.pf\:video-top, .pf\:video-dock, .pf\:video-shade { transition: opacity 0.25s ease, transform 0.25s ease; }
.pf\:video-stage.is-chrome-hidden .pf\:video-top { opacity: 0; transform: translateY(-0.5rem); pointer-events: none; }
.pf\:video-stage.is-chrome-hidden .pf\:video-top * { pointer-events: none; }
.pf\:video-stage.is-chrome-hidden .pf\:video-dock { opacity: 0; transform: translateY(0.75rem); pointer-events: none; }
.pf\:video-stage.is-chrome-hidden .pf\:video-dock * { pointer-events: none; }
.pf\:video-stage.is-chrome-hidden .pf\:video-shade { opacity: 0.35; }
.pf\:video-stage.is-chrome-hidden .pf\:video-gifts { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.pf\:video-stage.is-live .pf\:video-canvas.is-preview,
.pf\:video-stage.is-live .pf\:video-local:not(.is-hidden-source) { pointer-events: auto; cursor: pointer; }
.pf\:video-stage.is-live.is-chrome-hidden .pf\:video-canvas.is-preview,
.pf\:video-stage.is-live.is-chrome-hidden .pf\:video-local:not(.is-hidden-source) { top: calc(1rem + env(safe-area-inset-top, 0px)); }
.pf\:video-stage.is-live.is-swapped .pf\:video-canvas.is-preview,
.pf\:video-stage.is-live.is-swapped .pf\:video-local:not(.is-hidden-source) {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  cursor: default;
}
.pf\:video-stage.is-live.is-swapped .pf\:video-remote {
  inset: auto;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 7.25rem;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 4;
  cursor: pointer;
}
.pf\:video-stage.is-live.is-swapped.is-chrome-hidden .pf\:video-remote { top: calc(1rem + env(safe-area-inset-top, 0px)); }
.pf\:video-stage.is-live .pf\:video-canvas.is-preview,
.pf\:video-stage.is-live .pf\:video-local,
.pf\:video-stage.is-live .pf\:video-remote { transition: top 0.25s ease; }
.pf\:video-lock-gifts { max-height: 16rem; overflow-y: auto; }
.pf\:video-ring-ask { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.pf\:video-ring-gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.5rem; }
.pf\:video-ring-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.pf\:video-ring-gift:hover { border-color: #e11d48; }
.pf\:video-ring-gift img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.pf\:video-ring-gift small { color: #f59e0b; font-weight: 700; }
.pf\:video-paywall {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(22rem, calc(100% - 2rem));
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(10,10,10,0.82);
  color: #f3f4f6;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}
.pf\:video-paywall h2 { margin: 0; font-size: 1.1rem; }
.pf\:video-paywall p { margin: 0; color: #d1d5db; }
.pf\:video-lock-hint { margin: 0.25rem 0 0.75rem; color: #9ca3af; font-size: 0.9rem; }
.pf\:video-lock-gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.75rem; }
.pf\:video-lock-gift {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  font-size: 0.85rem;
}
.pf\:video-lock-gift:has(input:checked) { border-color: #e11d48; background: rgba(225,29,72,0.14); }
.pf\:video-lock-gift input { position: absolute; opacity: 0; pointer-events: none; }
.pf\:video-lock-gift .pf\:gift-sticker { width: 2rem; height: 2rem; }
.pf\:video-ring {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(24rem, calc(100% - 1.5rem));
  padding: 1rem;
  border-radius: 16px;
  background: #161616;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.pf\:video-ring-kicker { font-size: 0.75rem; color: #f59e0b; letter-spacing: 0.04em; text-transform: uppercase; }
.pf\:video-ring-name { font-size: 1.1rem; font-weight: 700; margin: 0.25rem 0 0.75rem; }
@keyframes video-gift-hold {
  0% { transform: translateY(14px) scale(0.96); opacity: 0; }
  8% { transform: none; opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}
@keyframes video-burst {
  0% { transform: scale(0.55); opacity: 0; }
  12% { transform: scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: scale(1.08); opacity: 0; }
}
.pf\:live-go-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  min-height: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  padding: 0 0.75rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 70%);
}
.pf\:live-go-start {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}
.pf\:live-go-obs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pf\:live-go-obs:hover {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.pf\:live-go-start > * {
  pointer-events: auto;
}
.pf\:live-go .pf\:live-rail {
  right: 0.5rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}
.pf\:live-go:has(.pf\:live-sheet.is-open) .pf\:live-go-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pf\:live-go-settings {
  max-height: min(78dvh, 40rem);
  display: flex;
  flex-direction: column;
}
.pf\:live-go-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.pf\:live-go-settings-footer {
  flex: 0 0 auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pf\:live-go-settings .pf\:label {
  color: #f3f4f6;
}
.pf\:live-go-settings .pf\:hint {
  color: rgba(255, 255, 255, 0.5);
}

/* Live discover — friends rail + cards */
.pf\:live-friends-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.15rem 0.15rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.pf\:live-friends-rail::-webkit-scrollbar { display: none; }
.pf\:live-friend-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.pf\:live-avatar-ring {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, #e11d48, #f59e0b, #e11d48);
  background-size: 200% 200%;
  animation: pf-live-ring 2.4s ease infinite;
}
.pf\:live-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--color-bg);
}
.dark .pf\:live-avatar-img {
  border-color: var(--color-bg-dark);
}
span.pf\:live-avatar-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf\:live-avatar-badge {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  transform: translateX(-50%);
  background: #e11d48;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 2px solid var(--color-bg);
}
.dark .pf\:live-avatar-badge {
  border-color: var(--color-bg-dark);
}
.pf\:live-friend-name {
  font-size: 0.7rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
@keyframes pf-live-ring {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pf\:inbox-live-rail {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.dark .pf\:inbox-live-rail { border-color: var(--color-border-dark); }
.pf\:inbox-live-ring {
  position: relative;
  display: block;
  border-radius: 999px;
  padding: 2px;
  background: #e11d48;
  cursor: pointer;
}
.pf\:inbox-live-ring > img,
.pf\:inbox-live-ring > div {
  border: 2px solid var(--color-surface);
}
.dark .pf\:inbox-live-ring > img,
.dark .pf\:inbox-live-ring > div {
  border-color: var(--color-surface-dark);
}
.pf\:inbox-live-ring:focus-visible { outline: 2px solid #e11d48; outline-offset: 2px; }
.pf\:inbox-live-badge {
  position: absolute;
  left: 50%;
  bottom: -0.3rem;
  transform: translateX(-50%);
  background: #e11d48;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  border: 2px solid var(--color-surface);
}
.dark .pf\:inbox-live-badge { border-color: var(--color-surface-dark); }
.pf\:live-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
}
.pf\:live-card-media {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
}
.pf\:feed-live {
  width: min(100%, 22rem);
  margin-inline: auto;
}
.pf\:feed-live-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.pf\:live-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
.pf\:live-card:hover .pf\:live-card-bg,
.pf\:live-card:focus-visible .pf\:live-card-bg {
  transform: scale(1.06);
}
.pf\:live-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.2) 100%);
}
.pf\:live-card-live {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}
.pf\:live-card-friend {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pf\:live-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
}
.pf\:live-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf\:live-card-user {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  opacity: 0.85;
}
.pf\:live-share-msg {
  display: block;
  width: 11.5rem;
  max-width: 70vw;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.pf\:live-share-msg-media {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
}
.pf\:live-share-msg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
.pf\:live-share-msg:hover .pf\:live-share-msg-bg,
.pf\:live-share-msg:focus-visible .pf\:live-share-msg-bg {
  transform: scale(1.06);
}
.pf\:live-share-msg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 42%, rgba(0,0,0,0.28) 100%);
}
.pf\:live-share-msg-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55);
  animation: pf-live-share-pulse 1.6s ease-out infinite;
}
.pf\:live-share-msg-badge.is-ended,
.pf\:live-share-msg.is-ended .pf\:live-share-msg-badge {
  background: rgba(0, 0, 0, 0.65);
  animation: none;
  box-shadow: none;
}
.pf\:live-share-msg-meta {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.7rem;
}
.pf\:live-share-msg-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf\:live-share-msg-user {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  opacity: 0.88;
}
.pf\:live-share-msg-cta {
  margin: 0.45rem 0 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.pf\:live-share-msg.is-ended {
  filter: grayscale(0.35);
  opacity: 0.9;
}
@keyframes pf-live-share-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}
.pf\:live-profile-avatar {
  position: relative;
}
.pf\:live-profile-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #ef4444;
  pointer-events: none;
  animation: pf-live-ring 1.6s ease-out infinite;
}
.pf\:live-profile-badge {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%);
  z-index: 2;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 9999px;
  border: 2px solid var(--color-surface, #fff);
  text-decoration: none;
}
@keyframes pf-live-ring {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
.pf\:live-profile-sheet {
  z-index: 55;
  max-height: min(58dvh, 26rem);
  padding-top: 0.75rem;
}
.pf\:live-profile-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
}
.pf\:live-profile-loading {
  margin: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}
.pf\:live-profile-card {
  padding: 0.25rem 0.15rem 0.5rem;
}
.pf\:live-profile-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 1rem;
}
.pf\:live-profile-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.pf\:live-profile-avatar-lg {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.pf\:live-profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.pf\:live-profile-username {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.pf\:live-profile-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.pf\:live-profile-bio {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.pf\:live-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.pf\:live-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: #e11d48;
}
.pf\:live-profile-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pf\:live-profile-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}

/* Live gifting: catalog tray, quick gift, toasts, center-stage bursts, goal bar */
.pf\:live-gift-toast-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
.pf\:live-gift-toast.tier-medium { background: rgba(225, 29, 72, 0.45); }
.pf\:live-gift-toast.tier-large,
.pf\:live-gift-toast.tier-epic {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.75), rgba(168, 85, 247, 0.6));
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.45);
}
.pf\:live-gift-toast.is-combo .text-accent {
  display: inline-block;
  font-weight: 800;
  animation: pf-live-combo-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:live-gift-toast.is-alert { outline: 2px solid rgba(253, 224, 71, 0.7); }
.pf\:live-gift-toast.is-leaving {
  opacity: 0;
  transform: translate3d(-1.5rem, 0, 0);
}
@keyframes pf-live-gift-enter {
  0% { opacity: 0; transform: translate3d(-1.5rem, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pf-live-combo-pop {
  0% { transform: scale(1.8); }
  100% { transform: scale(1); }
}

.pf\:live-top-gifters {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.pf\:live-top-gifters:not(:has(*)) { display: none; }
.pf\:live-top-gifter {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  overflow: hidden;
  margin-left: -0.4rem;
  border: 2px solid #a16207;
  background: #111;
}
.pf\:live-top-gifter:first-child { margin-left: 0; }
.pf\:live-top-gifter.rank-1 { border-color: #fde047; z-index: 3; }
.pf\:live-top-gifter.rank-2 { border-color: #d1d5db; z-index: 2; }
.pf\:live-top-gifter.rank-3 { border-color: #d97706; z-index: 1; }
.pf\:live-top-gifter img,
.pf\:live-top-gifter-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 380px) {
  .pf\:live-top-gifter:nth-child(n + 3) { display: none; }
}

.pf\:live-goal {
  position: absolute;
  left: 0.75rem;
  top: calc(4rem + env(safe-area-inset-top, 0px));
  z-index: 21;
  width: min(15rem, calc(100vw - 5.5rem));
  padding: 0.45rem 0.6rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  display: none;
}
.pf\:live-goal.is-active { display: block; }
.pf\:live-room:has(.pf\:live-goal.is-active) .pf\:live-joins {
  top: calc(8.4rem + env(safe-area-inset-top, 0px));
}
.pf\:live-goal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
}
.pf\:live-goal-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-goal-dots { display: flex; gap: 0.2rem; flex-shrink: 0; }
.pf\:live-goal-dots i {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, width 0.3s;
}
.pf\:live-goal-dots i.is-on { width: 0.7rem; background: #fff; }
.pf\:live-goal-slides {
  position: relative;
  height: 1.9rem;
  overflow: hidden;
}
.pf\:live-goal-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s;
}
.pf\:live-goal-slide.is-current { transform: translateX(0); opacity: 1; }
.pf\:live-goal-slide.is-leaving { transform: translateX(-110%); opacity: 0; }
.pf\:live-goal-slide.no-motion { transition: none; }
.pf\:live-goal-icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}
.pf\:live-goal-icon img { width: 100%; height: 100%; object-fit: contain; }
.pf\:live-goal-check {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #fde047;
  color: #111;
  font-size: 0.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pf\:live-goal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.pf\:live-goal-line { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.7rem; }
.pf\:live-goal-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
.pf\:live-goal-count {
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.pf\:live-goal-slide.is-reached .pf\:live-goal-count { color: #fde047; font-weight: 700; }
.pf\:live-goal-track {
  display: block;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.pf\:live-goal-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e11d48, #fb7185, #fde047);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:live-goal-slide.is-reached .pf\:live-goal-fill { background: #fde047; }
.pf\:live-goal.is-reached { border-color: rgba(253, 224, 71, 0.6); }
.pf\:live-goal-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-goal-field-row {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: 0.5rem;
  align-items: center;
}
.pf\:live-goal-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.25rem 0 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.pf\:live-goal-text > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf\:live-goal-text[hidden] { display: none; }
.pf\:live-goal-pencil {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.75;
}
.pf\:live-goal-pencil:hover, .pf\:live-goal-pencil:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.pf\:live-goal-pencil svg { width: 1.1rem; height: 1.1rem; }
.pf\:live-goal-gift-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-align: left;
  font-size: 0.875rem;
  min-width: 0;
}
.pf\:live-goal-gift-button:hover, .pf\:live-goal-gift-button:focus-visible { border-color: rgba(251, 113, 133, 0.7); }
.pf\:live-goal-gift-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf\:live-goal-field-icon { width: 2rem; height: 2rem; flex-shrink: 0; display: grid; place-items: center; }
.pf\:live-goal-field-icon img { width: 100%; height: 100%; object-fit: contain; }
.pf\:live-goal-field-icon img[hidden], .pf\:live-goal-field-plus[hidden] { display: none; }
.pf\:live-goal-field-plus {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1.5px dashed currentColor;
  opacity: 0.6;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.pf\:live-goal-fields.is-light .pf\:live-goal-text,
.pf\:live-goal-fields.is-light .pf\:live-goal-gift-button {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.dark .pf\:live-goal-fields.is-light .pf\:live-goal-text,
.dark .pf\:live-goal-fields.is-light .pf\:live-goal-gift-button {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
  color: var(--color-text-dark);
}
/* The live's sheets and the go-live screen are dark whatever the site theme, so the goal's own fields follow them. */
.pf\:live-goal-fields:not(.is-light) { color-scheme: dark; }
.pf\:live-goal-fields:not(.is-light) :is(.pf\:input, .pf\:select),
.dark .pf\:live-goal-fields:not(.is-light) :is(.pf\:input, .pf\:select) {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pf\:live-goal-fields:not(.is-light) .pf\:input::placeholder { color: rgba(255, 255, 255, 0.35); }
.pf\:live-goal-fields:not(.is-light) .pf\:select option { background: #18181b; color: #fff; }
.pf\:live-goal-fields:not(.is-light) :is(.pf\:input, .pf\:select):focus { border-color: rgba(251, 113, 133, 0.7); }
.pf\:live-goal-fields.is-light .pf\:live-goal-pencil:hover,
.pf\:live-goal-fields.is-light .pf\:live-goal-pencil:focus-visible { background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.pf\:live-goal-fields.is-light .pf\:live-goal-gift-button:hover,
.pf\:live-goal-fields.is-light .pf\:live-goal-gift-button:focus-visible { border-color: var(--color-primary); }

.pf\:live-goal-picker {
  width: min(28rem, 100vw);
  max-width: 100vw;
  max-height: 80dvh;
  margin: auto auto 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #121214;
  color: #fff;
  overflow-y: auto;
}
.pf\:live-goal-picker::backdrop { background: rgba(0, 0, 0, 0.55); }
@media (min-width: 640px) {
  .pf\:live-goal-picker { margin: auto; border-radius: 1.25rem; }
}
.pf\:live-goal-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.pf\:live-goal-picker-head h3 { font-weight: 700; font-size: 1rem; }
.pf\:live-goal-picker-close { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); background: transparent; }
.pf\:live-goal-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 0.5rem;
}
.pf\:live-goal-picker-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid transparent;
  color: #fff;
}
.pf\:live-goal-picker-gift:hover, .pf\:live-goal-picker-gift:focus-visible { background: rgba(255, 255, 255, 0.1); }
.pf\:live-goal-picker-gift:disabled { opacity: 0.4; cursor: not-allowed; }
.pf\:live-goal-picker-gift:disabled .pf\:live-goal-picker-coins { display: none; }
.pf\:live-goal-picker-used { font-size: 0.7rem; font-weight: 600; }
.pf\:live-goal-picker-gift[aria-pressed="true"] { border-color: #fb7185; background: rgba(225, 29, 72, 0.18); }
.pf\:live-goal-picker-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; }
.pf\:live-goal-picker-icon img { width: 100%; height: 100%; object-fit: contain; }
.pf\:live-goal-picker-name { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.1; }
.pf\:live-goal-picker-coins { font-size: 0.7rem; color: rgba(255, 255, 255, 0.65); }
.pf\:live-goal-fields.is-light .pf\:live-goal-picker { background: var(--color-surface); color: var(--color-text); color-scheme: light; }
.pf\:live-goal-fields.is-light :is(.pf\:live-goal-picker-gift, .pf\:live-goal-picker-none) {
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
  color: var(--color-text);
}
.pf\:live-goal-fields.is-light .pf\:live-goal-picker-gift:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.pf\:live-goal-fields.is-light :is(.pf\:live-goal-picker-coins, .pf\:live-goal-picker-close) { color: var(--color-text-muted); }
.dark .pf\:live-goal-fields.is-light .pf\:live-goal-picker { background: var(--color-surface-dark); color: var(--color-text-dark); color-scheme: dark; }
.dark .pf\:live-goal-fields.is-light :is(.pf\:live-goal-picker-gift, .pf\:live-goal-picker-none) {
  background: color-mix(in srgb, var(--color-text-dark) 6%, transparent);
  color: var(--color-text-dark);
}
.dark .pf\:live-goal-fields.is-light :is(.pf\:live-goal-picker-coins, .pf\:live-goal-picker-close) { color: var(--color-text-muted-dark); }
.pf\:live-goal-picker-none {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}
@media (prefers-reduced-motion: reduce) {
  .pf\:live-goal-slide { transition: opacity 0.3s; transform: none; }
  .pf\:live-goal-slide.is-leaving { transform: none; }
}

.pf\:live-quick-gift {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pf\:live-quick-gift img { width: 1.6rem; height: 1.6rem; }
.pf\:live-quick-gift.is-sent img { animation: pf-live-gift-tap 0.3s ease-out; }
.pf\:live-quick-gift-combo {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
}
.pf\:live-quick-gift-combo.is-visible { opacity: 1; }
@keyframes pf-live-gift-tap {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-8deg); }
  100% { transform: scale(1); }
}

.pf\:live-gift-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pf\:live-gift-tray-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.pf\:live-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.pf\:live-gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  min-width: 0;
}
.pf\:live-gift-item:hover { border-color: rgba(225, 29, 72, 0.6); }
.pf\:live-gift-item.tier-epic { background: linear-gradient(160deg, rgba(225, 29, 72, 0.2), rgba(168, 85, 247, 0.2)); }
.pf\:live-gift-item.is-armed { border-color: #fde047; box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.35); }
.pf\:live-gift-item.is-wanted { border-color: #f472b6; box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.4); }
.pf\:live-gift-item.is-sent .pf\:live-gift-item-icon { animation: pf-live-gift-tap 0.3s ease-out; }
.pf\:live-gift-item-icon { width: 2.4rem; height: 2.4rem; }
.pf\:live-gift-item-name {
  font-size: 0.7rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-gift-item-price {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
}
.pf\:live-gift-tray-error {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #fda4af;
  text-align: center;
}
.pf\:live-gift-tray-foot {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pf\:live-gift-tray-foot > * { flex: 1; justify-content: center; }
.pf\:live-gift-tray-foot .is-highlighted { background: #e11d48; color: #fff; }

.pf\:live-gift-stage {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pf\:live-gift-stage-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  max-height: none;
}
.pf\:live-gift-stage-caption {
  position: absolute;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 80vw;
  animation: pf-live-stage-caption 0.3s ease-out;
}
.pf\:live-gift-stage-caption span { color: #fde047; font-weight: 800; }
@keyframes pf-live-stage-caption {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.pf\:live-gift-burst {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: pf-live-burst 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pf\:live-gift-burst.tier-medium { animation-duration: 1.8s; }
.pf\:live-gift-burst.tier-epic { animation-duration: 4.2s; }
.pf\:live-gift-burst-art {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 24px rgba(225, 29, 72, 0.65));
}
.pf\:live-gift-burst.tier-medium .pf\:live-gift-burst-art { width: 5rem; height: 5rem; }
.pf\:live-gift-burst.tier-epic .pf\:live-gift-burst-art {
  width: 12rem;
  height: 12rem;
  filter: drop-shadow(0 0 36px rgba(253, 224, 71, 0.7));
}
.pf\:live-gift-burst-art img { width: 100%; height: 100%; }
.pf\:live-gift-burst.tier-epic::before {
  content: "";
  position: absolute;
  inset: -40vmax;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.22), rgba(225, 29, 72, 0.12) 30%, transparent 60%);
  animation: pf-live-burst-glow 4.2s ease-out forwards;
  z-index: -1;
}
.pf\:live-gift-burst-caption {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  max-width: 80vw;
}
.pf\:live-gift-burst-caption span { color: #fde047; font-weight: 800; }
.pf\:live-gift-burst.is-publisher .pf\:live-gift-burst-caption { font-size: 1rem; background: rgba(225, 29, 72, 0.85); }
@keyframes pf-live-burst {
  0% { transform: scale(0.3) translateY(20px); opacity: 0; }
  15% { transform: scale(1.12); opacity: 1; }
  25% { transform: scale(1); }
  80% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0.95) translateY(-40px); opacity: 0; }
}
@keyframes pf-live-burst-glow {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}
.pf\:live-confetti {
  position: absolute;
  inset: 0;
}
.pf\:live-confetti span {
  position: absolute;
  top: -1rem;
  left: var(--x);
  width: 0.5rem;
  height: 0.8rem;
  border-radius: 2px;
  animation: pf-live-confetti 3.4s linear var(--delay) forwards;
}
.pf\:live-confetti-label {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  animation: pf-live-burst 3.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes pf-live-confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--drift), 105dvh) rotate(540deg); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .pf\:live-gift-burst,
  .pf\:live-gift-burst.tier-epic::before,
  .pf\:live-confetti-label { animation-duration: 0.01s; animation-delay: 2s; }
}

/* Live touch-ups and green-screen controls */
.pf\:live-touchups { margin-top: 0.25rem; }
.pf\:live-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf\:live-swatch {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--swatch, transparent);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.pf\:live-swatch.is-none {
  background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.7) 55%, transparent 55%);
}
.pf\:live-swatch[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px #e11d48;
}
.pf\:live-color-input {
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* Live gift messages, highlights and gifter badges */
.pf\:live-gift-toast { flex-wrap: wrap; }
.pf\:live-gift-toast-message {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-gift-message { display: block; margin-top: 0.75rem; }
.pf\:live-gift-message input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}
.pf\:live-highlight {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(32dvh + 10.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: none;
  max-width: 20rem;
  padding: 0.55rem 0.7rem 0.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.88), rgba(168, 85, 247, 0.82));
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.35);
  color: #fff;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: pf-live-gift-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:live-highlight.is-active { display: block; }
.pf\:live-highlight.is-leaving { opacity: 0; transform: translate3d(-1rem, 0, 0); }
.pf\:live-highlight-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.pf\:live-highlight-icon { width: 1.25rem; height: 1.25rem; }
.pf\:live-highlight-head .text-accent { color: #fde047; margin-left: auto; display: inline-flex; align-items: center; gap: 0.2rem; }
.pf\:live-highlight-close {
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 999px;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}
.pf\:live-highlight-body {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pf\:live-highlight-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: left;
  animation-name: pf-live-highlight-timer;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes pf-live-highlight-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.pf\:live-gifter-badge { margin-left: 0.2rem; font-size: 0.75rem; }
.pf\:live-join-toast.is-big-gifter {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.9), rgba(225, 29, 72, 0.85));
  color: #111;
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.45);
}
.pf\:live-join-toast.is-big-gifter .pf\:live-join-meta { color: #1f1f1f; font-weight: 700; }

/* Fine-tune (web twin of the app's Touch-up / Makeup / Shape strip). The slider sits well inside the screen edges
   so dragging it never starts the browser's or the phone's back swipe. */
.pf\:fine-tune { display: flex; flex-direction: column; gap: 0.5rem; }
.pf\:fine-tune[hidden] { display: none; }
.pf\:fine-tune-sections { display: flex; gap: 1rem; }
.pf\:fine-tune-section {
  font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.55); padding: 0.35rem 0; min-height: 2.25rem;
}
.pf\:fine-tune-section[aria-pressed="true"] { color: #fff; box-shadow: inset 0 -2px 0 #e11d48; }
.pf\:fine-tune-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.pf\:fine-tune-chips::-webkit-scrollbar { display: none; }
.pf\:fine-tune-chip {
  flex: none; font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.16);
  border-radius: 999px; padding: 0.45rem 0.85rem; min-height: 2.25rem;
}
.pf\:fine-tune-chip[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 0 0 2px #e11d48; }
.pf\:fine-tune-chip.is-on:not([aria-pressed="true"])::after {
  content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; margin-left: 0.35rem; vertical-align: middle;
  border-radius: 999px; background: #e11d48;
}
:is(.pf\:fine-tune-chip, .pf\:fine-tune-section, .pf\:live-filter-chip, .pf\:live-swatch, .pf\:live-tool, .pf\:live-bg-thumb) {
  -webkit-tap-highlight-color: transparent; transition: transform 0.08s ease;
}
:is(.pf\:fine-tune-chip, .pf\:live-filter-chip, .pf\:live-swatch, .pf\:live-tool, .pf\:live-bg-thumb):active { transform: scale(0.94); }

/* Effects sliders: a big thumb that is easy to catch with a thumb, themed, and a horizontal drag always moves the
   slider (vertical still scrolls the sheet). */
.pf\:effects input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2.25rem; margin: 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y; accent-color: #e11d48;
}
.pf\:effects input[type="range"]:focus { outline: none; }
.pf\:effects input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6); }
.pf\:effects input[type="range"]::-webkit-slider-runnable-track {
  height: 0.375rem; border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.25) var(--fill-lo, 0%), #e11d48 var(--fill-lo, 0%), #e11d48 var(--fill-hi, 0%), rgba(255, 255, 255, 0.25) var(--fill-hi, 0%));
}
.pf\:effects input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 1.625rem; height: 1.625rem; margin-top: -0.625rem;
  border: 3px solid #e11d48; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.pf\:effects input[type="range"]::-moz-range-track {
  height: 0.375rem; border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.25) var(--fill-lo, 0%), #e11d48 var(--fill-lo, 0%), #e11d48 var(--fill-hi, 0%), rgba(255, 255, 255, 0.25) var(--fill-hi, 0%));
}
.pf\:effects input[type="range"]::-moz-range-thumb {
  width: 1.25rem; height: 1.25rem; border: 3px solid #e11d48; border-radius: 999px; background: #fff;
}
.pf\:fine-tune-swatches { flex-wrap: nowrap; overflow-x: auto; padding: 0.15rem 0.1rem; }
.pf\:fine-tune-swatches .pf\:live-swatch { flex: none; width: 2.1rem; height: 2.1rem; }
.pf\:live-swatch.is-own { background: linear-gradient(135deg, #e8b898, #8c5a44); }
.pf\:fine-tune-slider { display: flex; align-items: center; gap: 0.75rem; padding: 0 1.5rem; touch-action: pan-y; }
.pf\:fine-tune-slider input[type="range"] { flex: 1; min-height: 2.25rem; }
.pf\:fine-tune-value { width: 3rem; text-align: right; font-weight: 700; font-size: 0.85rem; }

/* Phones: while effects are open the sheet takes a fixed lower band and the preview moves into the space above it
   (cropped to the face), so the look stays visible while it is tuned. No backdrop blur over the video there:
   it hid the preview and cost a full-screen blur every frame. */
@media (max-width: 63.99rem) {
  .pf\:live-go.is-effects-tab .pf\:live-go-settings,
  .pf\:live-sheet.pf\:live-sheet-effects {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    height: min(46dvh, 26rem);
    max-height: none;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .pf\:live-go.is-effects-tab .pf\:live-sheet-backdrop { background: transparent; }
  /* The picture's window above the sheet: live_setup.css. */
}

/* Desktop: the effects sheet docks to the right as a side panel; the 9:16 video stays centred and visible. */
@media (min-width: 64rem) {
  .pf\:live-sheet.pf\:live-sheet-effects {
    left: auto; right: 1rem; top: 1rem; bottom: 1rem; width: 24rem; max-height: none; padding-top: 1.1rem;
    border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate3d(110%, 0, 0);
  }
  .pf\:live-sheet.pf\:live-sheet-effects.is-open { transform: translate3d(0, 0, 0); }
  .pf\:live-sheet:is(.pf\:live-sheet-effects, .pf\:live-go-settings) > .pf\:live-sheet-grip { display: none; }
  /* While effects are open the picture moves into the space left of the panel, whole and centred, so every change
     shows on the preview with nothing over it. */
  .pf\:live-room .pf\:live-video { transition: width 0.42s cubic-bezier(0.32, 0.72, 0, 1); }
  .pf\:live-room:not(.has-hold-preview):has(.pf\:live-sheet-effects.is-open) .pf\:live-video {
    right: auto; width: calc(100% - 26rem); object-fit: contain !important;
  }
}

/* The Effects sheet's own camera preview on a live (live_publisher#startEffectsHold): viewers see the hold picture,
   the host sees the real look here, above the controls. On a phone the sheet grows to fit it. */
.pf\:effects-preview { display: none; }
.pf\:live-room.is-effects-hold.has-hold-preview .pf\:effects-preview {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; margin: 0 0 0.9rem;
}
.pf\:effects-preview video {
  height: min(36dvh, 22rem); aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 1.1rem; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.pf\:effects-preview-note { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); text-align: center; }
.pf\:live-room.has-hold-preview .pf\:live-sheet.pf\:live-sheet-effects {
  display: flex; flex-direction: column;
}
.pf\:live-room.has-hold-preview .pf\:live-sheet-effects > * { order: 2; flex-shrink: 0; }
.pf\:live-room.has-hold-preview .pf\:live-sheet-effects > .pf\:live-sheet-grip { order: 0; }
.pf\:live-room.has-hold-preview .pf\:live-sheet-effects > div:has(> .pf\:live-sheet-close) { order: 0; }
.pf\:live-room.has-hold-preview .pf\:live-sheet-effects > .pf\:effects-preview { order: 1; }
@media (max-width: 63.99rem) {
  .pf\:live-room.has-hold-preview .pf\:live-sheet.pf\:live-sheet-effects { height: auto; max-height: calc(100dvh - 3rem); }
}


/* Live viewer: shown only while the browser blocks sound before a tap (live_viewer_controller#waitForGesture). */
.pf\:live-sound-hint {
  position: absolute;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pf\:live-sound-hint[hidden] {
  display: none;
}

/* Host top bar: End as a word, like TikTok, not a stop square. */
.pf\:live-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 9999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.pf\:live-end-btn:active { transform: scale(0.96); }

/* Studio dashboard (creator/dashboard/index): the creator and the three actions on one row on a desktop; on a
   phone the actions sit right under the name, Go Live across the full width and the others side by side. */
.pf\:studio-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pf\:studio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
/* Go Live takes the top row; then pairs; the last button takes a row of its own when it would sit alone. */
.pf\:studio-actions > .is-wide,
.pf\:studio-actions:has(> .is-wide) > :last-child:nth-child(even),
.pf\:studio-actions:not(:has(> .is-wide)) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.pf\:studio-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.pf\:studio-alpha {
  padding: 0.05rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .pf\:studio-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .pf\:studio-actions { display: flex; flex-shrink: 0; }
}
.pf\:studio-action.text-white,
.pf\:studio-action.text-white:hover { color: #fff; }

/* A conversation over the live (shared/_live_dm_sheet, live_dm_sheet_controller.js) */
.pf\:live-dm-toasts {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
}
@media (max-width: 639px) {
  .pf\:live-dm-toasts {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }
}
.pf\:live-dm-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--live-dm-bottom, 0px);
  z-index: 58;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  height: var(--live-dm-h, 50dvh);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  background: var(--color-surface, #fff);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  transform: translate3d(0, 105%, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.36s;
}
.pf\:live-dm-sheet.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}
.pf\:live-dm-sheet.is-dragging {
  transition: none;
}
.pf\:live-dm-sheet.is-dragging .pf\:live-dm-sheet-frame {
  pointer-events: none;
}
.pf\:live-dm-sheet-handle {
  position: relative;
  flex: none;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--color-surface, #fff);
}
html.dark .pf\:live-dm-sheet-handle,
html.dark .pf\:live-dm-sheet {
  background: var(--color-surface-dark, #161616);
}
.pf\:live-dm-sheet.is-dragging .pf\:live-dm-sheet-handle {
  cursor: grabbing;
}
.pf\:live-dm-sheet-grip {
  width: 2.5rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
}
html.dark .pf\:live-dm-sheet-grip {
  background: rgba(255, 255, 255, 0.35);
}
.pf\:live-dm-sheet-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
html.dark .pf\:live-dm-sheet-close {
  color: rgba(255, 255, 255, 0.6);
}
.pf\:live-dm-sheet-body {
  flex: 1;
  min-height: 0;
}
.pf\:live-dm-sheet-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
