/* Room chat for Spin With Friends. Passive overlay; does not affect wheel layout. */
.hero {
  position: relative;
}

.rt-room-chat {
  --rt-chat-bg: rgba(8, 12, 22, 0.78);
  --rt-chat-panel: rgba(15, 23, 42, 0.82);
  --rt-chat-line: rgba(255, 255, 255, 0.12);
  --rt-chat-text: rgba(255, 255, 255, 0.92);
  --rt-chat-soft: rgba(255, 255, 255, 0.62);
  --rt-chat-faint: rgba(255, 255, 255, 0.42);
  --rt-chat-green: #20c76a;
  --rt-chat-button-bg: #f8fafc;
  --rt-chat-button-bg-hover: #ffffff;
  --rt-chat-button-fg: #0f172a;
  --rt-chat-button-line: rgba(255, 255, 255, 0.18);
  --rt-chat-button-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  --rt-chat-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  left: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 3vh, 34px);
  z-index: 12;
  width: clamp(300px, 23vw, 420px);
  height: clamp(380px, 52vh, 620px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: clip;
  border: 1px solid var(--rt-chat-line);
  border-radius: 8px;
  background: var(--rt-chat-bg);
  color: var(--rt-chat-text);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  backface-visibility: hidden;
  contain: layout paint style;
  isolation: isolate;
  transform-origin: left bottom;
  transform: translate3d(0, 0, 0);
  will-change: width, height, transform, opacity;
  transition:
    width 0.34s var(--rt-chat-ease),
    height 0.34s var(--rt-chat-ease),
    border-radius 0.34s var(--rt-chat-ease),
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.34s var(--rt-chat-ease),
    opacity 0.2s ease;
  animation: rtRoomChatIn 0.18s ease both;
}

.rt-room-chat[hidden] {
  display: none !important;
}

html.sc-wheelresp-850 .rt-room-chat {
  width: clamp(290px, calc(var(--sc-wheelresp-entries-w, 320px) + 54px), 420px);
}

.rt-room-chat__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex: 0 0 auto;
  padding: 10px 11px;
  border-bottom: 1px solid var(--rt-chat-line);
  transition:
    height 0.34s var(--rt-chat-ease),
    padding 0.34s var(--rt-chat-ease),
    border-color 0.2s ease;
}

.rt-room-chat__title,
.rt-room-chat__live,
.rt-room-chat__messages,
.rt-room-chat__identity,
.rt-room-chat__jump,
.rt-room-chat__typing,
.rt-room-chat__emoji-row,
.rt-room-chat__composer {
  transition:
    opacity 0.16s ease,
    transform 0.22s var(--rt-chat-ease),
    visibility 0.16s ease;
}

.rt-room-chat__title,
.rt-room-chat__live {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.rt-room-chat__title {
  margin-right: auto;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.rt-room-chat__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--rt-chat-green);
  box-shadow: 0 0 0 5px rgba(32, 199, 106, 0.14);
}

.rt-room-chat__live {
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--rt-chat-soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

.rt-room-chat__live svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  stroke-width: 2.15;
}

.rt-room-chat__toggle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  margin-left: -2px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rt-chat-text);
  cursor: pointer;
  will-change: width, height, transform;
  transition:
    width 0.34s var(--rt-chat-ease),
    height 0.34s var(--rt-chat-ease),
    border-radius 0.34s var(--rt-chat-ease),
    border-color 0.24s ease,
    background-color 0.18s ease,
    box-shadow 0.24s ease,
    transform 0.18s ease;
}

.rt-room-chat__toggle:hover {
  background: rgba(255, 255, 255, 0.13);
}

.rt-room-chat__toggle:active {
  transform: translateY(1px);
}

.rt-room-chat__toggle:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: 2px;
}

.rt-room-chat__toggle-icon {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  transition: opacity 0.18s ease, transform 0.24s var(--rt-chat-ease);
}

.rt-room-chat__toggle-icon--chat {
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
}

.rt-room-chat__messages {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  align-content: start;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.rt-room-chat__messages::-webkit-scrollbar {
  width: 6px;
}

.rt-room-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}

.rt-room-chat__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.rt-room-chat__identity {
  position: absolute;
  inset: 51px 0 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 0;
  background: rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: rtRoomPromptIn 0.22s var(--rt-chat-ease) both;
}

.rt-room-chat__identity[hidden] {
  display: none;
}

.rt-room-chat__identity-card {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 13px;
  width: min(100%, 326px);
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(220px 140px at 84% -16%, rgba(32, 199, 106, 0.20), transparent 60%),
    radial-gradient(180px 120px at 10% 0%, rgba(59, 130, 246, 0.26), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(15, 23, 42, 0.94);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.rt-room-chat__identity-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(32, 199, 106, 0.20), transparent 34%, rgba(59, 130, 246, 0.20));
  opacity: 0.88;
  pointer-events: none;
}

.rt-room-chat__identity-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  min-width: 0;
}

.rt-room-chat__identity-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.25);
}

.rt-room-chat__identity-mark[data-role="owner"] {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.rt-room-chat__identity-mark svg {
  width: 25px;
  height: 25px;
}

.rt-room-chat__identity-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--rt-chat-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.rt-room-chat__identity-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rt-chat-green);
  box-shadow: 0 0 0 5px rgba(32, 199, 106, 0.14);
}

.rt-room-chat__identity-hero b {
  color: var(--rt-chat-text);
  font-size: 18px;
  font-weight: 880;
  line-height: 1.12;
}

.rt-room-chat__identity-hero span:not(.rt-room-chat__identity-mark):not(.rt-room-chat__identity-eyebrow) {
  max-width: 240px;
  color: var(--rt-chat-soft);
  font-size: 12px;
  line-height: 1.36;
}

.rt-room-chat__identity-field {
  display: block;
}

.rt-room-chat__identity-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.rt-room-chat__identity input,
.rt-room-chat__identity button {
  box-sizing: border-box;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}

.rt-room-chat__identity input {
  width: 100%;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rt-chat-text);
  outline: none;
  text-align: center;
  font-weight: 760;
}

.rt-room-chat__identity input::placeholder {
  color: var(--rt-chat-faint);
}

.rt-room-chat__identity input:focus {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.rt-room-chat__identity button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: var(--rt-chat-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease;
}

.rt-room-chat__identity-submit {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
}

.rt-room-chat__identity-submit:not(:disabled):hover {
  filter: brightness(1.05);
}

.rt-room-chat__identity button:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.18);
}

.rt-room-chat__identity button:disabled {
  cursor: default;
  opacity: 0.48;
  box-shadow: none;
}

.rt-room-chat__identity button:disabled:hover {
  border-color: rgba(255, 255, 255, 0.1);
  filter: none;
}

.rt-room-chat__identity button:active {
  transform: translateY(1px);
}

.rt-room-chat__identity button:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: 2px;
}

.rt-room-chat__guest {
  color: var(--rt-chat-text) !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.rt-room-chat.is-asking-identity .rt-room-chat__messages,
.rt-room-chat.is-asking-identity .rt-room-chat__jump,
.rt-room-chat.is-asking-identity .rt-room-chat__typing,
.rt-room-chat.is-asking-identity .rt-room-chat__emoji-row,
.rt-room-chat.is-asking-identity .rt-room-chat__composer {
  filter: blur(3px) saturate(0.88);
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}

.rt-room-chat__jump {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: calc(100% - 20px);
  min-height: 30px;
  margin: -2px 10px 8px;
  padding: 5px 9px 5px 11px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  animation: rtRoomJumpIn 0.2s var(--rt-chat-ease) both;
}

.rt-room-chat__jump[hidden] {
  display: none;
}

.rt-room-chat__jump:hover {
  background: rgba(29, 78, 216, 0.96);
}

.rt-room-chat__jump:active {
  transform: translateY(1px);
}

.rt-room-chat__jump:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.82);
  outline-offset: 2px;
}

.rt-room-chat__jump span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-room-chat__jump svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.rt-room-chat__typing {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 10px 8px;
  color: var(--rt-chat-faint);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  animation: rtRoomTypingIn 0.18s var(--rt-chat-ease) both;
}

.rt-room-chat__typing[hidden] {
  display: none;
}

.rt-room-chat__typing-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 35px;
  height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--rt-chat-panel);
}

.rt-room-chat__typing-bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.36;
  animation: rtRoomTypingDot 1.05s ease-in-out infinite;
}

.rt-room-chat__typing-bubble i:nth-child(2) {
  animation-delay: 0.14s;
}

.rt-room-chat__typing-bubble i:nth-child(3) {
  animation-delay: 0.28s;
}

.rt-room-chat__typing-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-room-chat__note {
  justify-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--rt-chat-faint);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 720;
}

.rt-room-chat__msg {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 92%;
  transform-origin: left bottom;
  will-change: opacity, transform;
}

.rt-room-chat__msg.is-new {
  animation: rtRoomMessageIn 0.28s var(--rt-chat-ease) both;
}

.rt-room-chat__msg--self.is-new {
  animation-name: rtRoomMessageInSelf;
  transform-origin: right bottom;
}

.rt-room-chat__msg p {
  margin: 0;
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--rt-chat-panel);
}

.rt-room-chat__msg b,
.rt-room-chat__msg span {
  overflow-wrap: anywhere;
}

.rt-room-chat__msg b {
  color: var(--rt-chat-text);
  font-size: 11px;
  line-height: 1.15;
}

.rt-room-chat__msg span {
  color: var(--rt-chat-soft);
  font-size: 12px;
  line-height: 1.25;
}

.rt-room-chat__text {
  white-space: pre-wrap;
}

.rt-room-chat__time {
  justify-self: end;
  margin-top: 2px;
  color: var(--rt-chat-faint);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.rt-room-chat__msg--self {
  justify-self: end;
  justify-content: flex-end;
}

.rt-room-chat__msg--self p {
  border-color: rgba(59, 130, 246, 0.24);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(14, 165, 233, 0.24));
}

.rt-room-chat__msg--self span {
  color: rgba(255, 255, 255, 0.82);
}

.rt-room-chat__msg--self .rt-room-chat__time {
  color: rgba(255, 255, 255, 0.58);
}

.rt-room-chat__avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #38bdf8);
  font-size: 11px;
  font-weight: 850;
}

.rt-room-chat__emoji-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 10px 0;
  border-top: 1px solid var(--rt-chat-line);
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.rt-room-chat__emoji-row button {
  min-width: 0;
  height: 25px;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.rt-room-chat__emoji-row button:not(:disabled):hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.16);
  transform: translateY(-1px);
}

.rt-room-chat__emoji-row button:not(:disabled):active {
  transform: translateY(1px) scale(0.96);
}

.rt-room-chat__emoji-row button:disabled {
  cursor: default;
  opacity: 0.44;
}

.rt-room-chat__emoji-row button:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: 2px;
}

.rt-room-chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 7px;
  padding: 7px 10px 10px;
  background: rgba(0, 0, 0, 0.16);
}

.rt-room-chat__composer input,
.rt-room-chat__composer button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rt-chat-text);
}

.rt-room-chat__composer input {
  height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  outline: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.rt-room-chat__composer input::placeholder {
  color: var(--rt-chat-faint);
}

.rt-room-chat__composer input:focus {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.rt-room-chat__composer button {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.rt-room-chat__composer button:not(:disabled):hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(96, 165, 250, 0.22);
}

.rt-room-chat__composer button:not(:disabled):active {
  transform: translateY(1px);
}

.rt-room-chat__composer button svg {
  width: 15px;
  height: 15px;
}

.rt-room-chat__composer input:disabled,
.rt-room-chat__composer button:disabled {
  cursor: default;
  opacity: 0.62;
}

html[data-theme="light"] .rt-room-chat {
  --rt-chat-bg: rgba(255, 255, 255, 0.82);
  --rt-chat-panel: rgba(241, 245, 249, 0.94);
  --rt-chat-line: rgba(15, 23, 42, 0.12);
  --rt-chat-text: rgba(15, 23, 42, 0.92);
  --rt-chat-soft: rgba(15, 23, 42, 0.64);
  --rt-chat-faint: rgba(15, 23, 42, 0.44);
  --rt-chat-button-bg: #0f172a;
  --rt-chat-button-bg-hover: #020617;
  --rt-chat-button-fg: #f8fafc;
  --rt-chat-button-line: rgba(15, 23, 42, 0.18);
  --rt-chat-button-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .rt-room-chat__composer {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .rt-room-chat__emoji-row {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .rt-room-chat__emoji-row button {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .rt-room-chat__emoji-row button:not(:disabled):hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(219, 234, 254, 0.72);
}

html[data-theme="light"] .rt-room-chat__identity {
  background: rgba(248, 250, 252, 0.12);
}

html[data-theme="light"] .rt-room-chat__identity-card {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(220px 140px at 84% -16%, rgba(34, 197, 94, 0.13), transparent 60%),
    radial-gradient(180px 120px at 10% 0%, rgba(59, 130, 246, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .rt-room-chat__identity-mark {
  border-color: rgba(22, 163, 74, 0.16);
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

html[data-theme="light"] .rt-room-chat__identity-mark[data-role="owner"] {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

html[data-theme="light"] .rt-room-chat__identity input,
html[data-theme="light"] .rt-room-chat__identity button {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .rt-room-chat__identity-submit {
  color: #fff !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
}

html[data-theme="light"] .rt-room-chat__guest {
  color: rgba(15, 23, 42, 0.74) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .rt-room-chat__identity input:focus {
  border-color: rgba(37, 99, 235, 0.36);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .rt-room-chat__typing-bubble {
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .rt-room-chat__jump {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .rt-room-chat__live {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--rt-chat-soft);
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .rt-room-chat__composer input,
html[data-theme="light"] .rt-room-chat__composer button {
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .rt-room-chat__composer input:focus {
  border-color: rgba(37, 99, 235, 0.36);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .rt-room-chat__toggle {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .rt-room-chat__toggle:hover {
  background: #fff;
}

.rt-room-chat.is-collapsed {
  width: 54px !important;
  min-height: 54px;
  height: 54px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: translate3d(0, 0, 0) scale(1);
  cursor: pointer;
}

.rt-room-chat.is-collapsed .rt-room-chat__head {
  height: 100%;
  padding: 0;
  gap: 0;
  align-items: center;
  justify-content: center;
  border-bottom-color: transparent;
}

.rt-room-chat.is-collapsed .rt-room-chat__title,
.rt-room-chat.is-collapsed .rt-room-chat__live,
.rt-room-chat.is-collapsed .rt-room-chat__messages,
.rt-room-chat.is-collapsed .rt-room-chat__identity,
.rt-room-chat.is-collapsed .rt-room-chat__jump,
.rt-room-chat.is-collapsed .rt-room-chat__typing,
.rt-room-chat.is-collapsed .rt-room-chat__emoji-row,
.rt-room-chat.is-collapsed .rt-room-chat__composer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-10px, 8px, 0) scale(0.96);
}

.rt-room-chat.is-collapsed .rt-room-chat__title,
.rt-room-chat.is-collapsed .rt-room-chat__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rt-room-chat.is-collapsed .rt-room-chat__messages,
.rt-room-chat.is-collapsed .rt-room-chat__identity,
.rt-room-chat.is-collapsed .rt-room-chat__jump,
.rt-room-chat.is-collapsed .rt-room-chat__typing,
.rt-room-chat.is-collapsed .rt-room-chat__emoji-row,
.rt-room-chat.is-collapsed .rt-room-chat__composer {
  position: absolute;
  inset: auto;
}

.rt-room-chat.is-collapsed .rt-room-chat__toggle {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  margin-left: 0;
  border-color: var(--rt-chat-button-line);
  border-radius: 999px;
  background: var(--rt-chat-button-bg);
  color: var(--rt-chat-button-fg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--rt-chat-button-shadow);
}

.rt-room-chat.is-collapsed .rt-room-chat__toggle:hover {
  background: var(--rt-chat-button-bg-hover);
}

.rt-room-chat.is-collapsed .rt-room-chat__toggle-icon--min {
  opacity: 0;
  transform: scale(0.68) rotate(8deg);
}

.rt-room-chat.is-collapsed .rt-room-chat__toggle-icon--chat {
  width: 24px;
  height: 24px;
  opacity: 1;
  transform: scale(1) rotate(0);
}

@media (max-width: 879.98px) {
  .rt-room-chat {
    display: none !important;
  }
}

@keyframes rtRoomChatIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rtRoomMessageIn {
  from {
    opacity: 0;
    transform: translate3d(-10px, 8px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rtRoomMessageInSelf {
  from {
    opacity: 0;
    transform: translate3d(10px, 8px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rtRoomTypingIn {
  from {
    opacity: 0;
    transform: translate3d(-8px, 5px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rtRoomPromptIn {
  from {
    opacity: 0;
    transform: translate3d(0, 7px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rtRoomJumpIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rtRoomTypingDot {
  0%,
  80%,
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(0.86);
  }

  40% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-room-chat,
  .rt-room-chat__msg.is-new,
  .rt-room-chat__identity,
  .rt-room-chat__jump,
  .rt-room-chat__typing {
    animation: none;
  }

  .rt-room-chat__typing-bubble i {
    animation: none;
    opacity: 0.62;
  }

  .rt-room-chat,
  .rt-room-chat__toggle,
  .rt-room-chat__toggle-icon,
  .rt-room-chat__title,
  .rt-room-chat__live,
  .rt-room-chat__messages,
  .rt-room-chat__identity,
  .rt-room-chat__jump,
  .rt-room-chat__typing,
  .rt-room-chat__emoji-row,
  .rt-room-chat__composer {
    transition-duration: 0.01ms;
  }
}
