/* Live pages are black edge to edge. Safari (iOS 26 tints its status bar and toolbar from the page background,
   not theme-color) showed the site's light background above the clock and as a white strip under the room. */
html:has(.pf\:live-room),
html:has(.pf\:live-room) body {
  background: #000 !important;
}
html:has(.pf\:live-room) .ambient-bg {
  display: none;
}

/* Live room additions: the omb.live/@username footer and the viewer's clear display. Unlayered like the rest
   of the live styles. */

/* omb.live/@username on the picture, only in clear display (viewers), so screenshots and screen recordings of the
   bare picture say where the live is. Hidden otherwise: under the composer it only took room. */
.pf\:live-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  display: none;
  text-align: center;
  font: 600 11px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
}
.pf\:live-watermark-brand { color: rgba(255, 255, 255, 0.9); font-weight: 800; }

/* Clear display (viewers): only the picture, the creator chip and the omb.live/@username footer stay. */
.pf\:live-room > :is(.pf\:live-chat-stack, .pf\:live-gifts, .pf\:live-joins, .pf\:live-rail, .pf\:live-compose-bar, .pf\:live-goal, .pf\:live-highlight, .pf\:live-chat-peek, .pf\:live-gift-stage, .pf\:live-toolbar) {
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}
.pf\:live-room.is-clear > :is(.pf\:live-chat-stack, .pf\:live-gifts, .pf\:live-joins, .pf\:live-rail, .pf\:live-compose-bar, .pf\:live-goal, .pf\:live-highlight, .pf\:live-chat-peek, .pf\:live-gift-stage, .pf\:live-toolbar) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.pf\:live-room.is-clear .pf\:live-watermark { display: block; bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); }

.pf\:live-clear-restore {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 32;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 3.5rem;
  margin-top: -1.75rem;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pf\:live-room.is-clear .pf\:live-clear-restore { display: inline-flex; }

/* Pinned comment: the first item of the comment list, held at its top (sticky) while comments scroll under it.
   The list's top fade is dropped while a pin is up, or the pin itself would fade out. */
.pf\:live-pinned {
  position: sticky;
  top: 0;
  z-index: 2;
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.85rem;
  background: #1a140c;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fff;
  -webkit-user-select: text;
  user-select: text;
}
.pf\:live-pinned.is-active { display: flex; }
.pf\:live-chat-stack:has(> .pf\:live-pinned.is-active) {
  mask-image: none;
  -webkit-mask-image: none;
}
/* Wide screens: the comment column of a portrait live stays a column (it ran under the whole width before). */
@media (min-width: 1024px) {
  .pf\:live-room:not([data-live-orientation="landscape"]) > .pf\:live-chat-stack { max-width: 30rem; }
}
.pf\:live-pinned-icon { flex: none; width: 1rem; height: 1rem; color: #f59e0b; margin-top: 0.1rem; }
.pf\:live-pinned-icon svg { width: 100%; height: 100%; }
.pf\:live-pinned-body { flex: 1; }
.pf\:live-pinned-name { margin: 0; font-size: 0.72rem; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.pf\:live-pinned-text {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf\:live-pinned-unpin {
  display: none;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pf\:live-pinned-unpin svg { width: 0.85rem; height: 0.85rem; }
/* Only the creator and moderators see the unpin button. */
.pf\:live-room[data-live-role="publisher"] .pf\:live-pinned-unpin,
.pf\:live-room:has(#live_moderator_tools.is-moderator) .pf\:live-pinned-unpin { display: inline-flex; }

/* The creator's own comment can only be pinned. */
.pf\:live-comment-context[data-own="true"] .pf\:live-comment-context-actions > :not([data-pin]) { display: none; }

.pf\:live-rail-btn[hidden], .pf\:live-chat-jump[hidden] { display: none; }

/* Double-tap hearts. */
.pf\:live-heart {
  position: absolute;
  z-index: 33;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  color: #e11d48;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  animation: live-heart-rise 1.35s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.pf\:live-heart svg { width: 100%; height: 100%; }
@keyframes live-heart-rise {
  0% { transform: translate(0, 0) scale(calc(var(--heart-scale, 1) * 0.4)); opacity: 0; }
  15% { transform: translate(0, -0.6rem) scale(var(--heart-scale, 1)); opacity: 1; }
  100% { transform: translate(var(--heart-drift, 0), -9rem) scale(calc(var(--heart-scale, 1) * 0.8)); opacity: 0; }
}

/* "N new comments" while scrolled up in the chat. */
.pf\:live-chat-jump {
  position: absolute;
  left: 0.75rem;
  bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 700 0.75rem/1 Inter, system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.pf\:live-room.is-clear > .pf\:live-chat-jump { display: none; }

/* Swiping to the next live. */
.pf\:live-room.is-leaving-up > .pf\:live-video { transition: transform 0.3s ease, opacity 0.3s ease; transform: translateY(-12%); opacity: 0; }
.pf\:live-room.is-leaving-down > .pf\:live-video { transition: transform 0.3s ease, opacity 0.3s ease; transform: translateY(12%); opacity: 0; }
.pf\:live-room.is-nudged > .pf\:live-video { animation: live-nudge 0.35s ease; }
.pf\:live-next-still { position: absolute; inset: 0; z-index: 1; background: #000 center / cover no-repeat; pointer-events: none; transition: transform 0.3s ease; }
.pf\:live-next-still.from-below { transform: translateY(100%); }
.pf\:live-next-still.from-above { transform: translateY(-100%); }
.pf\:live-next-still.is-in { transform: translateY(0); }
@keyframes live-nudge { 0%, 100% { transform: none; } 40% { transform: translateY(-3%); } }

/* Creator: live timer in the pill, and the stats panel slid in from the right. */
.pf\:live-timer { margin-left: 0.3rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.pf\:live-stats {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  width: min(20rem, 82vw);
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translate3d(105%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.pf\:live-room.is-stats-open .pf\:live-stats { transform: translate3d(0, 0, 0); }
.pf\:live-stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.pf\:live-stats-head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.pf\:live-stats-close {
  width: 2rem; height: 2rem; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pf\:live-stats-close svg { width: 0.9rem; height: 0.9rem; }
.pf\:live-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.pf\:live-stats-cell { padding: 0.6rem 0.7rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.06); }
.pf\:live-stats-cell dt { margin: 0; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); }
.pf\:live-stats-cell dd { margin: 0.15rem 0 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf\:live-stats-sub { margin: 1rem 0 0.4rem; font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.pf\:live-stats-gifters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.pf\:live-stats-gifter { display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.4rem; font-size: 0.85rem; }
.pf\:live-stats-gifter > :first-child { color: #f59e0b; font-weight: 800; }
.pf\:live-stats-gifter > :last-child { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); }
.pf\:live-stats-hint { margin: 1rem 0 0; font-size: 0.7rem; color: rgba(255, 255, 255, 0.45); text-align: center; }

/* Go Live: 3, 2, 1 before the live starts (tap to cancel). */
.pf\:live-countdown {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 900 7rem/1 Inter, system-ui, sans-serif;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.pf\:live-countdown.is-active { display: flex; }
.pf\:live-countdown span { animation: live-count 1s ease forwards; }
@keyframes live-count { 0% { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(0.85); opacity: 0; } }
.pf\:live-countdown small { position: absolute; bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.pf\:live-stats-sub:has(+ .pf\:live-stats-gifters[hidden]) { display: none; }

/* Viewer bottom bar: comment field, then gift, share and like (thumb reach, TikTok-style). On a phone the
   buttons step aside while typing and one-tap reactions sit above the field; send shows once there is text. */
.pf\:live-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.pf\:live-bar-btn {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pf\:live-bar-btn:active { transform: scale(0.92); }
.pf\:live-bar-btn svg { width: 1.25rem; height: 1.25rem; }
.pf\:live-bar-btn.is-gift { color: #fcd34d; }
@media (hover: hover) {
  .pf\:live-bar-btn:hover { background: rgba(0, 0, 0, 0.62); }
}
.pf\:live-compose-bar.has-actions .pf\:live-compose { gap: 0.45rem; }
.pf\:live-compose-bar.has-actions .pf\:live-compose:has(.pf\:live-input:placeholder-shown) .pf\:live-send { display: none; }

.pf\:live-reactions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(100% - 0.25rem);
  display: none;
  justify-content: space-between;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pf\:live-reaction {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.pf\:live-reaction:active { transform: scale(1.25); }
.pf\:live-compose-bar.has-actions:has(.pf\:live-input:focus) .pf\:live-reactions { display: flex; }
@media (pointer: coarse) {
  .pf\:live-compose-bar.has-actions:has(.pf\:live-input:focus) :is(.pf\:live-bar-actions, .pf\:live-quick-gift, .pf\:live-bar-btn.is-guests) { display: none; }
}
@media (min-width: 640px) {
  .pf\:live-reactions { left: 50%; right: auto; width: 22rem; translate: -50% 0; }
}

/* Panels parked off screen (live stats, sheets) make an overflow: hidden room scrollable from code: a focus or
   a scrollIntoView then shifts the whole room sideways. clip can't be scrolled at all. */
@supports (overflow: clip) {
  .pf\:live-room { overflow: clip; }
}

/* Guests on a live (live_streams/_guests, live_guests_controller.js). The wrapper takes no space of its own. */
.pf\:guests { display: contents; }
.pf\:guests [hidden] { display: none !important; }
.pf\:guest-seats { display: contents; }
/* With guests on air the rail sits left of their tiles (the offset is set by live_guests_controller). */
.pf\:live-room.has-guests[data-live-role="publisher"] > .pf\:live-rail { right: var(--guest-rail-right, 0.75rem); }
.pf\:guest-seat {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.pf\:guest-seat > * { pointer-events: auto; }
/* A guest on a phone live sees the panel live; their own camera is drawn in their seat (live_guests_controller). */
.pf\:guest-seat > .pf\:guest-seat-self { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: #26262b; }
/* The name is already drawn in the picture; this row only adds the coins sent to the seat. */
.pf\:guest-seat-foot { position: absolute; left: 0; right: 0; top: 100%; margin-top: 0.25rem; display: flex; gap: 0.35rem; align-items: center; pointer-events: none; }
/* The name is drawn in the picture; this covers the tile as a tap target for the guest's profile card. */
.pf\:guest-seat-name {
  appearance: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.pf\:guest-seat-name:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf\:guest-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.pf\:guest-btn.is-primary { background: #e11d48; }
.pf\:guest-btn.is-danger { background: rgba(185, 28, 28, 0.85); }
.pf\:guest-btn:disabled { opacity: 0.5; cursor: default; }
.pf\:guest-btn[aria-pressed="true"] { background: #fff; color: #111; }
@keyframes pf-guest-pulse { 50% { opacity: 0.35; } }
.pf\:live-rail-badged { position: relative; }
.pf\:live-rail-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.pf\:live-rail-badge[hidden] { display: none; }
.pf\:live-rail-badge.is-pop { animation: pf-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pf-badge-pop { 0% { transform: scale(0.3); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pf\:guest-link {
  appearance: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.6rem 0.2rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.pf\:guest-invite {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  z-index: 60;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.pf\:guest-bar-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #e11d48; }
.pf\:guest-note {
  pointer-events: none;
  position: absolute;
  left: 50%;
  /* Up top, clear of the rail and the composer. */
  top: calc(10.5rem + env(safe-area-inset-top, 0px));
  z-index: 70;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}
.pf\:guest-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; }
.pf\:guest-name { font-size: 0.85rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf\:guest-actions { margin-left: auto; display: flex; gap: 0.35rem; flex-shrink: 0; }
.pf\:guest-avatar { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.pf\:guest-avatar.is-initial { display: flex; align-items: center; justify-content: center; background: #e11d48; color: #fff; font-size: 0.8rem; font-weight: 700; }
.pf\:guest-heading { margin-top: 0.6rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.pf\:guest-fine { margin-top: 0.5rem; font-size: 0.68rem; line-height: 1.4; color: rgba(255, 255, 255, 0.6); }
.pf\:guest-select {
  margin-left: auto;
  appearance: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  padding: 0.3rem 0.5rem;
  background: #161616;
  color: #f3f4f6;
  font-size: 0.8rem;
}
.pf\:guest-recipient { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pf\:guest-recipient:empty { display: none; }
.pf\:guest-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: transparent;
  color: #f3f4f6;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.pf\:guest-chip.is-active { background: #e11d48; border-color: #e11d48; color: #fff; }
/* Clear display keeps the picture clean: only the on-air bar stays for the guest. */
.pf\:live-room.is-clear .pf\:guest-seat { display: none; }
/* A taken box: a faint light edge with a dark halo, so the box reads on a black or a bright picture alike. */
.pf\:guest-seat.pf\:guest-seat-taken {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.pf\:guest-seat.is-host { pointer-events: none; }
/* The name on the box, bottom left; a long name ends in an ellipsis. */
.pf\:guest-seat-tag {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 1;
  max-width: calc(100% - 3rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
.pf\:guest-seat-tag.is-muted { display: inline-flex; align-items: center; gap: 0.25rem; }
.pf\:guest-seat-tag.is-muted > svg { flex: none; width: 0.8rem; height: 0.8rem; color: #fb7185; }
.pf\:guest-seat-tag-name { overflow: hidden; text-overflow: ellipsis; }
/* An empty seat of a fixed layout: a glass tile with a "+" (live_guests_controller#openSeats). */
.pf\:guest-seat.pf\:guest-seat-open {
  pointer-events: auto;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pf\:guest-seat.pf\:guest-seat-open:hover { background: rgba(255, 255, 255, 0.12); }
.pf\:guest-seat.pf\:guest-seat-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf\:guest-seat-open.is-asked { border-style: solid; border-color: #fb3d6b; }
.pf\:guest-seat-plus {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
}
.pf\:guest-seat-label { font-size: 0.75rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

/* The guest's join preview (live_guest_camera_controller.js). */
.pf\:guest-preview {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  z-index: 65;
  max-width: 24rem;
  max-height: calc(100% - 6rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  overflow-y: auto;
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(16, 16, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.pf\:guest-preview[hidden] { display: none; }
.pf\:guest-preview-head { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.75rem; }
.pf\:guest-preview-head .pf\:guest-bar-dot { margin-top: 0.35rem; flex-shrink: 0; }
.pf\:guest-preview-view {
  position: relative;
  width: min(100%, 15rem);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0a0a0a;
}
.pf\:guest-preview-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf\:guest-preview-view video[hidden] { display: none; }
.pf\:guest-preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.pf\:guest-preview-placeholder[hidden] { display: none; }
.pf\:guest-preview-avatar { width: 5rem; height: 5rem; border-radius: 999px; object-fit: cover; }
.pf\:guest-preview-avatar.is-initial { display: flex; align-items: center; justify-content: center; background: #e11d48; color: #fff; font-size: 2rem; font-weight: 700; }
.pf\:guest-preview-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.75rem; }
.pf\:guest-preview-actions .pf\:guest-btn { padding: 0.5rem 0.95rem; font-size: 0.8rem; }
.pf\:guest-preview-effects { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pf\:guest-preview-effects[hidden] { display: none; }
/* Keep "Go on camera" in reach while the effects are open. */
.pf\:guest-preview > .pf\:guest-preview-actions:last-child {
  position: sticky;
  bottom: -0.9rem;
  margin: 0.75rem -0.9rem -0.9rem;
  padding: 0.7rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 16, 16, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Icon toggles: aria-pressed="true" means off (muted, camera off) and shows the crossed-out icon. */
.pf\:icon-off { display: none; }
[aria-pressed="true"] > .pf\:icon-on { display: none; }
[aria-pressed="true"] > .pf\:icon-off { display: inline-block; }
/* The preview's camera and mic buttons are the other way round: pressed means on (white), off is a slashed icon. */
.pf\:guest-btn.is-media-toggle > .pf\:icon-on { display: none; }
.pf\:guest-btn.is-media-toggle > .pf\:icon-off { display: inline-block; }
.pf\:guest-btn.is-media-toggle[aria-pressed="true"] > .pf\:icon-on { display: inline-block; }
.pf\:guest-btn.is-media-toggle[aria-pressed="true"] > .pf\:icon-off { display: none; }
.pf\:guest-btn.is-media-toggle { background: rgba(255, 255, 255, 0.14); }
.pf\:guest-btn.is-media-toggle[aria-pressed="true"] { background: #fff; color: #111; }
.pf\:guest-btn.is-media-toggle:disabled { opacity: 0.45; cursor: default; }
.pf\:guest-btn.is-round { width: 2.75rem; height: 2.75rem; padding: 0; justify-content: center; }
.pf\:guest-btn.is-round svg { width: 1.25rem; height: 1.25rem; }
.pf\:guest-btn.is-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.pf\:guest-btn.is-icon svg { width: 1rem; height: 1rem; }
.pf\:guest-btn[hidden] { display: none; }

/* Controls on a guest's tile: small round icons, top right for the host, a gift button bottom right for viewers. */
.pf\:guest-seat-tools { position: absolute; z-index: 1; top: 0.35rem; right: 0.35rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pf\:guest-tile-btn {
  appearance: none;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pf\:guest-tile-btn svg { width: 1rem; height: 1rem; }
.pf\:guest-tile-btn[aria-pressed="true"] { background: #fff; color: #e11d48; }
.pf\:guest-tile-btn.is-danger { background: rgba(220, 38, 38, 0.92); }
.pf\:guest-tile-btn.is-gift { background: #e11d48; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.45); }
.pf\:guest-tile-btn:active { transform: scale(0.92); }
.pf\:guest-seat-gift { position: absolute; z-index: 1; right: 0.35rem; bottom: 0.35rem; }

/* The viewer's guests button, between the comment field and the rose. Waiting for the host: an amber ring that
   breathes and a small clock. */
.pf\:live-bar-btn.is-guests { position: relative; }
.pf\:live-bar-btn.is-guests[hidden] { display: none; }
.pf\:live-bar-btn.is-guests > svg { width: 1.25rem; height: 1.25rem; }
.pf\:live-bar-btn.is-guests .pf\:guests-wait { display: none; }
.pf\:live-bar-btn.is-guests.is-waiting { border-color: #f59e0b; animation: pf-guest-ring 1.6s ease-in-out infinite; }
.pf\:live-bar-btn.is-guests.is-waiting .pf\:guests-wait {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #111;
}
.pf\:live-bar-btn.is-guests .pf\:guests-wait svg { width: 0.75rem; height: 0.75rem; stroke-width: 2.6; }
.pf\:join-note { font-size: 0.78rem; line-height: 1.4; color: rgba(255, 255, 255, 0.62); }
.pf\:join-cta { width: 100%; justify-content: center; padding-top: 0.7rem; padding-bottom: 0.7rem; }
@keyframes pf-guest-ring { 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.25); } }

/* The guest's own controls, in the bottom bar while on air; share and ask step aside. The gift stays (a guest
   can still gift the host or another guest, as in the app), before hang up, which stays last. */
.pf\:guest-bar-group { display: contents; }
.pf\:guest-bar-group[hidden] { display: none; }
.pf\:live-bar-gift { display: contents; }
.pf\:live-room.is-guest-on-air .pf\:live-bar-actions > :not(.pf\:guest-bar-group):not(.pf\:live-bar-gift) { display: none; }
.pf\:live-room.is-guest-on-air .pf\:live-bar-btn.is-hang-up { order: 1; }
.pf\:guest-bar-group .pf\:live-bar-btn[aria-pressed="true"] { background: rgba(225, 29, 72, 0.85); border-color: transparent; }
.pf\:live-bar-btn:disabled { opacity: 0.55; }
.pf\:live-bar-btn.is-hang-up { background: #dc2626; border-color: #dc2626; }
.pf\:live-rail-btn.is-danger { background: rgba(220, 38, 38, 0.92); }
/* Mic muted / camera off: the crossed-out icon plus a word beside the button, so the state reads at a glance. */
.pf\:live-rail-btn { position: relative; }
.pf\:live-rail-state {
  display: none;
  position: absolute;
  right: calc(100% + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.pf\:live-rail-btn[aria-pressed="true"] > .pf\:live-rail-state { display: block; }
.pf\:live-rail-btn:disabled { opacity: 0.55; }
/* Pointing at the rail button it is about. */
.pf\:guest-note.is-anchored { left: auto; transform: translateY(-50%); max-width: 60%; }

/* Wide buttons in live rooms don't zoom on hover: a 2% zoom on a full-width button pushed it past the edge,
   the page grew a horizontal scrollbar, the layout shifted under the pointer and it jittered. */
.pf\:live-room .pf\:btn:hover:not(:disabled) { scale: 1; filter: brightness(1.08); }
.pf\:live-room .pf\:btn:active:not(:disabled) { scale: 1; filter: brightness(0.95); }

.pf\:live-go-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-size: 0.95rem; }
.pf\:live-go-submit-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-go-dot 1.6s ease-out infinite;
}
@keyframes pf-go-dot { 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); } }

/* Desktop Go Live: setup docks as a panel on the right and the camera preview sits in the space beside it,
   instead of a full-width sheet over the preview. */
@media (min-width: 64rem) {
  .pf\:live-go .pf\:live-sheet.pf\:live-go-settings {
    left: auto; right: 1rem; top: 1rem; bottom: 1rem; width: 26rem; max-height: none;
    border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.25rem 1rem;
    transform: translate3d(calc(100% + 2rem), 0, 0);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  }
  .pf\:live-go .pf\:live-sheet.pf\:live-go-settings.is-open { transform: translate3d(0, 0, 0); }
  .pf\:live-go .pf\:live-sheet-backdrop { background: transparent; pointer-events: none; }
  .pf\:live-go .pf\:live-video { transition: width 0.42s cubic-bezier(0.32, 0.72, 0, 1); }
  /* A <video> keeps its own width when only left/right are set, so the width is explicit. The whole 9:16
     frame shows, centred in the space left of the panel. */
  .pf\:live-go:has(.pf\:live-go-settings.is-open) .pf\:live-video {
    right: auto; width: calc(100% - 28rem); object-fit: contain !important;
  }
  .pf\:live-go:has(.pf\:live-go-settings.is-open) .pf\:live-rail { right: 28.5rem; }
  .pf\:live-go .pf\:live-go-settings-footer { margin: 0 -1.25rem; padding: 0.9rem 1.25rem 0; }
}

/* The host's mute on a guest tile: a labelled pill, amber while muted, so it never reads as hang up. */
.pf\:guest-tile-btn.pf\:guest-tile-mute { width: auto; height: 1.75rem; padding: 0 0.55rem; gap: 0.25rem; border-radius: 999px; }
.pf\:guest-tile-btn.pf\:guest-tile-mute svg { width: 0.85rem; height: 0.85rem; }
.pf\:guest-tile-label { font-size: 0.65rem; font-weight: 700; }
.pf\:guest-tile-btn.pf\:guest-tile-mute[aria-pressed="true"] { background: #f59e0b; color: #111; }

/* Top gifters behind a coin counter (live_streams/_gifters_board), in the profile panel. */
.pf\:live-gifters-head { text-align: center; margin-bottom: 0.75rem; }
.pf\:live-gifters-total { margin-top: 0.35rem; font-size: 1.1rem; font-weight: 800; color: #fbbf24; }
.pf\:live-gifters-empty { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); padding: 1rem 0; }
.pf\:live-gifters-list { display: flex; flex-direction: column; gap: 0.35rem; max-height: 55vh; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.pf\:live-gifter-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.25rem; border-radius: 0.75rem; }
.pf\:live-gifter-rank { width: 1.4rem; text-align: center; font-weight: 800; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); flex-shrink: 0; }
.pf\:live-gifter-row.rank-1 .pf\:live-gifter-rank { color: #fbbf24; }
.pf\:live-gifter-row.rank-2 .pf\:live-gifter-rank { color: #e5e7eb; }
.pf\:live-gifter-row.rank-3 .pf\:live-gifter-rank { color: #f59e0b; }
.pf\:live-gifter-person { appearance: none; border: 0; background: transparent; color: inherit; padding: 0; margin: 0; display: flex; align-items: center; gap: 0.6rem; min-width: 0; flex: 1; text-align: left; cursor: pointer; }
.pf\:live-gifter-avatar { width: 2.25rem; height: 2.25rem; border-radius: 999px; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.pf\:live-gifter-name { display: flex; flex-direction: column; min-width: 0; font-size: 0.875rem; font-weight: 600; }
.pf\:live-gifter-coins { font-size: 0.75rem; font-weight: 600; color: #fbbf24; }
.pf\:live-gifter-follow { flex-shrink: 0; }
.pf\:live-gifter-follow .pf\:live-profile-btn { padding: 0.4rem 0.8rem; font-size: 0.78rem; border-radius: 999px; }

/* Coin counters: each guest's in its tile's top-left corner (the host's total is in Live stats). */
.pf\:live-coin-counter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.pf\:live-coin-counter:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf\:guest-seat .pf\:live-coin-counter { position: absolute; z-index: 1; top: 0.35rem; left: 0.35rem; }

/* The audience pill (_viewer_count): the top gifters' faces in place of the eye, then the count. Clear display keeps
   the count and the eye. */
.pf\:live-viewers:has(.pf\:live-top-gifter) { padding-left: 0.18rem; gap: 0.35rem; }
.pf\:live-viewers .pf\:live-top-gifter { width: 1.5rem; height: 1.5rem; }
.pf\:live-viewers:has(.pf\:live-top-gifter) .pf\:live-viewers-eye { display: none; }
.pf\:live-room.is-clear .pf\:live-viewers:has(.pf\:live-top-gifter) { padding-left: 0.55rem; gap: 0.3rem; }
.pf\:live-room.is-clear .pf\:live-viewers .pf\:live-top-gifters { display: none; }
.pf\:live-room.is-clear .pf\:live-viewers .pf\:live-viewers-eye { display: inline; }

/* Host controls (creator/live_streams/_host_actions, _more_sheet, _settings_sheet): the rail keeps mic, camera
   and effects; guests, share and more sit in the bottom bar like the viewer's buttons. */
.pf\:guest-note.is-anchored.is-above { transform: translateY(-100%); }
.pf\:live-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.pf\:live-more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 0.78rem/1.2 Inter, system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.12s ease;
}
.pf\:live-more-tile:active { transform: scale(0.96); }
@media (hover: hover) {
  .pf\:live-more-tile:hover { background: rgba(255, 255, 255, 0.11); }
}
.pf\:live-more-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.pf\:live-more-icon svg { width: 1.25rem; height: 1.25rem; }
.pf\:live-more-tile[aria-pressed="true"] .pf\:live-more-icon { background: rgba(225, 29, 72, 0.85); }
.pf\:live-room.is-camera-off .pf\:live-more-tile[data-camera-only] { display: none; }

.pf\:live-settings-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf\:live-layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.pf\:live-layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: center;
}
.pf\:live-layout-option:has(input:checked) { border-color: #ff3b6b; background: rgba(255, 59, 107, 0.12); }
.pf\:live-layout-option:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.pf\:live-layout-thumb {
  position: relative;
  width: 3.4rem;
  aspect-ratio: 9 / 16;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pf\:live-layout-thumb i {
  position: absolute;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.pf\:live-layout-thumb i:first-child { background: rgba(255, 255, 255, 0.3); }
.pf\:live-layout-name { font-size: 0.8rem; font-weight: 600; }
.pf\:live-layout-max { font-size: 0.68rem; color: rgba(255, 255, 255, 0.6); }
@media (min-width: 1024px) {
  .pf\:live-sheet:not(.pf\:live-sheet-effects, .pf\:live-go-settings) { left: 50%; right: auto; width: min(32rem, calc(100% - 1rem)); translate: -50% 0; }
}

/* Battle panels (live_streams/_panel, live_panel_controller.js). The hud sits over the picture; every box in it
   is placed in pixels from the panel's rects (fractions of the 9:16 frame). */
.pf\:panel-hud { position: absolute; inset: 0; z-index: 22; pointer-events: none; }
.pf\:panel-hud[hidden] { display: none; }
.pf\:panel-hud > * { position: absolute; }
/* The battle gauge: a slim bar of the hosts' colours (the leader gets a moving sheen), a spark where the sides
   meet, and the timer as a glass pill centred above it, clear of the hosts' boxes. */
.pf\:panel-score {
  min-height: 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font: 800 0.72rem/1 Inter, system-ui, sans-serif;
  color: #fff;
}
.pf\:panel-score-track {
  position: relative; display: flex; align-items: stretch; width: 100%; height: 100%; min-height: inherit;
  overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.pf\:panel-score-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
    var(--seg, #ff2e73);
  transition: flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.pf\:panel-score-seg b { position: relative; z-index: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.pf\:panel-score-seg b.is-bump { animation: pf-score-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pf-score-bump { 0% { scale: 1; } 40% { scale: 1.45; color: #fef08a; } 100% { scale: 1; } }
.pf\:panel-score-seg.is-first { justify-content: flex-start; padding-left: 0.6rem; }
.pf\:panel-score-seg.is-last { justify-content: flex-end; padding-right: 0.6rem; }
.pf\:panel-score-seg.is-leading::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 260% 100%; animation: pf-score-sheen 2.2s linear infinite;
}
@keyframes pf-score-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.pf\:panel-clash {
  position: absolute; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none;
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:panel-clash::before, .pf\:panel-clash::after, .pf\:panel-clash i {
  content: ""; position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 999px;
}
.pf\:panel-clash::before {
  width: 1.8rem; height: 1.8rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 22%, rgba(255, 255, 255, 0.12) 45%, transparent 68%);
  animation: pf-clash-glow 0.9s ease-in-out infinite alternate;
}
.pf\:panel-clash::after {
  width: 2.2rem; height: 0.18rem; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: pf-clash-ray 0.6s ease-in-out infinite alternate;
}
.pf\:panel-clash i {
  width: 0.18rem; height: 1.3rem;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  animation: pf-clash-ray 0.75s ease-in-out infinite alternate-reverse;
}
@keyframes pf-clash-glow { from { scale: 0.8; opacity: 0.8; } to { scale: 1.15; opacity: 1; } }
@keyframes pf-clash-ray { from { scale: 0.6 1; opacity: 0.6; } to { scale: 1.1 1; opacity: 1; } }
.pf\:panel-score.is-over .pf\:panel-clash, .pf\:panel-score.is-over .pf\:panel-score-seg::before { display: none; }
.pf\:panel-timer {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.3rem);
  translate: -50% 0;
  white-space: nowrap;
  z-index: 3;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 700 0.7rem/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
}
.pf\:panel-timer:empty { display: none; }
.pf\:panel-timer.is-final { background: rgba(239, 68, 68, 0.9); border-color: rgba(255, 255, 255, 0.35); animation: pf-panel-pulse 1s ease-in-out infinite; }
@keyframes pf-panel-pulse { 50% { scale: 1.12; } }

/* Square: battle boxes meet edge to edge, like a grid. */
.pf\:panel-tile { border-radius: 0; transition: box-shadow 0.4s; }
.pf\:panel-tile.is-winner { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.9), inset 0 0 32px rgba(251, 191, 36, 0.35); }
.pf\:panel-tile-head {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  font: 700 0.72rem/1.1 Inter, system-ui, sans-serif;
  color: #fff;
}
.pf\:panel-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; max-width: 100%;
  padding: 0.22rem 0.55rem 0.22rem 0.4rem; border-radius: 999px;
  background: rgba(10, 10, 14, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pf\:panel-chip::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-radius: 999px; flex-shrink: 0;
  background: var(--panel-color, #fff); box-shadow: 0 0 6px var(--panel-color, #fff);
}
.pf\:panel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf\:panel-streak { flex-shrink: 0; }
.pf\:panel-points {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--panel-color, #ff2e73);
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
/* Bottom left, off the host's face (the gift and Visit buttons are bottom right). */
.pf\:panel-supporters { position: absolute; left: 0.35rem; bottom: 0.35rem; display: flex; gap: 0.2rem; }
.pf\:panel-supporter { position: relative; }
.pf\:panel-supporter i {
  position: absolute; right: -0.2rem; bottom: -0.15rem; width: 0.8rem; height: 0.8rem; border-radius: 999px;
  background: #fbbf24; color: #111; font: 800 0.5rem/0.8rem Inter, system-ui, sans-serif; font-style: normal; text-align: center;
}
.pf\:panel-avatar {
  width: 1.35rem; height: 1.35rem; border-radius: 999px; object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e11d48; color: #fff; font: 700 0.65rem/1 Inter, system-ui, sans-serif;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.pf\:guest-row .pf\:panel-avatar, .pf\:panel-card-who .pf\:panel-avatar { width: 2rem; height: 2rem; font-size: 0.85rem; }
.pf\:panel-tile-foot {
  position: absolute; right: 0.35rem; bottom: 0.35rem; display: flex; gap: 0.3rem; pointer-events: auto;
}
.pf\:panel-tile-btn {
  height: 1.9rem; min-width: 1.9rem; padding: 0 0.6rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(10, 10, 14, 0.42); color: #fff;
  font: 700 0.72rem/1 Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pf\:panel-tile-btn.is-gift { color: #fcd34d; padding: 0; }
.pf\:panel-tile-btn svg { width: 1rem; height: 1rem; }
.pf\:panel-stamp {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg;
  padding: 0.3rem 0.8rem; border-radius: 0.6rem; border: 3px solid currentColor;
  font: 900 clamp(1.1rem, 5vw, 1.8rem)/1 Inter, system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45); animation: pf-panel-stamp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pf\:panel-stamp.is-win { color: #fbbf24; }
.pf\:panel-stamp.is-lose { color: rgba(255, 255, 255, 0.75); }
.pf\:panel-stamp.is-draw, .pf\:panel-stamp.is-rank { color: #e5e7eb; }
@keyframes pf-panel-stamp { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.pf\:panel-countdown {
  left: 50%; top: 42%; translate: -50% -50%;
  font: 900 6rem/1 Inter, system-ui, sans-serif; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.pf\:panel-lap {
  left: 50%; top: 66%; translate: -50% 0; width: min(92%, 22rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.75rem 0.9rem;
  border-radius: 1rem; background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; text-align: center; pointer-events: auto; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pf\:panel-lap-title { font: 800 1rem/1.2 Inter, system-ui, sans-serif; }
.pf\:panel-lap-mvp { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.pf\:panel-lap-time { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }
.pf\:panel-lap-time .pf\:panel-timer { position: static; translate: none; background: none; border: 0; padding: 0; }
.pf\:panel-waiting {
  left: 50%; top: 66%; translate: -50% 0; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.8rem; white-space: nowrap;
}
.pf\:panel-feed {
  position: absolute; left: 0.75rem; right: 4.25rem; bottom: calc(4.25rem + 28dvh + 0.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 21; display: flex; flex-direction: column; gap: 0.25rem; pointer-events: none;
}
.pf\:panel-feed-line {
  align-self: flex-start; max-width: 100%; padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(124, 58, 237, 0.7); color: #fff; font-size: 0.75rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: pf-panel-feed 6s ease forwards;
}
@keyframes pf-panel-feed { 0% { opacity: 0; translate: -0.5rem 0; } 6% { opacity: 1; translate: 0 0; } 85% { opacity: 1; } 100% { opacity: 0; } }
.pf\:panel-card { top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.pf\:panel-card-who { display: flex; align-items: flex-start; gap: 0.6rem; }
.pf\:panel-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; flex-shrink: 0; }
.pf\:panel-stack { display: inline-flex; flex-shrink: 0; }
.pf\:panel-stack .pf\:panel-avatar + .pf\:panel-avatar { margin-left: -0.55rem; }
.pf\:panel-start { width: 100%; justify-content: center; background: linear-gradient(90deg, #ff3b6b, #7c3aed); color: #fff; font-weight: 700; }
.pf\:panel-record { margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }
.pf\:live-bar-btn.is-battle { color: #fbbf24; }
.pf\:live-bar-btn.is-battle.is-in-panel { background: linear-gradient(135deg, rgba(255, 59, 107, 0.85), rgba(124, 58, 237, 0.85)); color: #fff; }
.pf\:live-room.is-clear .pf\:panel-feed, .pf\:live-room.is-clear .pf\:panel-tile-foot { opacity: 0; pointer-events: none; }

/* Fan level with this live's host (FanLevelService): a numbered heart next to the name in chat. */
.pf\:fan-chip {
  display: inline-flex; align-items: center; gap: 0.15rem; margin-right: 0.25rem; padding: 0 0.35rem;
  border-radius: 999px; background: linear-gradient(90deg, #ff3b6b, #f472b6); color: #fff;
  font: 800 0.62rem/1.35 Inter, system-ui, sans-serif; vertical-align: 0.08em;
}
/* A new look every ten levels (FanLevelService.tier_for): pink, violet, ocean, gold, ruby, holographic at 50. */
.pf\:fan-chip--tier-1 { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.pf\:fan-chip--tier-2 { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.pf\:fan-chip--tier-3 { background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #3b2300; }
.pf\:fan-chip--tier-4 { background: linear-gradient(90deg, #7f1d1d, #e11d48); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.7); }
.pf\:fan-chip--tier-5 {
  background: linear-gradient(90deg, #f472b6, #a78bfa, #38bdf8, #34d399, #fbbf24); color: #1f1235;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.8);
}
.pf\:fan-chip.is-paused { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.75); box-shadow: none; }

/* Comment backdrops (LiveCommentBackdropHelper): a dark layer whose opacity (--live-chat-alpha) rises with the fan
   level, textured per badge tier (textures made on ComfyUI). No backdrop blur: the chat stack's fade mask makes it
   the backdrop root, so a blur would see nothing behind the comment. */
.pf\:live-comment {
  position: relative; isolation: isolate; width: fit-content; max-width: 100%;
  padding: 0.22rem 0.65rem 0.26rem 0.24rem; border-radius: 0.95rem;
}
.pf\:live-comment + .pf\:live-comment { margin-top: 0.25rem; }
/* The avatar is taller than a line of text: centred, the text sits in the middle of the pill instead of riding
   5 px high on one-line comments (the row used to align to the top). */
.pf\:live-comment { align-items: center; }
.pf\:live-comment > .pf\:live-comment-avatar { margin-top: 0; }
.pf\:live-comment::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: #000 var(--live-chat-texture, none) center / cover no-repeat; opacity: var(--live-chat-alpha, 0.22);
}
.pf\:live-comment--tier-0 { --live-chat-texture: url("/assets/live/chat/tier-0-6675e1e9.webp"); }
.pf\:live-comment--tier-1 { --live-chat-texture: url("/assets/live/chat/tier-1-84780ed0.webp"); }
.pf\:live-comment--tier-2 { --live-chat-texture: url("/assets/live/chat/tier-2-981b1f14.webp"); }
.pf\:live-comment--tier-3 { --live-chat-texture: url("/assets/live/chat/tier-3-394e3d39.webp"); }
.pf\:live-comment--tier-4 { --live-chat-texture: url("/assets/live/chat/tier-4-79c5055d.webp"); }
.pf\:live-comment--tier-5 { --live-chat-texture: url("/assets/live/chat/tier-5-e211534e.webp"); }
.pf\:live-comment--tier-5::before {
  background-size: 220% auto; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.55);
  animation: pf-live-chat-drift 9s ease-in-out infinite alternate;
}
.pf\:live-comment--host::before { background: linear-gradient(90deg, #7a0d2c, #2a0612); }
@keyframes pf-live-chat-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .pf\:live-comment--tier-5::before { animation: none; } }
.pf\:live-fan-level-up { background: rgba(255, 59, 107, 0.22); border-radius: 0.75rem; padding: 0.25rem 0.55rem; font-size: 0.8rem; }
.pf\:live-gift-tray-level { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); margin: -0.25rem 0 0.6rem; }

/* Rankings (live_streams/_ranking_pill, _rankings_sheet, live_rankings_controller.js). */
.pf\:live-rank-pill {
  flex-shrink: 0; padding: 0.2rem 0.55rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9)); color: #111;
  font: 800 0.72rem/1.2 Inter, system-ui, sans-serif; white-space: nowrap;
}
.pf\:live-rank-pill.is-unranked { background: rgba(0, 0, 0, 0.45); color: #fff; }
/* Below the top bar on the left, TikTok-style (the top bar keeps its room for gifters, viewers and End); the
   goal steps down under it. The top bar is absolutely placed, so 100% is its bottom edge. */
.pf\:live-hud-top > .pf\:live-rank-pill { position: absolute; top: calc(100% - 0.4rem); left: max(0.75rem, env(safe-area-inset-left, 0px)); }
.pf\:live-room:has(.pf\:live-hud-top > .pf\:live-rank-pill) > .pf\:live-goal { top: calc(5.4rem + env(safe-area-inset-top, 0px)); }
/* The rank pill and the fan club pill side by side in the same place (live_streams/show). */
.pf\:live-hud-top > .pf\:live-hud-pills { position: absolute; top: calc(100% - 0.4rem); left: max(0.75rem, env(safe-area-inset-left, 0px)); display: flex; gap: 0.35rem; align-items: center; }
.pf\:live-hud-pills:empty { display: none; }
.pf\:live-room:has(.pf\:live-hud-pills > *) .pf\:live-joins { top: calc(6.4rem + env(safe-area-inset-top, 0px)); }
.pf\:live-room:has(.pf\:live-hud-pills > *):has(.pf\:live-goal.is-active) .pf\:live-joins { top: calc(9.2rem + env(safe-area-inset-top, 0px)); }
.pf\:live-room:has(.pf\:live-hud-pills > *) > .pf\:live-goal { top: calc(5.4rem + env(safe-area-inset-top, 0px)); }

/* Live chat replies (live-reply): the line over a reply, the chip over the field, the tappable text. */
.pf\:live-comment-reply {
  display: block; margin-bottom: 0.1rem; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf\:live-comment-text { cursor: pointer; }
.pf\:live-compose { position: relative; }
.pf\:live-reply-chip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 0.35rem); display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.4rem 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(18, 18, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 0.78rem; z-index: 2;
}
.pf\:live-reply-chip[hidden] { display: none; }
.pf\:live-room:has(.pf\:live-reply-chip:not([hidden])) .pf\:live-chat-stack:not([style*="bottom"]) {
  bottom: calc(6.6rem + env(safe-area-inset-bottom, 0px));
}
.pf\:live-reply-chip button { border: 0; background: transparent; color: rgba(255, 255, 255, 0.7); cursor: pointer; padding: 0 0.35rem; font-size: 0.85rem; }
.pf\:live-compose:has(.pf\:live-reply-chip:not([hidden])) ~ .pf\:live-reactions,
.pf\:live-compose-bar:has(.pf\:live-reply-chip:not([hidden])) .pf\:live-reactions { display: none !important; }

/* Fan club (FanMissionService, FanClubService): pill, sheet, missions, top fans, mission toasts. */
.pf\:live-fan-pill {
  position: relative; flex-shrink: 0; padding: 0.2rem 0.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #ff3b6b, #f472b6); color: #fff;
  font: 800 0.72rem/1.2 Inter, system-ui, sans-serif; white-space: nowrap;
}
.pf\:live-fan-pill.is-new { background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 59, 107, 0.8); }
.pf\:live-fan-pill.is-paused { background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.7); box-shadow: none; }
.pf\:live-fan-pill-dot {
  position: absolute; top: -0.1rem; right: -0.1rem; width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: #fde047; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}
.pf\:fan-chip--big { font-size: 0.8rem; padding: 0.1rem 0.5rem; }
.pf\:fan-level-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.75rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.06); }
.pf\:fan-level-card p { margin: 0; }
.pf\:fan-level-bar { height: 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pf\:fan-level-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff3b6b, #f472b6); }
.pf\:fan-mission-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pf\:fan-mission { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.05); }
.pf\:fan-mission.is-done { opacity: 0.6; }
.pf\:fan-mission-icon { width: 1.6rem; text-align: center; font-size: 1.1rem; }
.pf\:fan-mission-go {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 0.3rem 0.75rem; cursor: pointer;
  background: #ff3b6b; color: #fff; font: 700 0.75rem/1.2 Inter, system-ui, sans-serif;
}
.pf\:fan-mission-points { flex-shrink: 0; font-weight: 800; font-size: 0.8rem; color: #ff8fab; }
.pf\:fan-mission.is-done .pf\:fan-mission-points { color: #4ade80; }
.pf\:fan-gift-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.35rem; }
.pf\:fan-gift-strip li { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.65rem; font-weight: 700; color: #ff8fab; }
.pf\:fan-gift-strip img { width: 100%; max-width: 3rem; aspect-ratio: 1; object-fit: contain; }
.pf\:fan-gift-strip li.is-locked { color: rgba(255, 255, 255, 0.5); }
.pf\:fan-gift-strip li.is-locked img { filter: grayscale(0.85) brightness(0.6); }
/* Fan club gifts in the gift tray (live_streams/_gift_tray). */
.pf\:live-gift-fan-head { margin: 0.75rem 0 0.4rem; font-size: 0.8rem; font-weight: 700; color: #ff8fab; }
.pf\:live-gift-item.is-fan { position: relative; box-shadow: inset 0 0 0 1px rgba(255, 59, 107, 0.45); }
.pf\:live-gift-item-lock { display: none; }
.pf\:live-gift-item.is-locked .pf\:live-gift-item-icon { filter: grayscale(0.85) brightness(0.6); }
.pf\:live-gift-item.is-locked .pf\:live-gift-item-lock {
  display: block; position: absolute; top: 0.25rem; right: 0.25rem; padding: 0.05rem 0.35rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.6rem; font-weight: 800;
}
.pf\:fan-board-points { flex-shrink: 0; min-width: 3.5rem; text-align: right; font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.pf\:fan-board-me {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem -1rem 0;
  padding: 0.65rem 1.25rem 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\:fan-club-sheet { padding-bottom: 0; background: linear-gradient(180deg, rgba(34, 31, 39, 0.97), rgba(18, 17, 22, 0.98)); }
.pf\:fan-club-sheet section { padding-bottom: 1rem; }
.pf\:fan-mission-toasts {
  position: absolute; left: 50%; top: 38%; transform: translateX(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; pointer-events: none;
  width: max-content; max-width: calc(100vw - 2rem);
}
.pf\:fan-mission-toast {
  padding: 0.4rem 0.8rem; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 59, 107, 0.95), rgba(124, 58, 237, 0.95));
  color: #fff; font: 700 0.8rem/1.3 Inter, system-ui, sans-serif; text-align: center;
  opacity: 0; transform: translateY(-0.4rem); transition: opacity 0.3s, transform 0.3s;
}
.pf\:fan-mission-toast.is-visible { opacity: 1; transform: none; }
.pf\:fan-mission-toast.is-leaving { opacity: 0; transform: translateY(-0.4rem); }
.pf\:live-moderation-warnings {
  position: absolute; left: 0.75rem; right: 0.75rem; top: calc(3.6rem + env(safe-area-inset-top, 0px));
  z-index: 30; display: flex; justify-content: center; pointer-events: none;
}
.pf\:live-moderation-warning {
  margin: 0; max-width: 30rem; padding: 0.3rem 0.7rem; border-radius: 0.6rem;
  background: rgba(153, 27, 27, 0.78); border: 1px solid rgba(248, 113, 113, 0.6); color: #fff;
  font: 600 0.72rem/1.3 Inter, system-ui, sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pf\:rank-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.pf\:rank-tab {
  border: 0; border-radius: 999px; padding: 0.42rem 0.85rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.72); font: 600 0.8rem/1.2 Inter, system-ui, sans-serif;
  transition: background 0.2s, color 0.2s;
}
.pf\:rank-tab.is-active { background: #fff; color: #111; }
.pf\:rank-tab.is-period { padding: 0.32rem 0.7rem; font-size: 0.74rem; }
.pf\:rank-tab.is-period.is-active { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pf\:rank-list { list-style: none; margin: 0; padding: 0; max-height: 45dvh; overflow-y: auto; }
.pf\:rank-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.2rem; font-size: 0.85rem; }
.pf\:rank-n { width: 1.5rem; text-align: center; font-weight: 800; color: rgba(255, 255, 255, 0.55); }
.pf\:rank-n.is-top { color: #fbbf24; }
.pf\:rank-me { margin: 0.6rem 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.pf\:panel-start-cta {
  left: 50%; top: 64%; translate: -50% 0; pointer-events: auto; cursor: pointer;
  padding: 0.7rem 1.4rem; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ff3b6b, #7c3aed); color: #fff;
  font: 800 0.95rem/1 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  animation: pf-panel-cta 2s ease-in-out infinite;
}
@keyframes pf-panel-cta { 50% { box-shadow: 0 8px 32px rgba(255, 59, 107, 0.7); } }

/* The host's capsule at the left of the top bar (live_streams/_host_chip), TikTok-style: round photo, @username,
   one small line under it. The photo never shrinks: a squeezed bar used to turn it into an oval. */
.pf\:live-host-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; max-width: 22rem; flex: 0 1 auto; margin-right: auto;
  padding: 0.2rem 0.75rem 0.2rem 0.2rem; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); color: #fff; text-align: left;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
button.pf\:live-host-chip { cursor: pointer; }
.pf\:live-host-chip-avatar {
  flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; aspect-ratio: 1; border-radius: 999px; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; color: #fff;
}
.pf\:live-host-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pf\:live-host-chip-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf\:live-host-chip-sub {
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pf\:live-host-chip-sub[hidden] { display: none; }
.pf\:live-hud-top .pf\:live-status[hidden] { display: none; }
/* The effects sheet's look cards keep their portrait shape too. */
.pf\:live-filter-chip-thumb { flex-shrink: 0; aspect-ratio: 3 / 4; }
.pf\:live-host-chip-sub.is-one-line { -webkit-line-clamp: 1; }

/* The host's rail: mic, then one camera button that opens camera on/off, flip and effects in a row to its left
   (live_rail_menu_controller). The button shows the camera-off icon, fill and word while the camera is off. */
.pf\:live-rail-group { position: relative; }
.pf\:live-rail-menu {
  position: absolute; right: calc(100% + 0.5rem); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: pf-rail-menu-in 0.16s ease-out;
}
.pf\:live-rail-menu[hidden] { display: none; }
@keyframes pf-rail-menu-in { from { opacity: 0; transform: translate(0.5rem, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.pf\:live-rail-menu .pf\:live-rail-btn:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.12); }
.pf\:live-rail-menu .pf\:live-rail-state { display: none !important; }
.pf\:rail-cam-off { display: none; }
.pf\:live-room.is-camera-off .pf\:live-rail-menu-btn { background: rgba(225, 29, 72, 0.85); }
.pf\:live-room.is-camera-off .pf\:live-rail-menu-btn > .pf\:rail-cam-on { display: none; }
.pf\:live-room.is-camera-off .pf\:live-rail-menu-btn > .pf\:rail-cam-off { display: block; }
.pf\:live-room.is-camera-off .pf\:live-rail-group:not(.is-open) .pf\:live-rail-menu-btn > .pf\:live-rail-state { display: block; }
.pf\:live-rail-group.is-open .pf\:live-rail-menu-btn { background: rgba(255, 255, 255, 0.28); }

/* Comment field with the emoji button inside it, at its right, and the emoji panel above the bar
   (live_streams/_compose_form, _emoji_panel, live_emoji_controller). The field keeps focus, so on a phone the
   keyboard stays up under the bar; the panel is shorter then, the bar's buttons step aside and the chat sits above. */
.pf\:live-input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.pf\:live-input-wrap > .pf\:live-input { padding-right: 2.75rem; }
.pf\:live-emoji-btn {
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(255, 255, 255, 0.8); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pf\:live-emoji-btn svg { width: 1.3rem; height: 1.3rem; }
.pf\:live-emoji-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.pf\:live-emoji-panel {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: calc(100% - 0.25rem); height: 15rem;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 0.15rem;
  padding: 0.45rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  border-radius: 1rem; background: rgba(18, 18, 18, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pf\:live-emoji-panel::-webkit-scrollbar { display: none; }
.pf\:live-emoji-panel[hidden] { display: none; }
.pf\:live-emoji {
  aspect-ratio: 1; width: 100%; padding: 0; border: 0; border-radius: 0.6rem; background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease;
}
.pf\:live-emoji:active { transform: scale(1.25); }
@media (hover: hover) { .pf\:live-emoji:hover { background: rgba(255, 255, 255, 0.1); } }
.pf\:live-compose-bar.is-emoji-open .pf\:live-reactions { display: none !important; }
.pf\:live-compose-bar.is-sent .pf\:live-reactions { display: none !important; }
.pf\:live-room:has(.pf\:live-compose-bar.is-emoji-open) > .pf\:live-chat-stack {
  bottom: calc(19.5rem + env(safe-area-inset-bottom, 0px)); max-height: min(28dvh, calc(100% - 27rem));
}
@media (pointer: coarse) {
  .pf\:live-compose-bar.has-actions.is-emoji-open :is(.pf\:live-bar-actions, .pf\:live-quick-gift) { display: none; }
  .pf\:live-compose-bar.is-emoji-open:has(.pf\:live-input:focus) .pf\:live-emoji-panel { height: 10.5rem; }
}
@media (min-width: 640px) {
  .pf\:live-emoji-panel { left: 50%; right: auto; width: 22rem; translate: -50% 0; }
}
/* In the open row the camera button shows what a tap does (crossed out = turn off), not the state the rail button
   beside it already shows. */
.pf\:live-rail-menu [aria-pressed="false"] > .pf\:cam-icon-on { display: none; }
.pf\:live-rail-menu [aria-pressed="false"] > .pf\:cam-icon-off { display: block; }
.pf\:live-rail-menu [aria-pressed="true"] > .pf\:cam-icon-on { display: block; }
.pf\:live-rail-menu [aria-pressed="true"] > .pf\:cam-icon-off { display: none; }
.pf\:live-rail-menu .pf\:live-rail-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); }

/* A live never scrolls as a page. The app's base css gives html overflow-x: hidden, which makes html (not body)
   the page's scroller with overflow-y auto, so the layout's body overflow-hidden no longer stopped it; the body's
   min-height (100vh) is taller than the visible area while the browser bar shows, so the page scrolled by about
   the bar's height, and on a phone a drag on the comments could go to the page instead of the list. */
html:has(.pf\:live-room),
html:has(.pf\:live-room) > body {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  min-height: 0;
}
/* The comments keep their own scroll and never hand it on to the page. */
.pf\:live-chat-stack { overscroll-behavior: contain; }

/* The host tapped End (live_end_controller): the live gives way at once while the summary loads. */
.pf\:live-room.is-ending::after {
  content: "Ending your live…";
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font: 600 1rem/1.4 Inter, system-ui, sans-serif;
  animation: pf-live-ending-in 0.18s ease-out;
}
@keyframes pf-live-ending-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- Battle boosts (BATTLE_BOOSTS_PLAN.md): Bag in the gift tray, badges and pops over the battle ---- */
.pf\:boost-bag { margin: 0 0 0.7rem; border-radius: 0.9rem; background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(236, 72, 153, 0.14)); border: 1px solid rgba(251, 191, 36, 0.3); }
.pf\:boost-bag[hidden] { display: none; }
.pf\:boost-bag-head {
  display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.6rem 0.8rem; border: 0; background: none;
  color: #fff; font: 700 0.85rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; text-align: left;
}
.pf\:boost-bag-count:not(:empty) { padding: 0.1rem 0.45rem; border-radius: 999px; background: #fbbf24; color: #111; font-size: 0.7rem; }
.pf\:boost-bag-chevron { margin-left: auto; transition: rotate 0.2s ease; }
.pf\:boost-bag.is-open .pf\:boost-bag-chevron { rotate: 90deg; }
.pf\:boost-bag > [data-live-bag-target="body"] { padding: 0 0.6rem 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.pf\:boost-bag > [data-live-bag-target="body"][hidden] { display: none; }
.pf\:boost-bag .pf\:live-gift-tray-error { margin: 0 0.8rem 0.4rem; }
.pf\:boost-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border-radius: 0.75rem; background: rgba(0, 0, 0, 0.35); }
.pf\:boost-emoji { width: 2.6rem; height: 2.6rem; flex-shrink: 0; object-fit: contain; font-size: 1.7rem; line-height: 2.6rem; text-align: center; filter: drop-shadow(0 0 6px var(--boost-glow, rgba(251, 191, 36, 0.7))); }
.pf\:boost-bag-icon { width: 1.6rem; height: 1.6rem; object-fit: contain; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)); }
.pf\:boost-inline-icon { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -0.25em; }
.pf\:boost-odds-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; object-fit: contain; }
.pf\:boost-odds li { display: flex; align-items: flex-start; gap: 0.4rem; }
.pf\:boost-badge-icon { width: 1.15rem; height: 1.15rem; object-fit: contain; }
.pf\:boost-pop-art { display: block; width: 6.5rem; height: 6.5rem; object-fit: contain; }
.pf\:boost-drop-bag-art { display: block; width: 4.4rem; height: 4.4rem; object-fit: contain; }
.pf\:boost-name { font: 700 0.82rem/1.2 Inter, system-ui, sans-serif; color: #fff; }
.pf\:boost-name span { font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.pf\:boost-effect { font-size: 0.7rem; line-height: 1.3; color: rgba(255, 255, 255, 0.72); }
.pf\:boost-expiry { font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); }
.pf\:boost-use { flex-shrink: 0; min-width: 4.2rem; font-size: 0.72rem; }
.pf\:boost-use:disabled { opacity: 0.55; cursor: default; }
.pf\:boost-empty { font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); padding: 0 0.2rem; }
.pf\:boost-odds { font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); padding: 0 0.2rem; }
.pf\:boost-odds summary { cursor: pointer; color: rgba(255, 255, 255, 0.85); }
.pf\:boost-odds ul { margin: 0.35rem 0; display: flex; flex-direction: column; gap: 0.25rem; }
.pf\:boost-odds b { color: #fff; }

.is-heel { --boost-glow: rgba(251, 191, 36, 0.85); }
.is-double { --boost-glow: rgba(253, 230, 138, 0.85); }
.is-encore { --boost-glow: rgba(167, 139, 250, 0.85); }
.is-perfume { --boost-glow: rgba(244, 114, 182, 0.9); }
.is-mirror { --boost-glow: rgba(165, 243, 252, 0.9); }

.pf\:boost-badges { position: absolute; left: 0.35rem; top: 3.4rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pf\:boost-badge {
  display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.12rem 0.4rem 0.12rem 0.25rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); font-size: 0.85rem; line-height: 1;
  box-shadow: 0 0 0 1.5px var(--boost-glow), 0 0 10px var(--boost-glow); animation: pf-boost-badge 1.6s ease-in-out infinite;
}
.pf\:boost-badge i { font: 800 0.62rem/1 Inter, system-ui, sans-serif; font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }
.pf\:boost-badge.is-blocked { filter: grayscale(1); opacity: 0.6; animation: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.pf\:boost-badge.is-blocked::after { content: "🪞"; font-size: 0.6rem; }
@keyframes pf-boost-badge { 50% { box-shadow: 0 0 0 1.5px var(--boost-glow), 0 0 18px var(--boost-glow); } }
.pf\:boost-cloak-note {
  position: absolute; left: 0.35rem; bottom: 0.4rem; padding: 0.15rem 0.45rem; border-radius: 999px;
  background: rgba(236, 72, 153, 0.6); color: #fff; font: 600 0.62rem/1.2 Inter, system-ui, sans-serif;
}

/* Hand Mirror: the other hosts' tiles get a silver shimmer while it's up. */
.pf\:panel-tile.is-stunned::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(207, 250, 254, 0.35) 45%, rgba(255, 255, 255, 0.55) 50%, rgba(207, 250, 254, 0.35) 55%, transparent 70%);
  background-size: 250% 100%; animation: pf-boost-shimmer 1.8s linear infinite; box-shadow: inset 0 0 0 2px rgba(165, 243, 252, 0.8);
}
.pf\:boost-stun-art { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0.9; filter: drop-shadow(0 0 12px rgba(165, 243, 252, 0.8)); }
.pf\:boost-stun-icon { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; }
@keyframes pf-boost-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Perfume Cloud: pink mist over the hidden score. */
.pf\:panel-score-seg.is-cloaked { position: relative; }
.pf\:panel-score-seg.is-cloaked::after, .pf\:panel-points.is-hidden {
  background-image: radial-gradient(circle at 20% 50%, rgba(251, 207, 232, 0.85), transparent 45%), radial-gradient(circle at 70% 40%, rgba(244, 114, 182, 0.8), transparent 50%);
}
.pf\:panel-score-seg.is-cloaked::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 200% 100%;
  animation: pf-boost-mist 3s ease-in-out infinite alternate; opacity: 0.75;
}
.pf\:panel-points.is-hidden { background-color: #db2777; animation: pf-boost-mist 3s ease-in-out infinite alternate; background-size: 200% 100%; }
@keyframes pf-boost-mist { from { background-position: 0 0; } to { background-position: 100% 0; } }

.pf\:panel-lap-drops { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.7rem; font-size: 0.75rem; color: #fde68a; }
.pf\:panel-lap-drops span { display: inline-flex; align-items: center; gap: 0.2rem; }

.pf\:panel-feed-line.is-boosted { background: linear-gradient(90deg, rgba(180, 83, 9, 0.85), rgba(219, 39, 119, 0.8)); }
.pf\:boost-hit { color: #fde68a; }

/* Pops and the drop, in their own layer so the HUD's redraws don't cut them short. */
.pf\:boost-fx { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.pf\:boost-pop {
  position: absolute; left: 50%; top: 38%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: #fff; text-align: center; animation: pf-boost-pop 2.8s ease forwards;
}
.pf\:boost-pop-emoji { display: block; font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 0 22px var(--boost-glow)); animation: pf-boost-pop-emoji 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pf\:boost-pop.is-heel .pf\:boost-pop-emoji { animation: pf-boost-stomp 0.9s cubic-bezier(0.5, 0, 0.75, 0) both, pf-boost-pop-emoji 0.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pf\:boost-pop.is-encore .pf\:boost-pop-emoji { animation: pf-boost-flip 1s ease-in-out; }
.pf\:boost-pop-text {
  padding: 0.35rem 0.8rem; border-radius: 0.8rem; background: rgba(0, 0, 0, 0.65); font: 500 0.8rem/1.3 Inter, system-ui, sans-serif;
  box-shadow: 0 0 0 1px var(--boost-glow);
}
@keyframes pf-boost-pop { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: -50% -60%; } }
@keyframes pf-boost-pop-emoji { from { scale: 0.2; } to { scale: 1; } }
@keyframes pf-boost-stomp { 0% { translate: 0 -60vh; rotate: -25deg; } 70% { translate: 0 0; rotate: 0deg; } 100% { translate: 0 0; } }
@keyframes pf-boost-flip { 0% { rotate: 0deg; scale: 0.4; } 60% { rotate: 180deg; scale: 1.15; } 100% { rotate: 180deg; scale: 1; } }
.pf\:boost-hit-pop {
  position: absolute; left: 50%; top: 30%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center;
  font: 900 2.2rem/1 Inter, system-ui, sans-serif; color: #fde047; text-shadow: 0 0 14px rgba(251, 191, 36, 0.9), 0 2px 4px rgba(0, 0, 0, 0.6);
  animation: pf-boost-hit 1.6s ease-out forwards;
}
.pf\:boost-hit-pop small { font-size: 0.85rem; color: #fff; }
@keyframes pf-boost-hit { 0% { scale: 0.3; opacity: 0; } 15% { scale: 1.25; opacity: 1; } 30% { scale: 1; } 100% { opacity: 0; translate: -50% -140%; } }

.pf\:boost-drop {
  position: absolute; left: 50%; top: 16%; translate: -50% 0; width: min(90%, 21rem); display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.8rem 0.8rem 0.9rem; border-radius: 1.1rem; color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.3), transparent 60%), rgba(14, 10, 6, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.45); box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
  animation: pf-boost-drop 6s ease forwards;
}
.pf\:boost-drop-bag { font-size: 3rem; line-height: 1; animation: pf-boost-bag 0.9s ease-in-out 2; filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8)); }
.pf\:boost-drop-title { font: 800 0.85rem/1.2 Inter, system-ui, sans-serif; text-align: center; }
.pf\:boost-drop-card {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.4rem 0.6rem; border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px var(--boost-glow); font-size: 0.8rem;
  opacity: 0; animation: pf-boost-card 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: calc(1s + var(--i) * 0.45s);
}
.pf\:boost-drop-prize { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: #fde68a; }
.pf\:boost-drop-prize .pf\:boost-inline-icon { width: 1.7rem; height: 1.7rem; }
@keyframes pf-boost-drop { 0% { opacity: 0; scale: 0.85; } 6% { opacity: 1; scale: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pf-boost-bag { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 75% { rotate: 14deg; } 50% { scale: 1.15; } }
@keyframes pf-boost-card { from { opacity: 0; translate: 0 -2.2rem; scale: 0.6; } to { opacity: 1; translate: 0 0; scale: 1; } }

.pf\:boost-recap { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.2rem; }
.pf\:boost-recap-row { font-size: 0.82rem; opacity: 0; animation: pf-boost-card 0.5s ease forwards; animation-delay: calc(0.3s + var(--i) * 0.25s); }

@media (prefers-reduced-motion: reduce) {
  .pf\:boost-pop, .pf\:boost-pop-emoji, .pf\:boost-hit-pop, .pf\:boost-drop, .pf\:boost-drop-bag, .pf\:boost-badge,
  .pf\:panel-tile.is-stunned::after, .pf\:panel-score-seg.is-cloaked::after, .pf\:panel-points.is-hidden,
  .pf\:panel-score-seg.is-leading::before, .pf\:panel-clash::before, .pf\:panel-clash::after, .pf\:panel-clash i,
  .pf\:panel-score-seg b.is-bump { animation: none; }
  .pf\:boost-drop-card, .pf\:boost-recap-row { animation: none; opacity: 1; }
}

/* One-time tips (shared/_getting_started_tip): a small card that points at a feature the first time. */
.pf\:live-tip {
  position: absolute; z-index: 45; max-width: 15rem;
  padding: 0.7rem 0.8rem; border-radius: 0.9rem;
  background: rgba(17, 17, 17, 0.88); color: #fff; backdrop-filter: blur(8px);
  font: 500 0.8rem/1.35 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pf\:live-tip p { margin: 0 0 0.5rem; }
.pf\:live-tip.is-above-bar { right: 0.75rem; bottom: 5.5rem; }
.pf\:live-tip.is-beside-rail { right: 4.5rem; top: 30%; }
.pf\:live-tip-ok {
  border: none; border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer;
  background: #fff; color: #111; font: 700 0.75rem/1 Inter, system-ui, sans-serif;
}

/* Landscape lives (OBS, OMB Studio's landscape mode: live_streams.video_orientation, or the picture's own size,
   live_viewer#syncVideoFit) for viewers. The overlays were laid out for a 9:16 picture: on an upright phone a 16:9
   stream became a thin strip under a black block holding the header and goal, and on a sideways phone the header,
   goal and chat covered most of it. Not with guests or panels (a landscape live takes neither yet). */

/* Upright phone: like Twitch and the apps' gaming mode. Header, then the stream at full width, then goal and chat
   in the space under it. */
@media (orientation: portrait) {
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) {
    --lv-top: calc(4.25rem + env(safe-area-inset-top, 0px));
    --lv-h: min(calc(100vw * 9 / 16), 45dvh);
    --lv-below: calc(var(--lv-top) + var(--lv-h) + 0.6rem);
  }
  /* The rank and fan club pills wrap under the host chip. */
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel):has(.pf\:live-hud-pills > *) {
    --lv-top: calc(5.75rem + env(safe-area-inset-top, 0px));
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-video {
    top: var(--lv-top);
    bottom: auto;
    height: var(--lv-h);
    object-fit: contain !important;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-hud-top { background: #000; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-goal { top: var(--lv-below) !important; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) .pf\:live-joins { top: calc(var(--lv-below) + 4.9rem) !important; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-sound-hint {
    top: calc(var(--lv-top) + var(--lv-h) / 2 - 1.1rem);
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-chat-stack {
    max-height: calc(100dvh - var(--lv-below) - 10rem - env(safe-area-inset-bottom, 0px));
  }
}

/* Sideways phone: less chrome (the chat column below still applies). */
@media (orientation: landscape) and (max-height: 32rem) {
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-hud-top {
    padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.4rem;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > :is(.pf\:live-goal, .pf\:live-highlight) { display: none; }
  /* The picture starts under the host chip instead of behind it (a 16:9 picture rarely needs the full height). */
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-video {
    top: calc(3.25rem + env(safe-area-inset-top, 0px));
    bottom: auto;
    height: calc(100% - 3.25rem - env(safe-area-inset-top, 0px));
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-hud-top { background: none; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-compose-bar {
    padding-top: 0.35rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: none;
  }
}

/* Desktop and sideways phones: the stream on the left, whole; chat, gifts and the composer in a column on the right,
   like Twitch. A 16:9 picture on a sideways phone only needs about half the width, so the column costs it nothing. */
@media (min-width: 35rem) and (orientation: landscape) {
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) {
    --lv-col: clamp(15rem, 30vw, 24rem);
    background: linear-gradient(to left, #0e0e10 var(--lv-col), #000 var(--lv-col));
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-video {
    right: auto;
    width: calc(100% - var(--lv-col));
    object-fit: contain !important;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-hud-top { background: none; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > :is(.pf\:live-chat-stack, .pf\:live-gifts, .pf\:live-highlight, .pf\:live-compose-bar, .pf\:live-chat-jump) {
    left: auto;
    right: 0;
    width: var(--lv-col);
    max-width: none;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > :is(.pf\:live-chat-stack, .pf\:live-gifts, .pf\:live-highlight) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-chat-stack {
    max-height: calc(100dvh - 12rem);
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-compose-bar { background: none; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-goal {
    top: calc(4.5rem + env(safe-area-inset-top, 0px)) !important;
    left: auto;
    right: 0.75rem;
    width: calc(var(--lv-col) - 1.5rem);
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) .pf\:live-joins {
    top: calc(9.5rem + env(safe-area-inset-top, 0px)) !important;
    left: auto;
    right: 0.75rem;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-sound-hint { left: calc((100% - var(--lv-col)) / 2); }
}
/* Sideways phone, after the column rules: the column is short, so the chat uses all of it under the header. */
@media (orientation: landscape) and (max-height: 32rem) {
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-chat-stack {
    bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px));
  }
  /* Full screen, like the apps' gaming mode: the picture takes the whole screen and the chat and message bar float
     over its lower left, small and see-through, so a viewer can still comment. No side column here. */
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) { background: #000; }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-video {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-hud-top {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > :is(.pf\:live-chat-stack, .pf\:live-gifts, .pf\:live-chat-jump) {
    left: 0;
    right: auto;
    width: min(18rem, 36vw);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: 0;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-chat-stack {
    bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
    max-height: 42dvh;
    opacity: 0.92;
  }
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) > .pf\:live-compose-bar {
    left: 0;
    right: auto;
    width: min(24rem, 48vw);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  }
  /* The narrow bar keeps room for typing: share goes. */
  .pf\:live-room[data-live-orientation="landscape"]:not(.has-guests, .is-in-panel) .pf\:live-bar-btn[aria-label="Share live"] { display: none; }
}

/* Full-screen button (live_fullscreen): only for landscape lives, enter or exit icon by state. */
.pf\:live-room:not([data-live-orientation="landscape"]) .pf\:live-fullscreen-btn { display: none; }
.pf\:live-fullscreen-btn .pf\:fs-exit,
.pf\:live-fullscreen-btn[aria-pressed="true"] .pf\:fs-enter { display: none; }
.pf\:live-fullscreen-btn[aria-pressed="true"] .pf\:fs-exit { display: block; }
.pf\:live-room.is-fullscreen { height: 100% !important; max-height: none !important; }
