:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-2: #172033;
  --line: rgba(255,255,255,0.10);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #4b5563;
  --blue-2: #374151;
  --logo-blue: #017ffe;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 22px 70px rgba(0,0,0,0.38);
  --video2-green: #48b589;
  --video2-green-dark: #44ac82;
  --video2-red: #ef6c44;
  --video2-red-dark: #e36641;
  --video2-gray: #fafafa;
  --video2-gray-dark: #dbdbdb;
  --video2-gray-text: #5f5f5f;
}

* { box-sizing: border-box; }
html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "PT Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

a { color: inherit; }

#main.app-container {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px);
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "videos messages";
  background: var(--bg);
}

#top-bar.app-header {
  grid-area: header;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,16,32,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.logo-image {
  height: 42px;
  width: auto;
  display: block;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.online-counter {
  position: relative;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: default;
  white-space: nowrap;
}

.online-text {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.online-text span { color: inherit; }
.remote-start-online #remoteStartOnlineNumber {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.online-details.hidden { display: none; }

.online-number-char {
  display: inline-block;
  text-align: center;
}

.online-number-digit {
  min-width: .58em;
}

.online-number-separator {
  min-width: 0;
  width: auto;
  padding: 0 .01em;
}

.online-number-char.online-number-change {
  display: inline-block;
  transform-origin: center;
  will-change: transform, opacity;
}

.online-number-char.online-number-change.online-number-up {
  animation: online-number-tick-up 520ms cubic-bezier(.2, .82, .28, 1);
}

.online-number-char.online-number-change.online-number-down {
  animation: online-number-tick-down 520ms cubic-bezier(.2, .82, .28, 1);
}

.mobile-swipe-hint {
  display: none;
}

.mobile-cube-logo-main {
  display: none;
}

@media (pointer: fine), (hover: hover) {
  .mobile-swipe-hint,
  .mobile-cube-logo-main {
    display: none;
  }
}

.mobile-control-policy {
  display: none;
}

.mobile-quick-emojis {
  display: none;
}

@keyframes online-number-tick-up {
  0% {
    opacity: 0;
    color: #22c55e;
    transform: translateY(.85em) scale(.92);
  }
  52% {
    opacity: 1;
    color: #22c55e;
    transform: translateY(-.08em) scale(1.04);
  }
  100% {
    opacity: 1;
    color: inherit;
    transform: translateY(0) scale(1);
  }
}

@keyframes online-number-tick-down {
  0% {
    opacity: 0;
    color: #ef4444;
    transform: translateY(-.85em) scale(.92);
  }
  52% {
    opacity: 1;
    color: #ef4444;
    transform: translateY(.08em) scale(1.04);
  }
  100% {
    opacity: 1;
    color: inherit;
    transform: translateY(0) scale(1);
  }
}

@keyframes video2-ready-fade-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cube-dot-fwd {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(var(--dx));
  }
  3% {
    opacity: 1;
  }
  16.67% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(calc(-1 * var(--dx)));
  }
  20%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(calc(-1 * var(--dx)));
  }
}

@keyframes cube-dot-back {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(calc(-1 * var(--dx)));
  }
  3% {
    opacity: 1;
  }
  16.67% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(var(--dx));
  }
  20%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(var(--dx));
  }
}

@keyframes cube-trail {
  0%, 16.67%, 100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(.25);
  }
  2% {
    opacity: .8;
    transform: translateY(-50%) scaleX(.6);
  }
  5%, 14% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes cube-label-fwd {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), -50%);
  }
  16.67% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  25%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

@keyframes cube-label-back {
  0% {
    opacity: 0;
    transform: translate(calc(-50% - var(--dx)), -50%);
  }
  16.67% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  25%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

@keyframes cube-rotate {
  0% {
    transform: translateZ(calc(-1 * var(--half))) rotateY(0);
  }
  16.67%, 25% {
    transform: translateZ(calc(-1 * var(--half))) rotateY(-90deg);
  }
  41.67%, 50% {
    transform: translateZ(calc(-1 * var(--half))) rotateY(-180deg);
  }
  66.67%, 75% {
    transform: translateZ(calc(-1 * var(--half))) rotateY(-270deg);
  }
  91.67%, 100% {
    transform: translateZ(calc(-1 * var(--half))) rotateY(-180deg);
  }
}

@keyframes cube-face-3-hide {
  0%, 74% {
    opacity: 1;
  }
  76%, 100% {
    opacity: 0;
  }
}

@keyframes cube-face-stop-show {
  0%, 74% {
    opacity: 0;
  }
  76%, 100% {
    opacity: 1;
  }
}

@keyframes typing-dot {
  0%, 80%, 100% {
    opacity: .32;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .online-number-char.online-number-change {
    animation: none;
  }
  .typing-dots span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.headerMenu { position: relative; }
.headerMenuBtn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}

.hamburger,
.hamburger span {
  display: block;
}

.hamburger span {
  width: 18px;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: currentColor;
}

.headerMenuPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,23,42,0.96);
  box-shadow: var(--shadow);
}

.headerMenu.open .headerMenuPanel,
.headerMenuBtn[aria-expanded="true"] + .headerMenuPanel {
  display: grid;
  gap: 4px;
}

.menuItem {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.menuItem:hover { background: rgba(255,255,255,0.08); }
.premium-link-icon { width: 16px; height: 16px; }

#mobilePremiumControl,
#video2PremiumTile,
#video2SettingsTile {
  display: none;
}

#videos.video-section {
  grid-area: videos;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  padding: 14px;
}

.video-container {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #202020;
}

.video-container-peer-clip {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #020202;
  contain: paint;
}

.video-container-peer {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: none;
  isolation: isolate;
  background: #020202 url("/tv-static-dark.gif") center / cover repeat;
}

.video-container-peer.disconnected .video-player {
  opacity: 0;
}

body:not(.video2-remote-active) .video-container-peer .video-player {
  opacity: 0 !important;
  z-index: 0 !important;
}

.peer-static-gif {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 1;
  pointer-events: none;
}

.video-container-peer.disconnected .peer-static-gif,
body:not(.video2-remote-active) .video-container-peer .peer-static-gif {
  opacity: 1;
}

body.video2-remote-active .peer-static-gif {
  opacity: 0;
}

.video-container-peer.disconnected::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #191919 url("/tv-static-dark.gif") center / cover repeat;
  filter: grayscale(1);
  animation: video2-static-jitter .18s steps(2, end) infinite;
}

@keyframes video2-static-jitter {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1px, 1px, 0); }
  100% { transform: translate3d(1px, -1px, 0); }
}

@media (min-width: 521px) {
  .video-container-peer:not(.disconnected)::before,
  .video-container-peer:not(.disconnected)::after,
  body.video2-remote-active .video-container-peer::before,
  body.video2-remote-active .video-container-peer::after {
    content: none;
  }

  #disconnected-overlay {
    background: transparent;
  }

  #disconnected-overlay.active {
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    row-gap: 18px;
  }

  #disconnected-overlay.active[data-state="ready"] .remote-start-logo-link,
  #disconnected-overlay.active[data-state="media-permission"] .remote-start-logo-link {
    display: block;
    grid-row: 1;
  }

  #disconnected-overlay.active[data-state="ready"] .remote-start-online,
  #disconnected-overlay.active[data-state="media-permission"] .remote-start-online {
    display: inline-flex;
    grid-row: 2;
    margin-top: 0;
  }

  #top-bar.app-header .online-counter {
    display: none;
  }
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #202020;
}

.mirror { transform: scaleX(-1); }

.peer-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(22px) saturate(1.15);
  opacity: 0.24;
  transform: scale(1.08);
}

.video-player-peer {
  position: relative;
  z-index: 1;
}

#disconnected-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-content: center;
  justify-items: center;
  background: rgba(0,0,0,0.42);
  text-align: center;
}

#disconnected-overlay.active { display: grid; }

.captcha-challenge {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 17, 21, 0.9);
}
.captcha-challenge[hidden] { display: none; }
.captcha-challenge-panel {
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #20242b;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  text-align: center;
}
.captcha-challenge-title { font-size: 18px; font-weight: 900; }
.captcha-challenge-copy { margin: 5px 0 14px; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.4; }
.captcha-widget { min-height: 65px; display: flex; justify-content: center; }
.captcha-challenge-status { min-height: 18px; margin-top: 8px; color: #fbbf24; font-size: 12px; font-weight: 800; }

@media (max-width: 520px) {
  .captcha-challenge { place-items: center; padding: 10px; }
  .captcha-challenge-panel { padding: 12px; }
  .captcha-challenge-title { font-size: 15px; }
  .captcha-challenge-copy { margin-bottom: 9px; font-size: 11px; }
}

#disconnected-overlay.active:not([data-state="ready"]):not([data-state="media-permission"]) .remote-start-logo-link,
#disconnected-overlay.active:not([data-state="ready"]):not([data-state="media-permission"]) .remote-start-online {
  display: none !important;
}

#disconnected-overlay.active[data-state="searching"] .disconnected-overlay-copy,
#disconnected-overlay.active[data-state="connecting"] .disconnected-overlay-copy,
#disconnected-overlay.active[data-state="media-permission"] .disconnected-overlay-copy {
  display: none !important;
}

.local-media-permission {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  pointer-events: none;
  text-align: center;
}
.local-media-permission[hidden] { display: none; }
.local-media-permission-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  max-width: 92%;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.55);
  pointer-events: auto;
}
.local-media-permission-box span {
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.4;
  max-width: 420px;
}
.media-permission-retry {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: #2f7cf6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}
.media-permission-retry:hover { background: #4a8cf7; }
.media-permission-retry:active { transform: scale(.98); }

#messages .local-media-permission {
  position: static;
  inset: auto;
  z-index: auto;
  flex: 0 0 auto;
  padding: 8px 12px;
}

#messages .local-media-permission-box {
  max-width: 100%;
}

#disconnected-overlay.active:not([data-state="ready"]) .mobile-swipe-hint,
#disconnected-overlay.active:not([data-state="ready"]) .remote-start-share,
body.video2-loading .mobile-swipe-hint,
body.video2-searching .mobile-swipe-hint,
body.video2-media-denied .mobile-swipe-hint,
body.video2-connected .mobile-swipe-hint {
  display: none !important;
}

.remote-start-share {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 8;
  width: min(calc(100% - 28px), 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.remote-start-share-link {
  --share-accent: #64748b;
  min-width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 12px 0 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.46);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.remote-start-share-link[data-share="facebook"] { --share-accent: #1877f2; }
.remote-start-share-link[data-share="x"] { --share-accent: #111827; }
.remote-start-share-link[data-share="reddit"] { --share-accent: #ff4500; }
.remote-start-share-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--share-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.remote-start-share-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.remote-start-share-name {
  white-space: nowrap;
}

.remote-start-share-link:hover,
.remote-start-share-link:focus-visible {
  background: rgba(17,24,39,.78);
  border-color: rgba(255,255,255,.34);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .remote-start-share {
    left: 50%;
    right: auto;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    bottom: auto;
    width: max-content;
    max-width: calc(100% - 20px);
    justify-content: center;
    gap: 6px;
    overflow: visible;
    overscroll-behavior-x: auto;
    padding: 0 0 5px;
    transform: translateX(-50%);
    filter: none !important;
    pointer-events: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .remote-start-share::-webkit-scrollbar {
    display: none;
  }

  .remote-start-share-link {
    width: 38px;
    min-width: 38px;
    height: 38px;
    gap: 0;
    padding: 0;
    filter: none !important;
    pointer-events: auto;
  }

  .remote-start-share-icon {
    width: 24px;
    height: 24px;
    filter: none !important;
  }

  .remote-start-share-icon svg {
    width: 16px;
    height: 16px;
  }

  .remote-start-share-name {
    display: none;
  }
}

.remote-start-logo-link {
  display: none;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.remote-start-logo {
  display: block;
  width: min(340px, 40vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.5));
  pointer-events: none;
}

#disconnected-overlay.active[data-state="ready"] .remote-start-logo-link,
#disconnected-overlay.active[data-state="ready"] .remote-start-online,
#disconnected-overlay.active[data-state="media-permission"] .remote-start-logo-link,
#disconnected-overlay.active[data-state="media-permission"] .remote-start-online {
  animation: video2-ready-fade-in 180ms ease both;
}

.remote-start-online {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
  pointer-events: none;
}

.remote-start-online::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #36d271;
  box-shadow: 0 0 0 2px rgba(54,210,113,.2), 0 0 12px rgba(54,210,113,.55);
}

.disconnected-overlay-copy {
  max-width: 360px;
  padding: 22px;
}

.disconnected-text {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.disconnected-subtext {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.video-loader,
.video-loader-text {
  position: absolute;
  z-index: 5;
  display: none;
}

.video-loader {
  width: 58px;
  height: 58px;
  left: calc(50% - 29px);
  top: calc(50% - 29px);
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.22);
  border-top-color: #fff;
  animation: spin 900ms linear infinite;
}

.video-loader-text {
  left: 50%;
  top: calc(50% + 44px);
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(1,127,254,.95);
  background: rgba(1,127,254,.36);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(1,127,254,.18),
    0 0 20px rgba(1,127,254,.42),
    0 8px 24px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes spin { to { transform: rotate(360deg); } }

.watermark {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.76;
  pointer-events: none;
  object-fit: contain;
  display: none;
}

.video-controls-peer {
  position: absolute;
  z-index: 32;
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  display: none;
  gap: 8px;
  pointer-events: auto;
}

.control-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  background: rgba(15,23,42,0.58);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

body.video2-remote-active .video-controls-peer {
  display: none;
}

#report-btn.control-btn-report,
#device-settings-btn.control-btn-settings {
  width: auto;
  min-width: 112px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(12,18,32,0.66);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  filter: drop-shadow(0 2px 7px rgba(0,0,0,.55));
}

#report-btn.control-btn-report svg,
#device-settings-btn.control-btn-settings svg {
  flex: 0 0 auto;
}

.control-btn-report:hover { background: rgba(24,31,45,0.82); color: #ff6b6b; }
.control-btn-mute:hover,
.control-btn-settings:hover { background: rgba(75,85,99,0.76); }
.mute-icon-off { display: none; }
.control-btn-mute.muted .mute-icon-on { display: none; }
.control-btn-mute.muted .mute-icon-off { display: block; }

.peer-audio-control {
  position: absolute;
  inset: 0;
  z-index: 31;
  display: none;
  pointer-events: none;
}

.peer-audio-mark {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 200px;
  height: 84px;
  pointer-events: auto;
  cursor: pointer;
  opacity: .62;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.42));
}

.peer-audio-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.34) 72%, transparent);
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 180ms ease, opacity 140ms ease;
}

.peer-audio-control.is-open .peer-audio-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.peer-audio-control.is-open {
  pointer-events: auto;
}

.video2-vote-panel {
  position: absolute;
  z-index: 34;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10,15,26,.54);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: bottom 180ms ease, opacity 220ms ease, transform 220ms ease, background 180ms ease, box-shadow 180ms ease;
}

.peer-audio-control.is-open ~ .video2-vote-panel {
  bottom: 68px;
}

.peer-audio-control.is-open ~ .video2-session-timer {
  bottom: 68px;
}

.video2-session-timer {
  position: absolute;
  z-index: 34;
  left: 14px;
  bottom: 14px;
  display: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  pointer-events: none;
  transition: bottom 180ms ease, opacity 140ms ease, background 180ms ease, color 180ms ease;
}

body.video2-remote-active .video2-session-timer {
  display: block;
}

.remote-country-flag {
  position: absolute;
  z-index: 35;
  right: 14px;
  top: 14px;
  min-width: 42px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10,15,26,.52);
  color: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  overflow: hidden;
}

body.video2-remote-active .remote-country-flag.has-country {
  display: flex;
}

.remote-country-flag.country-flag-image {
  width: 42px;
  min-width: 42px;
  border-radius: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 0;
}

body.video2-remote-active .video2-vote-panel {
  display: inline-flex;
}

.video2-vote-panel.is-hidden-after-vote {
  opacity: 0;
  transform: translateY(6px) scale(.96);
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.video2-vote-panel.is-hidden-after-vote .video2-score-pill,
.video2-vote-panel.is-hidden-after-vote .video2-vote-btn {
  pointer-events: none;
}

.video2-vote-panel.is-vote-change-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video2-score-pill {
  min-width: 26px;
  padding: 0 3px;
  height: 30px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
}

.video2-score-pill .video2-rep-icon {
  width: 17px;
  height: 17px;
  display: none;
}

.video2-score-pill.is-positive .video2-rep-good { display: block; }
.video2-score-pill.is-negative .video2-rep-bad { display: block; }
.video2-score-pill.is-neutral .video2-rep-none {
  display: block;
  opacity: .6;
}

.video2-score-pill.is-positive { color: #22c55e; }
.video2-score-pill.is-negative { color: #ef4444; }

.video2-vote-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.video2-vote-btn:hover {
  background: transparent;
  transform: translateY(-1px);
}

.video2-vote-btn:focus,
.video2-vote-btn:active {
  outline: none;
}

.video2-vote-btn:focus:not(:focus-visible) {
  background: transparent;
}

.video2-vote-btn.is-selected:focus:not(:focus-visible).video2-vote-up,
.video2-vote-btn.is-selected.video2-vote-up {
  background: rgba(34,197,94,.86);
  color: #fff;
}

.video2-vote-btn.is-selected:focus:not(:focus-visible).video2-vote-down,
.video2-vote-btn.is-selected.video2-vote-down {
  background: rgba(239,68,68,.88);
  color: #fff;
}

.video2-vote-btn.is-vote-pressing {
  animation: video2-vote-press 260ms cubic-bezier(.18,.9,.24,1.25);
}

.video2-vote-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes video2-vote-press {
  0% { transform: scale(1); }
  38% { transform: scale(.82); }
  72% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.peer-volume-slider {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  accent-color: #fff;
  cursor: pointer;
}

.peer-audio-control .control-btn-mute {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.34);
  box-shadow: none;
  color: #fff;
  pointer-events: auto;
}

.peer-audio-control .control-btn-mute svg {
  width: 21px;
  height: 21px;
}

.peer-audio-control {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  body.video2-remote-active .video-container-peer:hover .video-controls-peer,
  body.video2-remote-active .video-controls-peer:focus-within {
    display: flex;
  }

  .video-container-peer:hover .peer-audio-panel,
  .peer-audio-control:focus-within .peer-audio-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .video-container-peer:hover .video2-vote-panel,
  .peer-audio-control:focus-within ~ .video2-vote-panel {
    bottom: 68px;
  }

  .video-container-peer:hover .video2-session-timer,
  .peer-audio-control:focus-within ~ .video2-session-timer {
    bottom: 68px;
  }

  body.video2-hover-idle.video2-remote-active .video-container-peer:hover .video-controls-peer:not(:focus-within) {
    display: none !important;
  }

  body.video2-hover-idle .video-container-peer:hover .peer-audio-panel:not(:focus-within) {
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
  }

  body.video2-hover-idle .video-container-peer:hover .video2-vote-panel {
    bottom: 14px;
  }

  body.video2-hover-idle .video-container-peer:hover .video2-session-timer {
    bottom: 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  body.video2-remote-active .peer-audio-control.is-open .peer-audio-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.webcam-label-container {
  position: absolute;
  z-index: 7;
  left: 16px;
  top: 16px;
  max-width: calc(100% - 150px);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(15,23,42,0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-container-self {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 9;
  width: clamp(190px, 20vw, 270px);
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.44);
}

.local-settings-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.device-label { display: none; }
#device-settings-btn {
  pointer-events: auto;
}

.video-container-self:hover .local-settings-overlay,
.local-settings-overlay:focus-within {
  opacity: 1;
  pointer-events: auto;
}

body.video2-hover-idle .video-container-self:hover .local-settings-overlay:not(:focus-within) {
  opacity: 0 !important;
  pointer-events: none !important;
}

#message-area.message-section {
  grid-area: messages;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: rgba(15,23,42,0.94);
}

#chat-controls.chat-controls {
  min-width: 0;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#connectStatus.connect-status {
  display: none;
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.72);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  opacity: 1;
  transition: opacity 220ms ease;
}

#connectStatus.connect-status.is-fading {
  opacity: 0;
}

#connectStatus.connect-status .search-status-dots {
  display: inline-flex;
  width: 1.25em;
  margin-left: 2px;
  vertical-align: baseline;
}

#connectStatus.connect-status .search-status-dots span {
  opacity: 0.25;
  animation: searchStatusDot 1.2s ease-in-out infinite;
}

#connectStatus.connect-status .search-status-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

#connectStatus.connect-status .search-status-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes searchStatusDot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-1px); }
}

.chat-controls-bar {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
}

.chat-controls-grid,
.chat-control,
.chat-control-match,
.chat-control-auto {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-items: center;
}

.chat-controls-grid { grid-template-columns: minmax(0, 1fr); }
.chat-control-match { grid-template-columns: auto minmax(0, 1fr) auto; }
.chat-control-match::before {
  content: "Match";
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.chat-control-auto { grid-template-columns: auto minmax(0, 1fr); }
.chat-select-wrap { min-width: 0; }
.chat-select-wrap::before { content: none; }
.video2-country-popover { display: none; }
.chat-control-select,
.chat-control-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(2,6,23,0.52);
  color: var(--text);
  outline: none;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.chat-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-toggle-ui {
  width: 38px;
  height: 22px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.12);
}

.chat-toggle-ui::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  transition: transform 160ms ease;
}

.chat-toggle-input:checked + .chat-toggle-ui { background: rgba(34,197,94,0.74); }
.chat-toggle-input:checked + .chat-toggle-ui::after { transform: translate(16px, -50%); }
.control-emoji { display: none; }

.gender-avatar-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  box-sizing: content-box;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  object-fit: contain;
  vertical-align: -0.12em;
}

.message-policy-notice::before {
  content: none !important;
  display: none !important;
}

#messages.messages-container {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 12px;
  scroll-padding-bottom: 12px;
}

@media (min-width: 521px) {
  #messages.messages-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #messages.messages-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

.message {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.message.you,
.message .you {
  align-self: flex-end;
  color: #f3f4f6;
  font-weight: 800;
}

.message-stranger,
.message .strange {
  color: #e2e8f0;
  font-weight: 800;
}

.message-system,
.message-status,
.message-typing {
  align-self: center;
  max-width: 100%;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.post-disconnect-actions {
  align-self: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

#input-area.input-section {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,16,32,0.82);
}

.input-wrapper {
  min-width: 0;
  display: flex;
  align-items: center;
}

.message-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  outline: none;
}

.message-input::placeholder { color: rgba(226,232,240,0.48); }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.button-primary,
.button-send {
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

.mobile-chat-icon {
  display: none;
}

.button-secondary {
  background: rgba(255,255,255,0.10);
  color: var(--text);
}

.button-skip {
  background: linear-gradient(180deg, #fb7185, var(--red));
  box-shadow: 0 12px 26px rgba(239,68,68,0.24);
}

.button-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: absolute;
  inset: 0;
  z-index: 3;
  color: #fff;
  pointer-events: none;
}

.button-loader span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: buttonLoaderJump 720ms ease-in-out infinite;
}

.button-loader span:nth-child(2) {
  animation-delay: 120ms;
}

.button-loader span:nth-child(3) {
  animation-delay: 240ms;
}

#skip-btn.is-loading .button-label {
  opacity: 0;
}

#skip-btn.is-loading .button-loader {
  display: inline-flex;
}

@keyframes buttonLoaderJump {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.keyboard-hint {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,0.72);
}

.modal[style*="block"] { display: flex !important; }

.modal-content {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: #111827;
  color: var(--text);
  padding: 18px;
  box-shadow: var(--shadow);
}

.device-settings-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  pointer-events: none;
  background: transparent;
}

.device-settings-drawer.open {
  pointer-events: auto;
}

.device-settings-drawer .device-modal-v2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(33vw, 430px);
  min-width: 340px;
  max-height: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background: rgba(25,25,25,.92);
  color: var(--text);
  padding: 0;
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(1.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.22);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.device-settings-drawer.open .device-modal-v2 {
  transform: translateX(0);
}

.close,
.deviceModalCloseBtn,
.report-modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.deviceModalHeader,
.report-modal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.device-settings-drawer .deviceModalHeader {
  margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
}

.device-settings-drawer #device-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0;
}

.deviceModalSub {
  margin-top: 5px;
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  line-height: 1.35;
}

.device-settings-drawer .deviceModalCloseBtn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 20px;
  line-height: 1;
}

.device-settings-drawer .deviceModalCloseBtn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.deviceModalBody {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.deviceModalBody::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.safety-info-drawer .device-modal-v2 {
  grid-template-rows: auto auto 1fr;
}

.safety-info-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 0;
}

.safety-info-tab {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.safety-info-tab.is-active {
  border-color: rgba(62,135,247,.72);
  background: linear-gradient(180deg, #89bbf9 0%, #3e87f7 100%);
  color: #fff;
}

.safety-info-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.safety-info-panel {
  display: none;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}

.safety-info-panel.is-active {
  display: block;
}

.safety-info-panel h3 {
  margin: 14px 0 7px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.safety-info-panel h3:first-child {
  margin-top: 0;
}

.safety-info-panel p {
  margin: 0 0 10px;
}

.safety-info-panel ul {
  margin: 0;
  padding-left: 18px;
}

.safety-info-panel li {
  margin: 0 0 8px;
}

.premium-drawer {
  --premium-bg: #101010;
  --premium-surface: #1b1b1b;
  --premium-surface-raised: #211f1c;
  --premium-border: #353535;
  --premium-gold: #ffb703;
  --premium-gold-bright: #ffca3a;
  --premium-gold-soft: #ffd76a;
  --premium-coral: #ff7468;
  --premium-green: #42ce91;
  --premium-text: #f7f5f0;
  --premium-muted: #aaa7a1;
}

.premium-drawer .device-modal-v2 {
  height: 100vh;
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  border-left-color: var(--premium-border);
  background: rgba(16,16,16,0.98);
  color: var(--premium-text);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.premium-drawer .deviceModalHeader {
  border-bottom-color: var(--premium-border);
  background: #151515;
}

.premium-drawer .deviceModalHeader h2 {
  margin: 0;
  color: var(--premium-gold-soft);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.premium-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  background: var(--premium-bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,183,3,0.52) transparent;
}

.premium-body::-webkit-scrollbar {
  width: 8px;
}

.premium-body::-webkit-scrollbar-track {
  background: transparent;
}

.premium-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255,183,3,0.52);
  background-clip: padding-box;
}

.premium-drawer .deviceModalHeader,
.premium-drawer-footer {
  min-height: 0;
  flex-shrink: 0;
}

.premium-hero {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid #504633;
  border-radius: 12px;
  background: var(--premium-surface-raised);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
}

.premium-badge-row {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #725b20;
  border-radius: 8px;
  background: #342b16;
  color: var(--premium-gold-soft);
  font-size: 12px;
  font-weight: 800;
}

.premium-badge-row img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: contain;
}

.premium-price {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-top: 14px;
  min-height: 40px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  overflow: visible;
  color: var(--premium-text);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.premium-price strong {
  font: inherit;
  color: inherit;
  display: block;
  line-height: 1.08;
  white-space: nowrap;
}

.premium-price span {
  min-width: 0;
  max-width: 100%;
  color: var(--premium-gold-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.premium-hero p,
.premium-note {
  color: var(--premium-muted);
  font-size: 13px;
  line-height: 1.4;
}

.premium-hero p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 9px 0 0;
  color: #b8b2a8;
}

.premium-plan-card {
  padding: 2px 3px 4px;
}

.premium-plan-card h3 {
  margin: 0 0 10px;
  color: var(--premium-text);
  font-size: 14px;
  line-height: 1.2;
}

.premium-feature-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-feature {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 7px;
  border-bottom: 1px solid rgba(53,53,53,0.90);
}

.premium-feature:last-child {
  border-bottom: 0;
}

.premium-feature-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,183,3,0.26);
  background: rgba(255,183,3,0.11);
  color: var(--premium-gold-bright);
  font-size: 14px;
  font-weight: 900;
}

.premium-feature strong {
  display: block;
  color: var(--premium-text);
  font-size: 13px;
  line-height: 1.25;
}

.premium-feature small {
  display: block;
  margin-top: 2px;
  color: var(--premium-muted);
  font-size: 12px;
  line-height: 1.35;
}

.premium-restore-card {
  border-top: 1px solid var(--premium-border);
  padding: 11px 3px 2px;
}

.premium-terms-card {
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid var(--premium-border);
  padding: 11px 3px 2px;
}

.premium-restore-card summary,
.premium-terms-card summary {
  color: var(--premium-coral);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.premium-restore-content,
.premium-terms-content {
  padding-top: 10px;
}

.premium-restore-card p {
  margin: 0 0 9px;
  color: var(--premium-muted);
  font-size: 12px;
  line-height: 1.35;
}

.premium-terms-content p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 11px;
  line-height: 1.4;
}

.premium-terms-price {
  min-width: 0;
  max-width: 100%;
  margin: 5px 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 5px;
  color: #c2beb7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.premium-renewal-amount {
  flex: 0 0 auto;
  white-space: nowrap;
}

.premium-renewal-period {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.premium-restore-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.premium-restore-input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--premium-border);
  border-radius: 10px;
  background: #151515;
  color: var(--premium-text);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.premium-restore-input::placeholder {
  color: #77736d;
}

.premium-restore-input:focus {
  border-color: var(--premium-coral);
  box-shadow: 0 0 0 3px rgba(255,116,104,0.14);
}

.premium-restore-btn {
  min-height: 38px;
  border: 1px solid rgba(255,116,104,0.46);
  border-radius: 10px;
  background: rgba(255,116,104,0.12);
  color: #ffb1aa;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.premium-restore-btn:hover {
  background: rgba(255,116,104,0.21);
  color: #fff;
}

.premium-drawer-footer {
  display: grid;
  gap: 9px;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid var(--premium-border);
  background: #151515;
}

.premium-primary-btn,
.premium-secondary-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.premium-primary-btn {
  min-height: 48px;
  background: var(--premium-gold);
  color: #241a00;
  box-shadow: 0 9px 24px rgba(255,183,3,0.24);
}

.premium-primary-btn:hover:not(:disabled) {
  background: var(--premium-gold-bright);
  transform: translateY(-1px);
}

.premium-primary-btn:disabled {
  cursor: default;
  opacity: 0.68;
}

.premium-secondary-btn {
  border: 1px solid var(--premium-border);
  background: var(--premium-surface);
  color: #dedbd5;
}

.premium-secondary-btn:hover:not(:disabled) {
  border-color: #505050;
  background: #252525;
  color: #fff;
}

.premium-note {
  min-height: 18px;
  min-width: 0;
  text-align: center;
  margin: 0;
  color: var(--premium-muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.premium-note.is-trust {
  text-align: center;
}

.premium-trust-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.premium-note:not(.is-trust) .premium-trust-content,
.premium-note.is-trust .premium-status-text {
  display: none;
}

.premium-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  white-space: nowrap;
}

.premium-trust-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  color: var(--premium-gold-soft);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-trust-item:nth-child(2) svg {
  color: var(--premium-green);
}

.premium-trust-item span {
  min-width: 0;
  color: var(--premium-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#device-camera-preview-wrap[style*="display:none"],
#device-camera-preview-wrap[style*="display: none"] {
  display: none !important;
}

.deviceCard,
.report-field,
.safetyNoticeLead,
.safetyNoticeCopy,
.report-modal-alert {
  margin: 0;
}

.deviceCard {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
}

.deviceCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.deviceCardLabel {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.deviceCardValue {
  max-width: 100%;
  margin-top: 4px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.deviceSelect,
#reportType,
#reportReason {
  width: 100%;
  margin-top: 0;
  padding: 10px 36px 10px 11px;
  border: 1px solid rgba(82,142,225,0.26);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(62,135,247,0.16), rgba(62,135,247,0) 42%),
    rgba(8,13,24,0.58);
  color: var(--text);
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.deviceSelect:focus {
  border-color: rgba(137,187,249,0.72);
  box-shadow: 0 0 0 3px rgba(62,135,247,0.15);
}

.deviceSelectWrap {
  position: relative;
  min-width: 0;
}

.deviceSelectWrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(137,187,249,0.9);
  border-bottom: 2px solid rgba(137,187,249,0.9);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.deviceSelectWrap:focus-within::after {
  border-color: #89bbf9;
}

.deviceSelect option {
  background: #111827;
  color: #f8fafc;
}

.interestSettingsCard .deviceSelectWrap::after {
  display: none;
}

.interestInput {
  padding-right: 11px;
}

.interestChips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.interestChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(62,135,247,0.18);
  color: #eaf3ff;
  font-size: 12px;
  line-height: 1;
}

.interestChip button {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.deviceMeter {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.deviceMeterLabel {
  margin-bottom: 7px;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
}

.mic-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mic-level-bar {
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.mic-level-fill {
  width: 0%;
  height: 100%;
  background: var(--green);
}

.mic-level-text {
  width: 36px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  text-align: right;
}

.deviceModalNote {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.4;
}

.deviceSettingRow {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
}

.languageSettingRow {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.languageSettingRow .deviceSelectWrap {
  width: 100%;
}

.deviceSettingsSection {
  display: grid;
  gap: 8px;
}

.deviceSettingsSection + .deviceSettingsSection {
  margin-top: 4px;
}

.deviceSettingsSectionTitle {
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.deviceSettingButton {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.deviceSettingToggle {
  cursor: pointer;
  user-select: none;
}

.hotkeyCap {
  flex: 0 0 auto;
  min-width: 62px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9px;
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.28);
  transition: border-color .12s ease, background .12s ease;
}

.hotkeyCap:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.34);
}

.hotkeyCap.is-capturing {
  color: #93c5fd;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.16);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.22);
  animation: hotkeyCapPulse 1.1s ease-in-out infinite;
}

@keyframes hotkeyCapPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59,130,246,0.22); }
  50% { box-shadow: 0 0 0 3px rgba(59,130,246,0.40); }
}

.hotkeyCap.is-conflict {
  border-color: #ef4444;
  color: #fca5a5;
  animation: hotkeyCapShake .28s ease;
}

@keyframes hotkeyCapShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.hotkeyNote {
  margin-top: 2px;
  line-height: 1.4;
}

/* Keyboard shortcuts are desktop-only — hide the whole section on the
   mobile layout, which has no physical keyboard. */
@media (max-width: 520px) {
  #hotkeySettingsSection { display: none !important; }
}

.hotkeyResetBtn {
  justify-self: start;
  margin-top: 2px;
  padding: 6px 12px;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: transparent;
  transition: color .12s ease, border-color .12s ease;
}

.hotkeyResetBtn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.deviceSettingToggle:focus-visible {
  border-color: rgba(137,187,249,0.72);
  box-shadow: 0 0 0 3px rgba(62,135,247,0.15);
  outline: none;
}

.premiumLockedSetting {
  align-items: flex-start;
  flex-direction: column;
}

.premiumLockedHead {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premiumLockBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(62,135,247,0.18);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.genderPrefPreview {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.genderPrefOption {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.genderPrefOption:hover {
  border-color: rgba(96,165,250,.38);
  background: rgba(96,165,250,.11);
  color: #fff;
}

.genderPrefOption.is-selected {
  border-color: rgba(137,187,249,.72);
  background: linear-gradient(to bottom, rgba(137,187,249,.26), rgba(62,135,247,.18));
  color: #fff;
}

.genderPrefOption .gender-avatar-icon {
  width: 17px;
  height: 17px;
}

.settingsAudioControl {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.settingsAudioHead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settingsAudioTools {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.settingsMuteBtn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.settingsMuteBtn:hover {
  border-color: rgba(96,165,250,.38);
  background: rgba(96,165,250,.11);
  color: #fff;
}

.settingsMuteBtn.is-muted {
  border-color: rgba(248,113,113,.42);
  background: rgba(239,68,68,.14);
  color: #fecaca;
}

.settingsMuteBtn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.settingsVolumeSlider {
  width: 100%;
  min-width: 0;
  accent-color: #89bbf9;
  cursor: pointer;
}

.deviceSettingButton:hover {
  border-color: rgba(96,165,250,.38);
  background: rgba(96,165,250,.11);
}

#settingsPremiumBtn {
  border-color: rgba(251,191,36,.62);
  background:
    linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.10)),
    rgba(255,255,255,0.055);
  box-shadow:
    0 0 0 1px rgba(251,191,36,.12) inset,
    0 0 22px rgba(251,191,36,.24),
    0 10px 24px rgba(0,0,0,.18);
}

#settingsPremiumBtn:hover {
  border-color: rgba(253,224,71,.82);
  background:
    linear-gradient(135deg, rgba(253,224,71,.24), rgba(245,158,11,.14)),
    rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 1px rgba(253,224,71,.18) inset,
    0 0 28px rgba(251,191,36,.34),
    0 12px 28px rgba(0,0,0,.20);
}

.deviceSettingIcon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.22));
}

.deviceSettingTitle {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.deviceSettingText {
  min-width: 0;
}

.deviceSettingSub {
  margin-top: 3px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
}

.settingsSwitch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  display: inline-block;
}

.settingsSwitch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settingsSwitchTrack {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background 160ms ease;
}

.settingsSwitchTrack::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.32);
  transition: transform 160ms ease;
}

.settingsSwitch input:checked + .settingsSwitchTrack {
  background: linear-gradient(to bottom, #53a4ff, #2f7fee);
}

.settingsSwitch input:checked + .settingsSwitchTrack::before {
  transform: translateX(20px);
}

.deviceModalFooter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
}

.upload-progress,
.upload-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1100;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,0.94);
  color: #fff;
  box-shadow: var(--shadow);
}

/* Reference-driven concept: split video row with a control/chat panel below at narrow sizes. */
@media (min-width: 921px) {
  :root {
    --video2-space: clamp(6px, calc(100vh / 768 * 8), 10px);
    --control-h: clamp(64px, calc(100vh / 768 * 82), 86px);
    --control-gap: var(--video2-space);
    --control-tile-h: calc(var(--control-h) - var(--control-gap));
    --control-tile-w: clamp(116px, calc((50vw - (var(--control-gap) * 5)) / 4), 154px);
    --control-radius: 13px;
    --control-depth: 6%;
  }

  #main.app-container {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) var(--control-h);
    grid-template-areas:
      "videos"
      "messages";
    background: #ececec;
  }

  #top-bar.app-header {
    display: none;
  }

  #videos.video-section {
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    background: #111;
  }

  .video-container-peer,
  .video-container-self {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: var(--desktop-radius) var(--desktop-radius) 0 0;
    box-shadow: none;
  }

  .video-container-peer-clip {
    border-radius: 0;
    box-shadow: none;
  }

  .video-container-peer {
    border-radius: 0;
  }

  .video-container-peer {
    border-right: 1px solid rgba(0,0,0,0.34);
  }

  .video-container-self {
    z-index: 1;
  }

  .local-settings-overlay {
    background: transparent;
  }

  .watermark {
    display: none;
  }

  #disconnected-overlay {
    background: transparent;
  }

  #disconnected-overlay .disconnected-overlay-copy {
    display: none;
  }

  #message-area.message-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "controls chat";
    border: 0;
    border-top: 1px solid #d9d9d9;
    background: #f5f5f5;
    color: #444;
  }

  #chat-controls.chat-controls {
    grid-area: controls;
    min-height: 0;
    display: grid;
    align-items: stretch;
    padding: var(--control-gap) 0 0 calc((var(--control-tile-w) * 2) + (var(--control-gap) * 3));
    border: 0;
    background: transparent;
  }

  #skip-btn.button-skip {
    position: fixed;
    left: var(--control-gap);
    bottom: 0;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--control-tile-w);
    height: var(--control-tile-h);
    border: 0;
    border-radius: var(--control-radius);
    background: var(--video2-green-dark);
    box-shadow: 0 3px 3px rgba(0,0,0,0.16);
    color: transparent;
    font-size: 0;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
  }

  #skip-btn.button-skip::before,
  #video2StopTile::before,
  #video2IdentityTile::before,
  .chat-control-match::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: calc(100% - var(--control-depth));
    border-radius: var(--control-radius);
    box-sizing: border-box;
    transition: top 75ms linear;
  }

  #skip-btn.button-skip::before {
    border: 1px solid var(--video2-green-dark);
    background:
      linear-gradient(to bottom, rgba(255,255,255,.13) 0, rgba(255,255,255,0) 50%, rgba(255,255,255,.3) 100%),
      var(--video2-green);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.22);
  }

  #skip-btn.button-skip::after {
    content: attr(data-label);
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(24px, 2.35vw, 34px);
    font-weight: 400;
    text-shadow: 0 1px .1em var(--video2-green-dark);
  }

  #video2StopTile {
    position: fixed;
    left: calc((var(--control-tile-w) * 1) + (var(--control-gap) * 2));
    bottom: 0;
    z-index: 45;
    display: grid;
    place-items: center;
    width: var(--control-tile-w);
    height: var(--control-tile-h);
    border: 0;
    border-radius: var(--control-radius);
    background: var(--video2-red-dark);
    box-shadow: 0 3px 3px rgba(0,0,0,0.16);
    color: transparent;
    font-size: clamp(24px, 2.35vw, 34px);
    font-weight: 400;
    text-shadow: 0 1px .1em var(--video2-red-dark);
    cursor: pointer;
    overflow: hidden;
  }

  #video2StopTile::before {
    border: 1px solid var(--video2-red-dark);
    background:
      linear-gradient(to bottom, rgba(255,255,255,.13) 0, rgba(255,255,255,0) 50%, rgba(255,255,255,.3) 100%),
      var(--video2-red);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.22);
  }

  #video2StopTile::after {
    content: "Stop";
    position: relative;
    z-index: 1;
    color: #fff;
  }

  #video2IdentityTile {
    position: fixed;
    left: calc((var(--control-tile-w) * 3) + (var(--control-gap) * 4));
    bottom: 0;
    z-index: 45;
    display: grid;
    place-items: center;
    width: var(--control-tile-w);
    height: var(--control-tile-h);
    border: 0;
    border-radius: var(--control-radius);
    background: var(--video2-gray-dark);
    box-shadow: 0 3px 3px rgba(0,0,0,0.10);
    color: transparent;
    font-size: clamp(24px, 2.35vw, 34px);
    font-weight: 400;
    overflow: hidden;
  }

  #video2IdentityTile::before {
    border: 1px solid #cfcfcf;
    border-bottom-color: transparent;
    background:
      linear-gradient(to bottom, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 100%),
      var(--video2-gray);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 #fff;
  }

  #video2IdentityTile::after {
    content: attr(data-label);
    position: relative;
    z-index: 1;
    color: var(--video2-gray-text);
  }

  .chat-controls-bar {
    display: grid;
    grid-template-columns: minmax(0, var(--control-tile-w));
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .chat-controls-grid {
    display: contents;
  }

  .chat-control-match,
  .video2-identity-tile {
    position: relative;
    min-height: var(--control-tile-h);
    display: grid;
    align-items: center;
    padding: 0 9px;
    border: 0;
    border-radius: var(--control-radius);
    background: var(--video2-gray-dark);
    box-shadow: 0 3px 3px rgba(0,0,0,0.10);
    overflow: hidden;
  }

  .chat-control-match {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: center;
  }

  .chat-control-match::before {
    border: 1px solid #cfcfcf;
    border-bottom-color: transparent;
    background:
      linear-gradient(to bottom, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 100%),
      var(--video2-gray);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 #fff;
  }

  .chat-control-match .chat-label,
  .chat-control-match::after {
    position: relative;
    z-index: 1;
  }

  .chat-control-match .chat-label {
    color: #5f6368;
    font-size: clamp(24px, 2.35vw, 34px);
    font-weight: 400;
    line-height: 1;
  }

  .chat-control-match::after {
    content: attr(data-flag);
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1;
  }

  .chat-select-wrap {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
  }

  .chat-select-wrap .chat-control-select {
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .video2-identity-tile {
    position: fixed;
    left: calc((var(--control-tile-w) * 3) + (var(--control-gap) * 4));
    bottom: 0;
    z-index: 45;
    width: var(--control-tile-w);
    height: var(--control-tile-h);
    border: 0;
    border-radius: var(--control-radius);
    background: var(--video2-gray-dark);
    box-shadow: 0 3px 3px rgba(0,0,0,0.10);
    color: transparent;
    font-size: clamp(24px, 2.35vw, 34px);
    font-weight: 400;
    cursor: pointer;
  }

  #skip-btn.button-skip:active::before,
  #video2StopTile:active::before,
  #video2IdentityTile:active::before,
  .chat-control-match:active::before {
    top: var(--control-depth);
  }

  .video2-identity-popover {
    position: fixed;
    left: calc((var(--control-tile-w) * 3) + (var(--control-gap) * 4));
    bottom: calc(var(--control-h) - var(--control-gap));
    z-index: 60;
    width: var(--control-tile-w);
    display: none;
    padding: 0;
    border: 1px solid #d1d1d1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 26px rgba(0,0,0,0.16);
  }

  .video2-identity-popover.is-open {
    display: grid;
  }

  .video2-gender-buttons {
    display: grid;
    gap: 6px;
  }

  .video2-gender-btn {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f5f5f5;
    color: #555;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
  }

  .video2-gender-btn.is-selected {
    background: linear-gradient(to bottom, #89bbf9, #3e87f7);
    color: #fff;
  }

  .chat-control-auto {
    display: none;
  }

  #messages.messages-container {
    grid-area: chat;
    min-height: 0;
    padding: 0 6px 36px 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    color: #555;
    overflow-y: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
  }

  #messages.messages-container::after {
    content: "";
    display: block;
    width: 100%;
    height: 12px;
  }

  #input-area.input-section {
    grid-area: chat;
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: 36px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
  }

  .input-wrapper {
    position: relative;
    min-width: 0;
    height: 36px;
    border-radius: 16px;
    background: #fff;
    border: none;
    box-shadow: none;
  }

  .input-wrapper::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 6px;
    z-index: 1;
    width: 24px;
    height: 24px;
    color: rgba(85,85,85,.4);
    font-size: 24px;
    line-height: 24px;
    pointer-events: none;
  }

  .message-input {
    position: absolute;
    inset: 0;
    height: 36px;
    padding: 0 48px 0 12px;
    border: 0;
    border-radius: var(--desktop-radius) var(--desktop-radius) 0 0;
    background: transparent;
    color: #555;
    font-size: 16px;
    line-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .message-input::placeholder {
    color: #b5b5b5;
  }

  .button-send {
    display: none;
  }

  .message {
    position: relative;
    display: inline-block;
    clear: both;
    width: 100%;
    max-width: none;
    margin: 6px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #404040;
    font-size: 16px;
    line-height: 20px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,.05));
  }

  .message::after {
    content: "";
    display: block;
    clear: both;
  }

  .message strong,
  .message > text {
    display: inline;
  }

  .message-system,
  .message-status,
  .message-typing {
    color: #7b7b7b;
  }

  .message-policy-notice {
    position: relative;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 8px 22px rgba(0,0,0,0.08);
    color: #555;
    font-size: 16px;
    line-height: 1.35;
  }

  .message-policy-notice::before {
    content: "OW";
    position: absolute;
    left: -36px;
    top: 6px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #ef6c44;
    border-radius: 5px;
    color: #ef6c44;
    font-size: 10px;
    font-weight: 700;
  }

  .message-policy-notice a {
    color: #3e87f7;
    text-decoration: underline;
  }

}

@media (min-width: 921px) and (max-width: 1180px) {
  #skip-btn.button-skip::after,
  #video2StopTile,
  #video2IdentityTile,
  .chat-control-match::before {
    font-size: 28px;
  }

  .chat-control-match::after {
    font-size: 27px;
  }
}

@media (max-width: 520px) {
  :root {
    --video2-space: calc(100vh / 768 * 10);
    --vertical-video-h: min(50vw, 215px);
    --vertical-panel-h: calc(100vh - var(--vertical-video-h));
    --vertical-panel-h: calc(100dvh - var(--vertical-video-h));
    --vertical-button-h: calc((var(--vertical-panel-h) - (var(--video2-space) * 4)) / 4);
    --control-radius: .5em;
    --control-depth: 7%;
  }

  #main.app-container {
    grid-template-columns: 1fr;
    grid-template-rows: var(--vertical-video-h) minmax(0, 1fr);
    grid-template-areas:
      "videos"
      "messages";
    background: #e3e3e3;
  }

  #top-bar.app-header { display: none; }
  .logo-image { height: 36px; }
  #videos.video-section {
    grid-area: videos;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    background: #000;
  }
  .video-container-peer,
  .video-container-self {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .video-container-peer {
    border-right: 1px solid rgba(0,0,0,.34);
  }
  .video-container-self {
    z-index: 1;
  }

  .watermark {
    display: none;
  }

  body.video2-remote-active .peer-audio-mark {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 38;
  }

  #message-area.message-section {
    grid-area: messages;
    position: relative;
    inset: auto;
    z-index: 1;
    min-height: 0;
    height: var(--vertical-panel-h);
    pointer-events: auto;
    display: grid;
    grid-template-columns: 50vw 50vw;
    grid-template-rows: minmax(0, 1fr) 36px;
    grid-template-areas:
      "controls chat"
      "controls input";
    border: 0;
    background: transparent;
  }

  #chat-controls.chat-controls {
    grid-area: controls;
    display: block !important;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .chat-controls-bar,
  .chat-controls-grid {
    display: contents;
  }

  #skip-btn.button-skip,
  #video2StopTile,
  .chat-control-match,
  #video2IdentityTile {
    position: absolute;
    left: 0;
    z-index: 45;
    width: 50vw;
    height: var(--vertical-button-h);
    border: 0;
    border-radius: var(--control-radius);
    box-shadow: 0 3px 3px rgba(0,0,0,.16);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
  }

  #skip-btn.button-skip {
    position: fixed;
    top: calc(var(--vertical-video-h) + var(--video2-space));
    bottom: auto;
    color: transparent;
    background: var(--video2-green-dark);
  }

  #video2StopTile {
    top: calc(var(--video2-space) + var(--vertical-button-h) + var(--video2-space));
    color: transparent;
    background: var(--video2-red-dark);
  }

  .chat-control-match {
    top: calc(var(--video2-space) + (var(--vertical-button-h) + var(--video2-space)) * 2);
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: center;
    padding: 0 9px;
    background: var(--video2-gray-dark);
  }

  #video2IdentityTile {
    top: calc(var(--video2-space) + (var(--vertical-button-h) + var(--video2-space)) * 3);
    color: transparent;
    background: var(--video2-gray-dark);
  }

  #skip-btn.button-skip::before,
  #video2StopTile::before,
  .chat-control-match::before,
  #video2IdentityTile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: calc(100% - var(--control-depth));
    border-radius: var(--control-radius);
    box-sizing: border-box;
    transition: top 75ms linear;
  }

  #skip-btn.button-skip::before {
    border: 1px solid var(--video2-green-dark);
    background:
      linear-gradient(to bottom, rgba(255,255,255,.13) 0, rgba(255,255,255,0) 50%, rgba(255,255,255,.3) 100%),
      var(--video2-green);
  }

  #video2StopTile::before {
    border: 1px solid var(--video2-red-dark);
    background:
      linear-gradient(to bottom, rgba(255,255,255,.13) 0, rgba(255,255,255,0) 50%, rgba(255,255,255,.3) 100%),
      var(--video2-red);
  }

  .chat-control-match::before,
  #video2IdentityTile::before {
    border: 1px solid #cfcfcf;
    border-bottom-color: transparent;
    background:
      linear-gradient(to bottom, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 100%),
      var(--video2-gray);
  }

  #skip-btn.button-skip::after,
  #video2StopTile::after,
  .chat-control-match .chat-label,
  .chat-control-match::after,
  #video2IdentityTile::after {
    position: relative;
    z-index: 1;
  }

  #skip-btn.button-skip::after {
    content: attr(data-label);
    color: #fff;
    text-shadow: 0 1px .1em var(--video2-green-dark);
  }

  #video2StopTile::after {
    content: "Stop";
    color: #fff;
    text-shadow: 0 1px .1em var(--video2-red-dark);
  }

  .chat-control-match .chat-label,
  #video2IdentityTile::after {
    content: attr(data-label);
    color: var(--video2-gray-text);
  }

  .chat-control-match::after {
    content: attr(data-flag);
    margin-left: .416em;
    color: var(--video2-gray-text);
  }

  #skip-btn.button-skip:active::before,
  #video2StopTile:active::before,
  .chat-control-match:active::before,
  #video2IdentityTile:active::before {
    top: var(--control-depth);
  }

  .chat-select-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
  }

  .chat-select-wrap .chat-control-select {
    width: 100%;
    height: 100%;
  }

  .video2-identity-popover {
    position: absolute;
    left: 0;
    top: calc(var(--video2-space) + (var(--vertical-button-h) + var(--video2-space)) * 3);
    z-index: 80;
    width: 50vw;
    display: none;
    transform: translateY(-100%);
    padding: .25em;
    border-radius: .5em;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
  }

  .video2-identity-popover.is-open {
    display: grid;
  }

  .video2-gender-buttons {
    display: grid;
    gap: 0;
  }

  .video2-gender-btn {
    min-height: 36px;
    padding: 6% 9px;
    border: 1px solid transparent;
    border-radius: .3em;
    background: transparent;
    color: #525552;
    font-size: 80%;
    text-align: left;
  }

  .video2-gender-btn.is-selected {
    background: linear-gradient(to bottom, #89bbf9, #3e87f7);
    color: #fff;
  }

  #input-area.input-section {
    grid-area: input;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    pointer-events: auto;
    height: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #fff;
    border: 0;
  }
  #messages.messages-container {
    grid-area: chat;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    min-height: 0;
    max-height: none;
    padding: 0 6px 36px 0;
    overflow-y: auto;
    pointer-events: auto;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
  }

  #messages.messages-container::after {
    content: "";
    display: block;
    width: 100%;
    height: 12px;
  }

  .button-send { display: none; }
  .keyboard-hint { display: none; }
  #connectStatus.connect-status {
    display: none !important;
  }

  .input-wrapper {
    position: relative;
    min-width: 0;
    height: 36px;
    border-radius: 16px;
    background: #fff;
  }

  .input-wrapper::after {
    display: none;
    content: "";
  }

  .message-input {
    position: absolute;
    inset: 0;
    height: 36px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 16px;
    line-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .message-input::placeholder {
    color: #bbb;
  }

  .message {
    position: relative;
    display: inline-block;
    clear: both;
    width: 100%;
    max-width: none;
    margin: 6px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #404040;
    font-size: 16px;
    line-height: 20px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,.05));
  }

  .message-policy-notice {
    position: relative;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    margin: 12px 12px 0;
    padding: 6px 12px 8px;
    max-width: calc(100% - 24px);
    color: #404040;
    font-size: 16px;
    line-height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
    word-break: break-word;
  }

  .message-policy-notice::before {
    content: "OW";
    position: absolute;
    left: -50px;
    top: -1px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid #ef6c44;
    border-radius: 6px;
    color: #ef6c44;
    font-size: 10px;
    font-weight: 700;
    background: #fff;
  }
}

@media (min-width: 521px) {
  :root {
    --desktop-bottom-h: clamp(176px, 25vh, 230px);
    --desktop-bottom-h: clamp(176px, 25dvh, 230px);
    --desktop-gap: 8px;
    --desktop-btn-w: clamp(106px, 8.5vw, 138px);
    --desktop-btn-h: auto;
    --desktop-radius: 14px;
    --desktop-label-size: clamp(14px, 1vw, 18px);
    --desktop-blue: #89bbf9;
    --desktop-blue-2: #3e87f7;
    --desktop-blue-shadow: rgba(62, 135, 247, .28);
    --desktop-divider: #1f1f1f;
  }

  #main.app-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) var(--desktop-bottom-h);
    grid-template-areas:
      "videos"
      "messages";
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #e7e7e7;
  }

  #top-bar.app-header {
    display: none !important;
  }

  .logo-container {
    display: block;
    width: min(380px, 34vw);
  }

  .logo-image {
    display: none;
  }

  .header-controls {
    display: block;
    min-width: 0;
  }

  .online-counter {
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.65);
    pointer-events: none;
  }

  .online-counter::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #25df75;
    box-shadow: 0 0 8px rgba(37,223,117,.5);
  }

  .online-text {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
  }

  .online-text span {
    color: #fff;
  }

  .online-details,
  #theme-toggle-compact,
  .headerMenu {
    display: none !important;
  }

  #videos.video-section {
    grid-area: videos;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: var(--desktop-divider);
  }

  .video-container-peer,
  .video-container-self {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .video-container-peer {
    border-right: 0;
    background: #020202 url("/tv-static-dark.gif") center / cover repeat;
  }

  .video-container-self {
    z-index: 1;
    border-left: 2px solid var(--desktop-divider);
    background: var(--desktop-divider);
  }

  .video-container-peer.disconnected::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #191919 url("/tv-static-dark.gif") center / cover repeat;
    filter: grayscale(1);
    animation: video2-static-jitter .18s steps(2, end) infinite;
  }

  body.video2-remote-active .video-container-peer,
  .video-container-peer:not(.disconnected) {
    background: #000;
  }

  body.video2-remote-active .video-container-peer::before,
  body.video2-remote-active .video-container-peer::after,
  .video-container-peer:not(.disconnected)::before,
  .video-container-peer:not(.disconnected)::after {
    content: none;
  }

  body.video2-remote-active .video-container-peer .video-player,
  .video-container-peer:not(.disconnected) .video-player {
    opacity: 1;
  }

  #disconnected-overlay .disconnected-overlay-copy {
    display: none;
  }

  #disconnected-overlay {
    background: rgba(0,0,0,0.42);
  }

  .watermark {
    display: none;
  }

  #message-area.message-section {
    grid-area: messages;
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    z-index: auto;
    pointer-events: auto;
    display: grid;
    --desktop-slot: calc((100% - (var(--desktop-gap) * 7)) / 8);
    grid-template-columns:
      repeat(4, minmax(0, 1fr))
      repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) 40px;
    grid-template-areas:
      "start stop country premium messages messages messages messages"
      "start stop country premium input input input input";
    column-gap: var(--desktop-gap);
    row-gap: 0;
    padding: 8px;
    border: 0;
    border-top: 0;
    align-items: stretch;
    background: #efefef;
    color: #444;
  }

  #chat-controls.chat-controls,
  #countryBar.chat-controls-bar,
  .chat-controls-grid {
    display: contents !important;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #skip-btn.button-skip,
  #video2StopTile,
  .chat-control-match,
  #video2IdentityTile,
  #video2PremiumTile,
  #video2SettingsTile {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 2;
    width: 100%;
    height: var(--desktop-btn-h);
    min-height: 0;
    align-self: stretch;
    justify-self: stretch;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    border-radius: var(--desktop-radius);
    overflow: hidden;
    box-shadow: 0 12px 28px var(--desktop-blue-shadow);
    font-size: 0;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: filter .16s ease, box-shadow .16s ease;
  }

  #skip-btn.button-skip:hover,
  #video2StopTile:hover,
  .chat-control-match:hover,
  #video2IdentityTile:hover,
  #video2PremiumTile:hover,
  #video2SettingsTile:hover {
    filter: brightness(1.04) saturate(1.04);
    box-shadow: 0 12px 28px var(--desktop-blue-shadow);
  }

  #skip-btn.button-skip:active,
  #video2StopTile:active,
  .chat-control-match:active,
  #video2IdentityTile:active,
  #video2PremiumTile:active,
  #video2SettingsTile:active {
    filter: brightness(.98);
  }

  #skip-btn.button-skip:disabled,
  #video2StopTile:disabled {
    cursor: default;
    filter: grayscale(.25) brightness(.86);
    opacity: .58;
    box-shadow: none;
  }

  #skip-btn.button-skip:disabled:hover,
  #video2StopTile:disabled:hover {
    filter: grayscale(.25) brightness(.86);
    box-shadow: none;
  }

  #skip-btn.button-skip {
    grid-area: start;
    color: transparent;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  #video2StopTile {
    grid-area: stop;
    color: transparent;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  .chat-control-match {
    grid-area: country;
    align-self: start;
    height: calc((100% - var(--desktop-gap)) / 2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 8px;
    padding: 0;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  #video2IdentityTile {
    grid-area: country;
    align-self: end;
    height: calc((100% - var(--desktop-gap)) / 2);
    color: transparent;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  #video2PremiumTile {
    grid-area: premium;
    align-self: start;
    height: calc((100% - var(--desktop-gap)) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: transparent;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  #video2SettingsTile {
    grid-area: premium;
    align-self: end;
    height: calc((100% - var(--desktop-gap)) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: transparent;
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2) 100%), linear-gradient(to bottom, #90b4e3, #3570d6);
  }

  #skip-btn.button-skip::before,
  #video2StopTile::before,
  .chat-control-match::before,
  #video2IdentityTile::before,
  #video2PremiumTile::before,
  #video2SettingsTile::before {
    content: none;
  }

  #skip-btn.button-skip::after,
  #video2StopTile::after,
  .chat-control-match .chat-label,
  .chat-control-match::after,
  #video2IdentityTile::after,
  #video2PremiumTile::after,
  #video2SettingsTile::after {
    position: relative;
    grid-area: 1 / 1;
    z-index: 1;
  }

  #skip-btn.button-skip::after {
    content: none;
  }

  #skip-btn.button-skip .button-label,
  #video2StopTile .button-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: var(--desktop-label-size);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
  }

  #video2StopTile::after {
    content: none;
  }

  .chat-control-match .chat-label {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    color: #fff;
    font-size: var(--desktop-label-size);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
  }

  .chat-control-match::after {
    content: none;
  }

  #video2IdentityTile .control-emoji,
  #video2IdentityTile .identity-label {
    display: inline-block;
    position: relative;
    z-index: 1;
  }

  .chat-control-match .control-emoji,
  #video2IdentityTile .control-emoji {
    display: inline-block;
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: calc(var(--desktop-label-size) + 1px);
    line-height: 1;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.2));
  }

  .chat-control-match .control-emoji.country-flag-image,
  .video2-country-option .country-option-emoji.country-flag-image {
    width: 26px;
    height: 19px;
    border-radius: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
    font-size: 0;
  }

  #video2IdentityTile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 8px;
  }

  #video2IdentityTile .identity-label {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    color: #fff;
    font-size: var(--desktop-label-size);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
  }

  #video2PremiumTile .premium-tile-icon {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: contain;
    overflow: hidden;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.2));
  }

  #video2PremiumTile .premium-label {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    color: #fff;
    font-size: var(--desktop-label-size);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
  }

  #video2SettingsTile .settings-tile-icon {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    color: #fff;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.2));
  }

  #video2SettingsTile .settings-tile-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
  }

  #video2SettingsTile .settings-label {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    color: #fff;
    font-size: var(--desktop-label-size);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
  }

  #video2IdentityTile::after {
    content: none;
  }

  #video2PremiumTile::after,
  #video2SettingsTile::after {
    content: none;
  }

  .chat-select-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
  }

  .chat-control-match .chat-select-wrap {
    pointer-events: none;
  }

  .chat-select-wrap .chat-control-select {
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .video2-identity-popover {
    position: absolute;
    left: calc((var(--desktop-slot) + var(--desktop-gap)) * 2);
    bottom: 100%;
    z-index: 80;
    width: min(220px, max(150px, var(--desktop-slot)));
    display: none;
    padding: 6px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }

  .video2-identity-popover.is-open {
    display: grid;
  }

  .video2-country-popover {
    position: absolute;
    left: calc((var(--desktop-slot) + var(--desktop-gap)) * 2);
    bottom: 100%;
    z-index: 80;
    width: min(340px, calc(50% - 16px));
    max-height: min(420px, calc(100vh - var(--desktop-bottom-h) - 28px));
    max-height: min(420px, calc(100dvh - var(--desktop-bottom-h) - 28px));
    display: none;
    padding: 6px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    overflow-y: auto;
  }

  .video2-country-popover.is-open {
    display: grid;
    gap: 4px;
  }

  .video2-country-option {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #525552;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
  }

  .video2-country-option.is-selected {
    background: rgba(62,135,247,.82);
    color: #fff;
  }

  .video2-country-option .country-option-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1;
  }

  .video2-gender-buttons {
    display: grid;
    gap: 4px;
  }

  .video2-gender-btn {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #525552;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .video2-gender-btn .gender-avatar-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }

  .video2-gender-btn.is-selected {
    background: linear-gradient(to bottom, var(--desktop-blue), var(--desktop-blue-2));
    color: #fff;
  }

  #messages.messages-container {
    grid-area: messages;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    min-width: 0;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 10px 8px;
    border: 0;
    border-bottom: 0;
    border-radius: var(--desktop-radius) var(--desktop-radius) 0 0;
    background: #fff;
    color: #444;
    overflow-y: auto;
    box-shadow: none;
    pointer-events: auto;
  }

  #messages.messages-container::after {
    content: "";
    display: block;
    height: 8px;
  }

  #input-area.input-section {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    height: auto;
    padding: 0;
    background: transparent;
    display: contents;
  }

  #input-area.input-section .input-wrapper {
    grid-area: input;
    position: relative;
    display: block;
    height: 40px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0 0 var(--desktop-radius) var(--desktop-radius);
    background: #fff;
    box-shadow: none;
    overflow: hidden;
  }

  .input-wrapper {
    position: relative;
    min-width: 0;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .message-input {
    position: absolute;
    inset: 0;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #555;
    font-size: 16px;
    line-height: 40px;
  }

  .message-input::placeholder {
    color: #aaa;
  }

  .button-send,
  .keyboard-hint {
    display: none;
  }

  .message {
    width: fit-content;
    max-width: 86%;
    margin: 0;
    padding: 7px 12px 8px;
    border-radius: 16px;
    background: #f1f3f6;
    color: #353b44;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    filter: none;
    box-shadow: none;
    overflow-wrap: anywhere;
  }

  .message-author,
  .message-text {
    font-weight: 400;
  }

  .message-author {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    margin-right: 3px;
  }

  .message-author-icon {
    display: inline-block;
    margin-right: 3px;
    font-size: 12px;
    line-height: 1;
    vertical-align: -1px;
  }

  #video2IdentityTile .gender-avatar-icon {
    width: 24px;
    height: 24px;
  }

  .message-author-icon.gender-avatar-icon {
    width: 13px;
    height: 13px;
    margin-right: 6px;
    padding: 2px;
    filter: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
    vertical-align: -3px;
  }

  .message-you {
    align-self: flex-end;
    background: var(--desktop-blue-2);
    color: #fff;
    border-bottom-right-radius: 6px;
  }

  .message-you .message-author {
    color: rgba(255,255,255,.85);
  }

  .message-stranger {
    align-self: flex-start;
    background: #f1f3f6;
    border-bottom-left-radius: 6px;
  }

  .message-stranger .message-author {
    color: #ff7f00;
  }

  .message-system,
  .message-status {
    align-self: center;
    width: auto;
    max-width: 92%;
    padding: 3px 8px;
    background: transparent;
    box-shadow: none;
    color: #777;
    font-size: 12px;
    text-align: center;
  }

  .message-typing {
    align-self: flex-start;
    width: auto;
    max-width: 86%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 12px;
    border-bottom-left-radius: 5px;
    background: #eef2f7;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
  }

  .typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 1em;
  }

  .typing-dots span {
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    opacity: .42;
    animation: typing-dot 1.1s ease-in-out infinite;
  }

  .typing-dots span:nth-child(2) {
    animation-delay: .14s;
  }

  .typing-dots span:nth-child(3) {
    animation-delay: .28s;
  }

  .message-policy-notice {
    margin: 8px 8px 0;
    padding: 6px 10px 7px;
    max-width: calc(100% - 16px);
    border-radius: 9px;
    background: #fff;
    color: #404040;
    font-size: 14px;
    line-height: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
  }

  .message-policy-notice::before {
    content: "OW";
    position: absolute;
    left: -38px;
    top: 4px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #ef6c44;
    border-radius: 5px;
    color: #ef6c44;
    font-size: 10px;
    font-weight: 700;
    background: #fff;
  }

  #connectStatus.connect-status {
    display: none !important;
  }

  .webcam-label-container {
    display: none !important;
  }

  body.video2-connected #top-bar.app-header,
  body.video2-loading #top-bar.app-header,
  body.video2-searching #top-bar.app-header,
  body.video2-start-intent #top-bar.app-header {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  :root {
    --desktop-gap: 6px;
    --desktop-label-size: 12.5px;
  }

  .chat-control-match,
  #video2IdentityTile,
  #video2PremiumTile,
  #video2SettingsTile {
    gap: 6px;
  }

  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    max-width: 100%;
  }

  .chat-control-match .control-emoji.country-flag-image,
  .video2-country-option .country-option-emoji.country-flag-image {
    width: 23px;
    height: 17px;
  }

  #video2PremiumTile .premium-tile-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  #video2SettingsTile .settings-tile-icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  :root {
    --desktop-gap: 6px;
    --desktop-radius: 12px;
    --desktop-label-size: 11px;
  }

  #message-area.message-section {
    padding: 6px;
    column-gap: var(--desktop-gap);
  }

  .chat-control-match,
  #video2IdentityTile,
  #video2PremiumTile,
  #video2SettingsTile {
    gap: 4px;
  }

  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    max-width: 100%;
  }

  .chat-control-match .control-emoji,
  #video2IdentityTile .control-emoji {
    font-size: 14px;
  }

  .chat-control-match .control-emoji.country-flag-image,
  .video2-country-option .country-option-emoji.country-flag-image {
    width: 20px;
    height: 14px;
  }

  #video2PremiumTile .premium-tile-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  #video2SettingsTile .settings-tile-icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 521px) and (max-width: 700px) {
  :root {
    --desktop-bottom-h: clamp(164px, 27vh, 205px);
    --desktop-bottom-h: clamp(164px, 27dvh, 205px);
    --desktop-gap: 4px;
    --desktop-radius: 10px;
    --desktop-label-size: clamp(9.5px, 1.65vw, 11px);
    --desktop-blue-shadow: rgba(62, 135, 247, .18);
  }

  #message-area.message-section {
    grid-template-columns:
      minmax(76px, .82fr)
      minmax(76px, .82fr)
      minmax(76px, .82fr)
      repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 36px;
    grid-template-areas:
      "start country premium messages messages messages messages"
      "stop country premium messages messages messages messages"
      ". . . input input input input";
    padding: 4px;
    column-gap: var(--desktop-gap);
    row-gap: var(--desktop-gap);
  }

  #skip-btn.button-skip,
  #video2StopTile,
  .chat-control-match,
  #video2IdentityTile,
  #video2PremiumTile,
  #video2SettingsTile {
    border-radius: var(--desktop-radius);
    box-shadow: 0 8px 18px var(--desktop-blue-shadow);
  }

  .chat-control-match,
  #video2IdentityTile,
  #video2PremiumTile,
  #video2SettingsTile {
    gap: 4px;
    min-width: 0;
  }

  #skip-btn.button-skip .button-label,
  #video2StopTile .button-label,
  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    max-width: 100%;
  }

  .chat-control-match .control-emoji,
  #video2IdentityTile .control-emoji {
    flex: 0 0 auto;
    font-size: calc(var(--desktop-label-size) + 2px);
  }

  .chat-control-match .control-emoji.country-flag-image,
  .video2-country-option .country-option-emoji.country-flag-image {
    width: 18px;
    height: 13px;
  }

  #video2PremiumTile .premium-tile-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  #video2SettingsTile .settings-tile-icon {
    width: 16px;
    height: 16px;
  }

  #messages.messages-container {
    gap: 5px;
    padding: 7px 7px 6px;
    border-radius: var(--desktop-radius) var(--desktop-radius) 0 0;
  }

  .video2-country-popover,
  .video2-identity-popover {
    left: 4px;
    width: min(220px, calc(100% - 8px));
    max-height: min(360px, calc(100vh - var(--desktop-bottom-h) - 16px));
    max-height: min(360px, calc(100dvh - var(--desktop-bottom-h) - 16px));
  }

  #input-area.input-section .input-wrapper,
  .input-wrapper,
  .message-input {
    height: 36px;
  }

  .message-input {
    padding: 0 10px;
    font-size: 14px;
    line-height: 36px;
  }
}

@media (min-width: 521px) and (max-width: 600px) {
  :root {
    --desktop-label-size: 9.5px;
  }

  #skip-btn.button-skip .button-label,
  #video2StopTile .button-label,
  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    font-size: 9.5px;
  }

  .chat-control-match .control-emoji,
  #video2IdentityTile .control-emoji {
    font-size: 12px;
  }

  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label {
    max-width: 100%;
  }

  .chat-control-match .control-emoji.country-flag-image,
  .video2-country-option .country-option-emoji.country-flag-image {
    width: 16px;
    height: 12px;
  }

  #video2PremiumTile .premium-tile-icon {
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  #video2SettingsTile .settings-tile-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --mobile-control-size: 46px;
    --mobile-control-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    --mobile-report-margin: 10px;
    --bg: #171717;
    --panel: #222222;
    --panel-2: #2b2b2b;
  }

  html,
  body {
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .online-counter,
  #theme-toggle-compact { display: none; }

  .headerMenu {
    display: none;
  }

  #main.app-container {
    position: relative;
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #171717;
  }

  body.mobile-chat-open,
  body.mobile-chat-open #main.app-container {
    height: var(--mobile-chat-vh, 100vh);
  }

  body.mobile-chat-open {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
  }

  .video-loader-text {
    border-color: rgba(1,127,254,.95);
    background: rgba(1,127,254,.36);
    box-shadow:
      0 0 0 1px rgba(1,127,254,.18),
      0 0 20px rgba(1,127,254,.42),
      0 8px 24px rgba(0,0,0,.24);
    color: #fff;
    text-shadow: none;
  }

  .control-btn {
    background: rgba(32,32,32,.58);
  }

  #top-bar.app-header {
    position: absolute;
    left: 50%;
    top: calc(25vh - 20px);
    top: calc(25dvh - 20px);
    z-index: 35;
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    width: min(260px, 74vw);
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: min(270px, 74vw);
    margin: 0 auto;
    pointer-events: auto;
  }

  .logo-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-cube-logo-main {
    --cube-easing: cubic-bezier(0.42, 0, 0.58, 1);
    --cube-cycle-ms: 6s;
    --cube-iterations: 3;
    --cube-logo-w: min(270px, 74vw);
    --cube-logo-h: min(270px, 74vw);
    --cube-side: min(var(--cube-logo-w), var(--cube-logo-h));
    --half: calc(var(--cube-side) / 2);
    width: var(--cube-logo-w);
    height: var(--cube-logo-h);
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  body.video2-camera-enabled .mobile-cube-logo-main {
    display: flex;
  }

  body.video2-camera-enabled .logo-image {
    display: none;
  }

  .mobile-cube-logo-main .cube-logo__scene {
    position: relative;
    perspective: calc(var(--cube-side) * 6);
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cube-logo-main .cube-logo__cube {
    position: relative;
    width: var(--cube-side);
    height: var(--cube-side);
    transform-style: preserve-3d;
    transform: translateZ(calc(-1 * var(--half)));
  }

  .mobile-cube-logo-main .cube-logo__face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .mobile-cube-logo-main .cube-logo__face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 19.29%;
    pointer-events: none;
  }

  .mobile-cube-logo-main .cube-logo__face--1 img,
  .mobile-cube-logo-main .cube-logo__face--stop img {
    object-position: center;
  }

  .mobile-cube-logo-main .cube-logo__face svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .mobile-cube-logo-main .cube-logo__face--1 {
    transform: translateZ(var(--half));
  }

  .mobile-cube-logo-main .cube-logo__face--2 {
    transform: rotateY(90deg) translateZ(var(--half));
  }

  .mobile-cube-logo-main .cube-logo__face--3 {
    transform: rotateY(180deg) translateZ(var(--half));
  }

  .mobile-cube-logo-main .cube-logo__face--4 {
    transform: rotateY(-90deg) translateZ(var(--half));
  }

  .mobile-cube-logo-main .cube-logo__face--stop {
    opacity: 0;
    transform: rotateY(180deg) translateZ(var(--half));
  }

  .mobile-cube-logo-main.cube-logo--playing .cube-logo__cube {
    will-change: transform;
    animation: cube-rotate var(--cube-cycle-ms) var(--cube-easing) var(--cube-iterations);
  }

  .mobile-cube-logo-main.cube-logo--playing .cube-logo__face--3 {
    animation: cube-face-3-hide var(--cube-cycle-ms) var(--cube-iterations);
  }

  .mobile-cube-logo-main.cube-logo--playing .cube-logo__face--stop {
    animation: cube-face-stop-show var(--cube-cycle-ms) var(--cube-iterations);
  }

  .header-controls {
    display: grid;
    justify-items: center;
    gap: 5px;
    width: 100%;
  }

  #top-bar.app-header .online-counter {
    order: 2;
  }

  #top-bar.app-header .mobile-swipe-hint {
    order: 1;
  }

  #videos.video-section {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50vh calc(50vh + 1px);
    grid-template-rows: 50dvh calc(50dvh + 1px);
    width: 100%;
    height: 100%;
    padding: 0;
    background: #1f1f1f;
  }

  body.mobile-chat-open #videos.video-section {
    position: fixed;
    inset: 0;
    display: block;
    height: var(--mobile-chat-vh, 100vh);
    transform: none !important;
  }

  body.mobile-chat-open .video-container-peer-clip {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100vw;
    height: calc(var(--mobile-chat-vh, 100vh) / 2);
    z-index: 1;
    transform-origin: center center;
  }

  body.mobile-chat-open .video-container-peer {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 100%;
  }

  body.mobile-chat-open .video-container-self {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--mobile-chat-vh, 100vh) / 2);
    width: 100vw;
    height: calc((var(--mobile-chat-vh, 100vh) / 2) + 1px);
    z-index: 1;
  }

  .video-container-peer-clip,
  .video-container-peer,
  .video-container-self {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .video-container-peer {
    border-right: 0;
    border-bottom: 0;
    background: #020202 url("/tv-static-dark.gif") center / cover repeat !important;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity;
    touch-action: pan-y;
  }

  .video-container-peer.is-swiping {
    transition: none;
  }

  .video-container-peer.is-swipe-release {
    transition: none;
  }

  /* While the tile is mid cube-turn the static pill is the only searching
     indicator; keep the tile's own searching overlay/loader off the
     rotating face so "Searching" never shows twice at once. */
  .video-container-peer.is-swiping #disconnected-overlay.active[data-state="searching"],
  .video-container-peer.is-swipe-release #disconnected-overlay.active[data-state="searching"],
  .video-container-peer.is-swiping #peer-video-loader,
  .video-container-peer.is-swipe-release #peer-video-loader,
  .video-container-peer.is-swiping #peer-video-loader-text,
  .video-container-peer.is-swipe-release #peer-video-loader-text {
    visibility: hidden !important;
  }

  #peer-cube-next {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    overflow: hidden;
    background: #191919;
    filter: grayscale(1);
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transform-origin: center center;
  }

  #peer-cube-next.is-active {
    display: block;
  }

  #peer-cube-next::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: #191919 url("/tv-static-dark.gif") center / cover repeat;
    animation: video2-static-jitter .18s steps(2, end) infinite;
  }

  #peer-cube-status {
    position: fixed;
    z-index: 4;
    display: none;
    transform: translateX(-50%);
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(32,32,32,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
    pointer-events: none;
  }

  #peer-cube-status.is-active {
    display: block;
    border-color: rgba(255,255,255,.18) !important;
    background: rgba(32,32,32,.72) !important;
    background-color: rgba(32,32,32,.72) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.24) !important;
  }

  /* Static twin of .video-loader so the spinner is already in place when
     the cube turn ends and the peer tile's real loader is revealed. */
  #peer-cube-spinner {
    position: fixed;
    z-index: 4;
    display: none;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 4px solid rgba(255,255,255,0.22);
    border-top-color: #fff;
    animation: spin 900ms linear infinite;
    pointer-events: none;
  }

  #peer-cube-spinner.is-active {
    display: block;
  }

  #peer-cube-next.is-swipe-release {
    transition: none;
  }

  .video-container-peer.disconnected .video-player {
    opacity: 0 !important;
  }

  .video-container-peer.disconnected .peer-static-gif {
    opacity: 1 !important;
  }

  .video-container-peer.disconnected::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #191919 url("/tv-static-dark.gif") center / cover repeat;
    filter: grayscale(1);
    animation: video2-static-jitter .18s steps(2, end) infinite;
  }

  .video-container-peer:not(.disconnected) {
    background: #000;
    filter: none;
  }

  .video-container-peer:not(.disconnected) .video-player {
    opacity: 1;
  }

  body.video2-remote-active .video-container-peer {
    background: #000 !important;
    filter: none !important;
  }

  body.video2-remote-active #video-peer {
    position: absolute;
    inset: 0;
    z-index: 14;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #000;
  }

  body.video2-remote-active #video-peer-blur,
  body.video2-remote-active #disconnected-overlay,
  body.video2-remote-active #peer-video-loader,
  body.video2-remote-active #peer-video-loader-text {
    display: none !important;
  }

  .video-container-peer:not(.disconnected)::after,
  body.video2-remote-active .video-container-peer::after {
    content: none;
  }

  .video-container-self {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    background: #2b2b2b;
  }

  .video-container-self .video-player-self {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    background: #2b2b2b;
  }

  .online-counter {
    width: max-content;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
    justify-self: center;
  }

  .online-counter::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #36d271;
    box-shadow: 0 0 0 2px rgba(54,210,113,.2), 0 0 12px rgba(54,210,113,.55);
  }

  .online-text {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.05;
  }

  .online-text span {
    color: #fff;
  }

  .online-text .online-number-char,
  #remoteStartOnlineNumber .online-number-char {
    display: inline-block !important;
    text-align: center;
    transform-origin: top center;
  }

  .online-text .online-number-digit,
  #remoteStartOnlineNumber .online-number-digit {
    min-width: .58em;
  }

  .online-text .online-number-separator,
  #remoteStartOnlineNumber .online-number-separator {
    min-width: 0;
    width: auto;
    padding: 0 .01em;
  }

  .online-text .online-number-char.online-number-change.online-number-up,
  #remoteStartOnlineNumber .online-number-char.online-number-change.online-number-up {
    animation: online-number-tick-up 520ms cubic-bezier(.2, .82, .28, 1) !important;
  }

  .online-text .online-number-char.online-number-change.online-number-down,
  #remoteStartOnlineNumber .online-number-char.online-number-change.online-number-down {
    animation: online-number-tick-down 520ms cubic-bezier(.2, .82, .28, 1) !important;
  }

  #disconnected-overlay.active[data-state="ready"] .remote-start-online {
    display: none !important;
  }

  .mobile-swipe-hint {
    --cube-easing: cubic-bezier(0.42, 0, 0.58, 1);
    --cube-cycle-ms: 6s;
    --cube-iterations: 3;
    --dot-size: 24px;
    --label-font-size: 16px;
    --dx: 44px;
    width: min(190px, 58vw);
    height: calc(var(--dot-size) + 2px);
    display: block;
    margin-top: -58px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.86);
    text-shadow: 0 1px 7px rgba(0,0,0,.72);
    pointer-events: none;
  }

  body.video2-swipe-hint-finished .mobile-swipe-hint {
    display: none !important;
  }

  .mobile-swipe-hint .cube-logo__swipe {
    position: relative;
    width: 100%;
    height: calc(var(--dot-size) + 2px);
    overflow: visible;
    flex: 0 0 auto;
  }

  .mobile-swipe-hint .cube-logo__dot,
  .mobile-swipe-hint .cube-logo__trail {
    position: absolute;
    top: 50%;
    left: 50%;
    height: var(--dot-size);
    opacity: 0;
  }

  .mobile-swipe-hint .cube-logo__dot {
    width: var(--dot-size);
    border-radius: 999px;
    background: #fff;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .mobile-swipe-hint .cube-logo__trail {
    width: var(--dx);
    transform: translateY(-50%) scaleX(.25);
    pointer-events: none;
    z-index: 0;
  }

  .mobile-swipe-hint .cube-logo__dot--1 .cube-logo__trail,
  .mobile-swipe-hint .cube-logo__dot--2 .cube-logo__trail,
  .mobile-swipe-hint .cube-logo__dot--3 .cube-logo__trail {
    transform-origin: left center;
    background: linear-gradient(to right, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 80%);
  }

  .mobile-swipe-hint .cube-logo__dot--4 .cube-logo__trail {
    transform-origin: right center;
    margin-left: calc(-1 * var(--dx));
    background: linear-gradient(to left, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 80%);
  }

  .mobile-swipe-hint .cube-logo__label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--label-font-size);
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot,
  .mobile-swipe-hint.cube-logo--playing .cube-logo__label,
  .mobile-swipe-hint.cube-logo--playing .cube-logo__trail {
    will-change: transform, opacity;
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--1 {
    animation: cube-dot-fwd var(--cube-cycle-ms) var(--cube-easing) var(--cube-iterations);
    animation-delay: 0s;
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--2 {
    animation: cube-dot-fwd var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .75);
    animation-delay: calc(-.75 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--3 {
    animation: cube-dot-fwd var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .5);
    animation-delay: calc(-.5 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--4 {
    animation: cube-dot-back var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .25);
    animation-delay: calc(-.25 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__trail {
    animation: cube-trail var(--cube-cycle-ms) var(--cube-easing) var(--cube-iterations);
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--1 .cube-logo__trail {
    animation-delay: 0s;
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--2 .cube-logo__trail {
    animation-duration: var(--cube-cycle-ms);
    animation-iteration-count: calc(var(--cube-iterations) + .75);
    animation-delay: calc(-.75 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--3 .cube-logo__trail {
    animation-duration: var(--cube-cycle-ms);
    animation-iteration-count: calc(var(--cube-iterations) + .5);
    animation-delay: calc(-.5 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__dot--4 .cube-logo__trail {
    animation-duration: var(--cube-cycle-ms);
    animation-iteration-count: calc(var(--cube-iterations) + .25);
    animation-delay: calc(-.25 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__label--1 {
    animation: cube-label-fwd var(--cube-cycle-ms) var(--cube-easing) var(--cube-iterations);
    animation-delay: 0s;
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__label--2 {
    animation: cube-label-fwd var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .75);
    animation-delay: calc(-.75 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__label--3 {
    animation: cube-label-fwd var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .5);
    animation-delay: calc(-.5 * var(--cube-cycle-ms));
  }

  .mobile-swipe-hint.cube-logo--playing .cube-logo__label--4 {
    animation: cube-label-back var(--cube-cycle-ms) var(--cube-easing) calc(var(--cube-iterations) + .25);
    animation-delay: calc(-.25 * var(--cube-cycle-ms));
  }

  .webcam-label-container,
  .local-settings-overlay { display: none; }

  .video-controls-peer {
    position: absolute;
    left: auto;
    top: var(--mobile-report-margin);
    right: var(--mobile-report-margin);
    bottom: auto;
    transform: none;
    z-index: 36;
    display: none;
    pointer-events: auto;
  }

  #report-btn {
    display: grid;
    pointer-events: auto;
  }

  #report-btn.control-btn-report {
    width: 46px;
    min-width: 0;
    height: 46px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #report-btn.control-btn-report .report-label {
    display: none;
  }

  #mute-btn.control-btn-mute {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    pointer-events: auto;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.65));
  }

  #mute-btn.control-btn-mute svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.35;
  }

  body.video2-connected #top-bar.app-header,
  body.video2-loading #top-bar.app-header,
  body.video2-searching #top-bar.app-header,
  body.video2-start-intent #top-bar.app-header,
  body.video2-connected .chat-control-match,
  body.video2-loading .chat-control-match,
  body.video2-searching .chat-control-match,
  body.video2-connected #video2IdentityTile,
  body.video2-loading #video2IdentityTile,
  body.video2-searching #video2IdentityTile,
  body.video2-connected .video2-identity-popover {
    display: none !important;
  }

  .watermark { display: none; }
  .peer-audio-control {
    display: block !important;
  }
  body.video2-remote-active .video-controls-peer {
    display: flex !important;
  }
  .peer-audio-mark {
    left: var(--mobile-report-margin);
    top: var(--mobile-report-margin);
    width: 92px;
    height: 13px;
    opacity: .68;
  }
  body.video2-remote-active .peer-audio-mark .watermark {
    display: block !important;
  }
  .peer-audio-panel {
    display: none !important;
  }

  .video2-vote-panel {
    right: 10px;
    bottom: 10px;
    gap: 5px;
    padding: 5px;
    background: rgba(0,0,0,.38);
  }

  .remote-country-flag {
    top: calc(var(--mobile-report-margin) + 48px);
    right: var(--mobile-report-margin);
    width: 42px;
    min-width: 42px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.65));
  }

  .remote-country-flag.country-flag-image {
    border-radius: 3px;
  }

  .video2-vote-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    filter: none;
    box-shadow: none;
  }

  .video2-vote-btn svg {
    width: 23px;
    height: 23px;
  }
  .disconnected-text { font-size: 28px; }

  #disconnected-overlay {
    background: transparent;
  }

  #disconnected-overlay .disconnected-overlay-copy {
    display: none;
  }

  #message-area.message-section {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  #chat-controls.chat-controls {
    display: block !important;
    pointer-events: auto;
  }

  #messages.messages-container {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: calc(var(--mobile-control-bottom) + 72px);
    z-index: 22;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    height: 132px;
    min-height: 0;
    max-height: 132px;
    padding: 0;
    border: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
    background: transparent;
    box-shadow: none;
    color: #fff;
    pointer-events: none;
  }

  #connectStatus.connect-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: calc(var(--mobile-control-bottom) + var(--mobile-control-size) + 38px);
    z-index: 22;
    max-width: none;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(10,14,22,.56);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    display: block !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-shadow: none;
    pointer-events: none;
  }

  #connectStatus.connect-status:empty {
    display: none !important;
  }

  .message {
    width: auto;
    max-width: 92%;
    margin: 0;
    padding: 3px 0;
    background: rgba(0,0,0,0.01);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.24;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    filter: none;
    text-shadow: 0 1px 4px rgba(0,0,0,.78);
  }

  .message-author {
    font-weight: 400;
    opacity: .82;
  }

  .message-you .message-author {
    color: #3f9fff;
    opacity: 1;
  }

  .message-stranger .message-author {
    color: #ff7f00;
    opacity: 1;
  }

  .message-author-icon {
    margin-right: 4px;
    font-size: 14px;
    vertical-align: -2px;
  }

  .message-author-icon.gender-avatar-icon {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    font-size: inherit;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
    vertical-align: -4px;
  }

  .message-text {
    font-weight: 400;
  }

  .message-you {
    align-self: flex-start;
    text-align: left;
    color: #fff;
  }

  .message-stranger {
    align-self: flex-start;
    text-align: left;
    color: #fff;
  }

  .message-system,
  .message-status,
  .message-typing {
    align-self: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .message.message-system-terminal {
    width: 100%;
    max-width: 100%;
    padding: 0;
    filter: none;
    text-shadow: none;
  }

  .message.message-system-terminal .message-text {
    width: min(300px, calc(100vw - 48px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 10px 28px rgba(0,0,0,.34);
    color: #7f1d1d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: none;
  }

  .message-policy-notice {
    display: none;
  }

  .mobile-control-policy {
    position: fixed;
    left: 18px;
    right: 18px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    bottom: calc(var(--mobile-control-bottom) + (var(--mobile-control-size) * 2) + 46px);
    z-index: 39;
    display: block;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0,0,0,.78);
    pointer-events: auto;
  }

  .mobile-control-policy a {
    color: #3e87f7;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-control-policy span {
    display: block;
  }

  .mobile-quick-emojis {
    position: fixed;
    left: 76px;
    right: 76px;
    bottom: calc(var(--mobile-control-bottom) - 3px);
    z-index: 41;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2px, .9vw, 5px);
    height: var(--mobile-control-size);
    pointer-events: auto;
  }

  .video2-session-timer {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
    background: rgba(0,0,0,.5);
  }

  body.mobile-chat-open .video2-session-timer {
    display: none;
  }

  .mobile-quick-emoji {
    width: clamp(20px, 5.6vw, 28px);
    height: var(--mobile-control-size);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0,0,0,.78);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.62));
    cursor: pointer;
  }

  .mobile-quick-emoji:disabled,
  .mobile-quick-emoji[aria-disabled="true"] {
    opacity: .38;
    cursor: default;
  }

  body.video2-searching .mobile-control-policy,
  body.video2-loading .mobile-control-policy,
  body.video2-connected .mobile-control-policy,
  body.video2-media-denied .mobile-control-policy,
  body:not(.video2-initial-screen) .mobile-control-policy,
  body.mobile-chat-open .mobile-control-policy {
    display: none !important;
  }

  #postDisconnectActions {
    display: none !important;
  }

  #typing.message-typing {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: min(78vw, 240px);
    padding: 5px 9px;
    border-radius: 11px;
    background: rgba(18,18,18,.56);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }

  #typing.message-typing .typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 1em;
  }

  #typing.message-typing .typing-dots span {
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    opacity: .35;
    animation: typing-dot 1.1s ease-in-out infinite;
  }

  #typing.message-typing .typing-dots span:nth-child(2) {
    animation-delay: .14s;
  }

  #typing.message-typing .typing-dots span:nth-child(3) {
    animation-delay: .28s;
  }

  #input-area.input-section {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 23;
    display: block;
    height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  .input-wrapper,
  #video2StopTile {
    display: none;
  }

  body.mobile-chat-open .input-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--mobile-chat-vh, 100vh) / 2);
    bottom: auto;
    z-index: 45;
    display: block;
    height: 44px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.24);
    border-radius: 0;
    background: rgba(24,24,24,.86);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  body.mobile-chat-open .message-input {
    position: absolute;
    inset: 0;
    height: 100%;
    padding: 0 54px 0 14px;
    color: #fff;
    font-size: 16px;
    line-height: 44px;
  }

  body.mobile-chat-open .message-input::placeholder {
    color: rgba(255,255,255,.62);
  }

  body.mobile-chat-open #send-btn.button-send {
    top: calc((var(--mobile-chat-vh, 100vh) / 2) + 2px);
    right: 8px;
    bottom: auto;
    width: 40px;
    height: 40px;
    z-index: 46;
  }

  #skip-btn.button-skip,
  #mobilePremiumControl,
  .chat-control-match,
  #video2IdentityTile,
  .button-send {
    position: fixed;
    top: auto;
    bottom: var(--mobile-control-bottom);
    z-index: 40;
    width: var(--mobile-control-size);
    height: var(--mobile-control-size);
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 999px;
    background: rgba(32,32,32,.62);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    color: transparent;
    font-size: 0;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
  }

  #skip-btn.button-skip {
    left: 18px;
    right: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #skip-btn.is-loading .button-loader {
    display: none !important;
  }

  #skip-btn.is-loading .button-label {
    opacity: 1;
  }

  #mobilePremiumControl {
    left: auto;
    right: 18px;
    bottom: calc(var(--mobile-control-bottom) + var(--mobile-control-size) + 12px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #mobilePremiumControl svg {
    display: block;
    width: 34px;
    height: 34px;
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  }

  #send-btn.button-send {
    left: auto;
    right: 18px;
    display: grid !important;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #send-btn.button-send .send-label {
    display: none;
  }

  #send-btn.button-send .mobile-chat-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  }

  #send-btn.button-send .mobile-chat-icon svg {
    display: block;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #send-btn.button-send .mobile-chat-icon svg path:nth-child(-n+3) {
    fill: currentColor;
  }

  #send-btn.button-send:disabled .mobile-chat-icon,
  #send-btn.button-send[aria-disabled="true"] .mobile-chat-icon {
    color: rgba(255,255,255,.42);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.32));
  }

  .chat-control-match,
  #video2IdentityTile {
    bottom: calc(50vh + 13px);
    bottom: calc(50dvh + 13px);
    width: calc((100vw - 46px) / 2);
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.13);
    background:
      linear-gradient(145deg, rgba(8,12,20,.26), rgba(8,12,20,.08) 58%, rgba(255,255,255,.025));
    box-shadow:
      0 8px 18px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.10),
      inset 0 -1px 0 rgba(255,255,255,.025);
    color: #fff;
    font-size: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.video2-initial-screen.video2-ready:not(.video2-loading):not(.video2-searching):not(.video2-connected) .chat-control-match,
  body.video2-initial-screen.video2-ready:not(.video2-loading):not(.video2-searching):not(.video2-connected) #video2IdentityTile {
    border-color: rgba(255,255,255,.14);
    background:
      linear-gradient(145deg, rgba(6,10,18,.24), rgba(6,10,18,.075) 58%, rgba(255,255,255,.02));
    box-shadow:
      0 8px 18px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.11),
      inset 0 -1px 0 rgba(255,255,255,.025);
    color: #fff;
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
  }

  .chat-control-match {
    left: auto;
    right: 15px;
  }

  #video2IdentityTile {
    left: 15px;
    right: auto;
  }

  #skip-btn.button-skip::before,
  .button-send::before {
    content: none;
  }

  .chat-control-match::before,
  #video2IdentityTile::before {
    content: none;
  }

  .control-emoji {
    display: inline-block;
    flex: 0 0 auto;
    color: #fff;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  }

  .control-emoji.country-flag-image {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }

  .chat-control-match > .control-emoji,
  #video2IdentityTile > .control-emoji {
    display: none !important;
  }

  #skip-btn.button-skip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    background: #fff;
    -webkit-mask: url("/assets/cycle.svg") center / contain no-repeat;
    mask: url("/assets/cycle.svg") center / contain no-repeat;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  }

  #skip-btn.button-skip::after {
    content: none;
  }

  .button-send::after {
    content: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: #fff;
    -webkit-mask: url("/assets/chat-bubble-dots.svg") center / contain no-repeat;
    mask: url("/assets/chat-bubble-dots.svg") center / contain no-repeat;
    position: relative;
    box-sizing: border-box;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  }

  .button-send:disabled::after,
  .button-send[aria-disabled="true"]::after {
    background: rgba(255,255,255,.42);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.32));
  }

  .button-send:disabled,
  .button-send[aria-disabled="true"] {
    cursor: default;
    opacity: .72;
  }

  .button-send .keyboard-hint {
    display: none;
  }

  .chat-control-match .chat-label,
  #video2IdentityTile .identity-label {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }

  .chat-control-match::after {
    content: none;
  }

  .chat-control-match::before {
    content: none;
  }

  #video2IdentityTile::after {
    content: none;
  }

  #video2IdentityTile::before {
    content: none;
  }

  .chat-control-match > .control-emoji,
  #video2IdentityTile > .control-emoji:not(.gender-avatar-icon) {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 17px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  }

  #video2IdentityTile > .control-emoji.gender-avatar-icon {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    box-sizing: content-box !important;
    padding: 3px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.22) !important;
    object-fit: contain !important;
    font-size: 0 !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
  }

  .chat-select-wrap {
    display: none;
  }

  .video2-identity-popover {
    position: fixed;
    right: auto;
    left: 16px;
    bottom: calc(50vh + 60px);
    bottom: calc(50dvh + 60px);
    top: auto;
    z-index: 60;
    width: calc((100vw - 48px) / 2);
    transform: none;
    pointer-events: auto;
  }

  #video2CountryPopover.video2-country-popover {
    position: fixed;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    align-content: start;
    gap: 4px;
    width: min(82vw, 330px);
    max-height: none;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 10px calc(env(safe-area-inset-bottom, 0px) + 16px);
    border: 0;
    border-left: 1px solid rgba(255,255,255,.18);
    border-radius: 0;
    background: rgba(25,25,25,.88);
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(1.22);
    -webkit-backdrop-filter: blur(16px) saturate(1.22);
    overflow-y: auto;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 210ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  #video2CountryPopover.video2-country-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  body.video2-country-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 79;
    background: rgba(0,0,0,.22);
    pointer-events: none;
  }

  body.video2-country-drawer-open #top-bar.app-header {
    display: none !important;
  }

  #video2CountryPopover .video2-country-option {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    text-align: left;
    padding: 0 10px;
  }

  #video2CountryPopover .video2-country-option.is-selected {
    background: rgba(255,255,255,.16);
  }

  #video2CountryPopover .country-option-emoji.country-flag-image {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 0;
  }

  .device-settings-drawer .device-modal-v2 {
    width: min(82vw, 330px);
    min-width: 0;
  }

  .premium-drawer .device-modal-v2 {
    width: min(92vw, 350px);
  }

  .deviceModalBody > .deviceSettingsSection:first-child {
    display: none !important;
  }

  #settingsDarkModeRow {
    display: none !important;
  }

  .interestSettingsCard .deviceCardHead,
  .interestSettingsCard .deviceCardHeadText,
  .interestSettingsCard .deviceCardValue {
    min-width: 0;
  }

  .interestChips {
    gap: 5px;
  }

  .interestChip {
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
    white-space: normal;
  }

  .interestChip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .premium-hero {
    padding: 13px;
  }

  .premium-body {
    gap: 8px;
    padding: 10px;
  }

  .premium-price {
    min-height: 0;
    margin-top: 10px;
    font-size: 27px;
    line-height: 1.26;
  }

  .premium-price span {
    font-size: 13px;
  }

  .premium-terms-price {
    font-size: 12px;
  }

  .premium-hero p,
  .premium-note {
    font-size: 11.5px;
    line-height: 1.3;
  }

  .premium-plan-card h3 {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .premium-feature-list {
    gap: 6px;
  }

  .premium-feature {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 5px;
  }

  .premium-feature-mark {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 12px;
  }

  .premium-feature strong {
    font-size: 12px;
  }

  .premium-feature small {
    font-size: 11px;
    line-height: 1.25;
  }

  .premium-restore-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .premium-restore-input,
  .premium-restore-btn {
    min-height: 36px;
    font-size: 12px;
  }

  .premium-drawer-footer {
    gap: 8px;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .premium-primary-btn {
    min-height: 46px;
  }
}

body:not(.video2-remote-active) .peer-audio-mark .watermark {
  display: none !important;
}

body.video2-remote-active .peer-audio-mark .watermark {
  display: block !important;
}

@media (min-width: 521px) {
  body.video2-remote-active .peer-audio-mark {
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: auto;
    width: 200px;
    height: 28px;
    z-index: 38;
  }
}

body.video2-dark-mode,
body.video2-dark-mode #main.app-container {
  background: #080d18;
  color: #f8fafc;
}

body.video2-dark-mode #videos.video-section {
  background: #05070c;
}

body.video2-dark-mode #message-area.message-section {
  background: #161b25;
  color: #e5e7eb;
}

body.video2-dark-mode #messages.messages-container {
  background: #111827;
  color: #e5e7eb;
  box-shadow: none;
}

body.video2-dark-mode #input-area.input-section {
  background: #111827;
}

body.video2-dark-mode #input-area.input-section .input-wrapper,
body.video2-dark-mode .input-wrapper {
  background: #111827;
  box-shadow: none;
}

body.video2-dark-mode .message-input {
  color: #f8fafc;
}

body.video2-dark-mode .message-input::placeholder {
  color: rgba(248,250,252,.55);
}

body.video2-dark-mode .message,
body.video2-dark-mode .message-author,
body.video2-dark-mode .message-text,
body.video2-dark-mode .message-policy-notice {
  color: #e5e7eb;
}

body.video2-dark-mode .message-policy-notice {
  background: #182131;
  box-shadow: 0 1px 4px rgba(0,0,0,.34);
}

body.video2-dark-mode .message-stranger {
  background: #1f2937;
  color: #f3f4f6;
}

body.video2-dark-mode .message-you {
  background: #3173e8;
  color: #fff;
}

body.video2-dark-mode .message-you .message-author {
  color: rgba(255,255,255,.85);
}

body.video2-dark-mode .message-stranger .message-author {
  color: #ff9633;
}

body.video2-dark-mode .message-system,
body.video2-dark-mode .message-status {
  background: transparent;
  color: rgba(229,231,235,.72);
}

body.video2-dark-mode .message-typing {
  background: #1f2937;
  color: rgba(229,231,235,.78);
}

body.video2-dark-mode .message-author {
  color: rgba(229,231,235,.68);
}

body.video2-dark-mode .video2-country-popover,
body.video2-dark-mode .video2-identity-popover {
  border-color: rgba(255,255,255,.14);
  background: rgba(17,24,39,.96);
  box-shadow: 0 12px 28px rgba(0,0,0,.36);
}

body.video2-dark-mode .video2-country-option,
body.video2-dark-mode .video2-gender-btn {
  color: #f8fafc;
}

body.video2-dark-mode .video2-country-option:hover,
body.video2-dark-mode .video2-gender-btn:hover {
  background: rgba(255,255,255,.08);
}

body.video2-dark-mode select,
body.video2-dark-mode option {
  background: #111827;
  color: #f8fafc;
}

.mod-strike-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 6px 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fecaca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.message.message-system-terminal {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.message.message-system-terminal .message-text {
  display: block;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(185,28,28,.96), rgba(127,29,29,.96));
  border: 1px solid rgba(248,113,113,.72);
  box-shadow: 0 10px 28px rgba(127,29,29,.32), 0 2px 10px rgba(0,0,0,.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,.42);
}

.mod-strike-modal-backdrop,
#ban-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(239,68,68,.18), transparent 34%),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.mod-strike-modal,
#ban-modal-overlay .ban-modal-card {
  width: min(410px, 92vw);
  max-height: min(88vh, 650px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(30,41,59,.98), rgba(15,23,42,.98)),
    #0f172a;
  color: #f8fafc;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.48);
  padding: 17px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#ban-modal-overlay .ban-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.mod-strike-modal-title,
.ban-modal-title {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: -2px -2px 12px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(248,113,113,.34), transparent 62%),
    linear-gradient(180deg, rgba(127,29,29,.88), rgba(69,10,10,.84));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 14px 34px rgba(127,29,29,.22);
  font-size: clamp(34px, 9vw, 46px);
  line-height: 0.95;
  font-weight: 950;
  color: #fff;
  letter-spacing: 0.045em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.36);
}

.mod-strike-modal-rule,
.ban-modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.30);
  color: #fecaca;
  font-size: 11px;
  font-weight: 900;
}

.ban-modal-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.16);
}

.mod-strike-modal-text,
.ban-modal-copy,
.ban-modal-guidance,
.ban-modal-note {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(226, 232, 240, 0.78);
}

.ban-modal-reason {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background:
    linear-gradient(180deg, rgba(251,146,60,.105), rgba(248,113,113,.06)),
    rgba(255,255,255,.045);
}

.ban-modal-reason-label {
  color: rgba(253, 186, 116, 0.90);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ban-modal-reason-value {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ban-modal-reason-link {
  width: fit-content;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.ban-modal-reason-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mod-strike-modal-quote,
.ban-modal-panel,
.ban-modal-imgwrap {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ban-modal-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.ban-modal-meta-row + .ban-modal-meta-row {
  margin-top: 7px;
}

.ban-modal-meta-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.82);
}

.ban-modal-meta-value,
.ban-modal-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.94);
  text-align: right;
}

.ban-modal-link,
.mod-strike-modal-links a {
  color: #93c5fd;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.ban-modal-link:hover,
.mod-strike-modal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ban-modal-imgwrap {
  overflow: hidden;
  padding: 0;
}

.ban-modal-imgwrap img {
  width: 100%;
  max-height: 170px;
  display: block;
  object-fit: cover;
}

.ban-modal-unban-btn,
.mod-strike-modal-ack {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37,99,235,.28);
}

.ban-modal-unban-btn:disabled,
.mod-strike-modal-ack:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.ban-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ban-modal-footer .ban-modal-note {
  margin: 0;
}

.ban-modal-secondary {
  border: 0;
  background: transparent;
  padding: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.safety-info-drawer.open {
  z-index: 2147483647;
  background: rgba(2, 6, 23, 0.38);
}

.mobile-swipe-hint {
  display: none !important;
}

@media (max-width: 520px) and (pointer: coarse) {
  body.video2-initial-screen.video2-ready:not(.video2-loading):not(.video2-searching):not(.video2-connected):not(.video2-media-denied) .mobile-swipe-hint {
    display: block !important;
  }

  body:not(.video2-loading):not(.video2-searching):not(.video2-connected) .chat-control-match,
  body:not(.video2-loading):not(.video2-searching):not(.video2-connected) #video2IdentityTile {
    border-color: rgba(255,255,255,.035) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.018), rgba(255,255,255,.002) 58%, rgba(0,0,0,.006)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.026),
      inset 0 -1px 0 rgba(255,255,255,.004) !important;
    backdrop-filter: blur(30px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
  }

  body:not(.video2-loading):not(.video2-searching):not(.video2-connected) .chat-control-match .chat-label,
  body:not(.video2-loading):not(.video2-searching):not(.video2-connected) #video2IdentityTile .identity-label {
    color: rgba(255,255,255,.92) !important;
  }

  body:not(.video2-loading):not(.video2-searching):not(.video2-connected) #video2IdentityTile > .control-emoji.gender-avatar-icon {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)) !important;
  }
}

@media (max-width: 520px) {
  #countryTile.chat-control-match,
  button#video2IdentityTile.video2-identity-tile {
    border: 1px solid rgba(255,255,255,.03) !important;
    border-radius: 13px !important;
    background-color: rgba(0,0,0,.003) !important;
    background-image:
      linear-gradient(145deg, rgba(255,255,255,.014), rgba(255,255,255,.001) 44%, rgba(0,0,0,.004)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.024),
      inset 0 -1px 0 rgba(255,255,255,.003) !important;
    outline: 1px solid rgba(0,0,0,.012) !important;
    backdrop-filter: blur(32px) saturate(1.85) !important;
    -webkit-backdrop-filter: blur(32px) saturate(1.85) !important;
    color: #fff !important;
    isolation: isolate;
    transition: opacity 140ms ease, transform 140ms ease, background-color 120ms ease, border-color 120ms ease !important;
  }

  #countryTile.chat-control-match:hover,
  #countryTile.chat-control-match:active,
  #countryTile.chat-control-match[aria-expanded="true"],
  button#video2IdentityTile.video2-identity-tile:hover,
  button#video2IdentityTile.video2-identity-tile:active,
  button#video2IdentityTile.video2-identity-tile[aria-expanded="true"] {
    background-color: rgba(0,0,0,.008) !important;
    background-image:
      linear-gradient(145deg, rgba(255,255,255,.022), rgba(255,255,255,.002) 42%, rgba(0,0,0,.006)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.032),
      inset 0 -1px 0 rgba(255,255,255,.004) !important;
    filter: none !important;
  }

  #top-bar.app-header,
  #countryTile.chat-control-match,
  button#video2IdentityTile.video2-identity-tile {
    transition: opacity 140ms ease, transform 140ms ease, background-color 120ms ease, border-color 120ms ease !important;
  }

  body.video2-connected #top-bar.app-header,
  body.video2-loading #top-bar.app-header,
  body.video2-searching #top-bar.app-header,
  body.video2-start-intent #top-bar.app-header {
    display: grid !important;
    opacity: 0 !important;
    transform: translate(-50%, -53%) scale(.98) !important;
    pointer-events: none !important;
  }

  body.video2-connected #countryTile.chat-control-match,
  body.video2-loading #countryTile.chat-control-match,
  body.video2-searching #countryTile.chat-control-match,
  body.video2-connected button#video2IdentityTile.video2-identity-tile,
  body.video2-loading button#video2IdentityTile.video2-identity-tile,
  body.video2-searching button#video2IdentityTile.video2-identity-tile {
    display: flex !important;
    opacity: 0 !important;
    transform: translateY(-5px) scale(.985) !important;
    pointer-events: none !important;
  }

  #countryTile.chat-control-match::before,
  #countryTile.chat-control-match::after,
  button#video2IdentityTile.video2-identity-tile::before,
  button#video2IdentityTile.video2-identity-tile::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #countryTile.chat-control-match .chat-label,
  button#video2IdentityTile.video2-identity-tile .identity-label {
    color: rgba(255,255,255,.88) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.62) !important;
  }

  #countryTile.chat-control-match .control-emoji,
  button#video2IdentityTile.video2-identity-tile .control-emoji {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.62)) !important;
  }

  .logo-image.video2-initial-fade,
  .mobile-cube-logo-main.video2-initial-fade,
  .mobile-swipe-hint.video2-initial-fade,
  #top-bar.app-header .online-counter.video2-initial-fade,
  .mobile-control-policy.video2-initial-fade {
    transition: opacity 140ms ease, transform 140ms ease !important;
    opacity: 1;
  }

  .logo-image.video2-initial-fade.video2-initial-fade-hidden,
  .mobile-cube-logo-main.video2-initial-fade.video2-initial-fade-hidden,
  .mobile-swipe-hint.video2-initial-fade.video2-initial-fade-hidden,
  #top-bar.app-header .online-counter.video2-initial-fade.video2-initial-fade-hidden {
    opacity: 0 !important;
    transform: translateY(-5px) scale(.985) !important;
    pointer-events: none !important;
  }

  .mobile-control-policy.video2-initial-fade.video2-initial-fade-hidden {
    opacity: 0 !important;
    transform: translateY(6px) !important;
    pointer-events: none !important;
  }
}

#skip-btn.button-skip .button-label,
#video2StopTile .button-label,
.chat-control-match .chat-label,
#video2IdentityTile .identity-label,
#video2PremiumTile .premium-label,
#video2SettingsTile .settings-label {
  line-height: 1.18 !important;
  padding-block: 1px 2px;
  box-sizing: border-box;
}

body.video2-loading #peer.video-container-peer,
body.video2-searching #peer.video-container-peer {
  border-color: rgba(255,255,255,0.12) !important;
  background: #191919 url("/tv-static-dark.gif") center / cover repeat !important;
  filter: none !important;
  box-shadow: none !important;
}

body.video2-loading #peer.video-container-peer::after,
body.video2-searching #peer.video-container-peer::after {
  background: #191919 url("/tv-static-dark.gif") center / cover repeat !important;
  filter: none !important;
  opacity: .92 !important;
  animation: video2-static-jitter .18s steps(2, end) infinite !important;
}

body.video2-loading #peer-static-gif.peer-static-gif,
body.video2-searching #peer-static-gif.peer-static-gif {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
}

/* Brand-colored open ring; only the complete ring rotates. */
#peer-video-loader.video-loader,
#peer-cube-spinner {
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none;
}

.connection-ring {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform-box: view-box;
  animation: connection-ring-spin 1600ms linear infinite;
}
@keyframes connection-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#peer-video-loader-text.video-loader-text,
#peer-cube-status,
#peer-cube-status.is-active {
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .01em;
  pointer-events: none;
}

.connection-title { display: block; }



@media (max-width: 520px) {
  #peer-video-loader-text.video-loader-text,
  #peer-cube-status { font-size: 16px; }
  .connection-ring { animation-duration: 900ms; }
}

@media (prefers-reduced-motion: reduce) {
  #peer-video-loader.video-loader,
  #peer-cube-spinner {
    animation: none;
  }
  .connection-ring { animation-duration: 4s; }
  #peer-video-loader-text .loader-status-dots span,
  #peer-cube-status .loader-status-dots span {
    animation-duration: 2.2s;
  }
}
@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .connection-ring { animation-duration: 1.4s; }
}

#peer-video-loader-text .loader-status-dots,
#peer-cube-status .loader-status-dots {
  display: inline-flex;
  width: 1.25em;
  margin-left: 2px;
  vertical-align: baseline;
  justify-content: flex-start;
}

#peer-video-loader-text .loader-status-dots span,
#peer-cube-status .loader-status-dots span {
  display: inline-block;
  opacity: .32;
  animation: loader-status-dot 1.4s ease-in-out infinite;
}

#peer-video-loader-text .loader-status-dots span:nth-child(2),
#peer-cube-status .loader-status-dots span:nth-child(2) {
  animation-delay: .18s;
}

#peer-video-loader-text .loader-status-dots span:nth-child(3),
#peer-cube-status .loader-status-dots span:nth-child(3) {
  animation-delay: .36s;
}

@keyframes loader-status-dot {
  0%, 80%, 100% { opacity: .2; }
  40% { opacity: 1; }
}

/* Overlay the log without changing its height when unread messages arrive. */
#newMessagesBtn {
  grid-area: messages;
  align-self: end;
  justify-self: end;
  z-index: 24;
  margin: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: #075db5;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

#newMessagesBtn[hidden] { display: none; }

#messages:focus-visible,
#newMessagesBtn:focus-visible {
  outline: 3px solid #1687f8;
  outline-offset: -3px;
}

#messages > * { flex-shrink: 0; }

@media (max-width: 520px) {
  #messages.messages-container {
    justify-content: flex-start;
    overflow-y: auto;
    pointer-events: auto;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Bottom-align a short conversation while keeping older messages reachable. */
  #messages > :first-child { margin-top: auto; }

  #newMessagesBtn {
    position: absolute;
    right: 20px;
    bottom: calc(var(--mobile-control-bottom) + 72px);
    margin: 0;
  }
}

/* Keep expanded sections and long/translated copy in one reachable scroll area. */
#premiumDrawer .device-modal-v2 {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100vw;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#premiumDrawer .deviceModalHeader,
#premiumDrawer .premium-body,
#premiumDrawer .premium-drawer-footer {
  flex: 0 0 auto;
  min-width: 0;
}

#premiumDrawer .premium-body {
  display: block;
  overflow: visible;
}

#premiumDrawer .premium-body > * + * { margin-top: 14px; }
#premiumDrawer .premium-drawer-footer { margin-top: auto; }

#premiumDrawer .deviceModalHeader > div,
#premiumDrawer .premium-feature > div,
#premiumDrawer .premium-trust-item {
  min-width: 0;
  max-width: 100%;
}

#premiumDrawer .deviceModalCloseBtn { flex: 0 0 34px; }
#premiumDrawer .premium-hero { overflow: visible; }

#premiumDrawer .premium-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

#premiumDrawer .premium-price strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

#premiumDrawer :is(p, h2, h3, strong, small, summary, button, .deviceModalSub, .premium-trust-item) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#premiumDrawer :is(.premium-primary-btn, .premium-secondary-btn, .premium-restore-btn) {
  height: auto;
  padding: 12px;
  line-height: 1.4;
}

#premiumDrawer .premium-restore-row {
  grid-template-columns: minmax(0, 1fr);
}

#premiumDrawer .premium-feature { align-items: start; }
#premiumDrawer .premium-feature small { line-height: 1.5; }
#premiumDrawer .premium-trust-item { text-align: start; }

/* Center the status card and its title independently of the animated dots. */
#peer-video-loader-text.video-loader-text {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
#peer-cube-status { transform: translateX(-50%); }
.connection-title {
  position: relative;
  padding-inline: 1.4em;
  text-align: center;
}
#peer-video-loader-text .connection-title .loader-status-dots,
#peer-cube-status .connection-title .loader-status-dots {
  position: absolute;
  width: 1.25em;
  margin: 0;
  right: 0;
  top: 0;
}

/* Keep the text centered while trailing dots fade without moving it. */
#peer-video-loader-text .loader-status-dots,
#peer-cube-status .loader-status-dots { display: none; }
#peer-video-loader-text[data-phase="connecting"] .loader-status-dots,
#peer-cube-status[data-phase="connecting"] .loader-status-dots { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  #peer-video-loader-text .loader-status-dots span,
  #peer-cube-status .loader-status-dots span { animation-duration: 2.2s; }
}

/* Premium uses the same blue/orange palette as the site and video controls. */
#premiumDrawer {
  --premium-bg: #f4f8ff;
  --premium-surface: #fff;
  --premium-surface-raised: #edf5ff;
  --premium-border: #d8e5f5;
  --premium-gold: #ff9d00;
  --premium-gold-bright: #ffad29;
  --premium-gold-soft: #0066cc;
  --premium-coral: #0066cc;
  --premium-green: #14704d;
  --premium-text: #142c49;
  --premium-muted: #526780;
}

#premiumDrawer .device-modal-v2 {
  background: var(--premium-bg);
  color: var(--premium-text);
  scrollbar-color: #91bbec var(--premium-bg);
}

#premiumDrawer .deviceModalHeader {
  background: #fff;
  border-top: 4px solid #017ffe;
}

#premiumDrawer .deviceModalHeader h2 { color: #0066cc; }
#premiumDrawer .deviceModalSub { color: #526780; }
#premiumDrawer .deviceModalCloseBtn { background: #eaf3ff; color: #215581; }

#premiumDrawer .premium-hero {
  padding: 20px 17px;
  border-color: #bdd8f9;
  background: linear-gradient(135deg, #e7f2ff, #fff 75%);
  box-shadow: 0 4px 16px rgba(17,83,156,.06);
}

#premiumDrawer .premium-badge-row {
  background: #fff;
  border-color: #bdd8f9;
  color: #0066cc;
}

#premiumDrawer .premium-headline {
  margin: 15px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #142c49;
}

#premiumDrawer .premium-price { color: #0066cc; }
#premiumDrawer .premium-price span { color: #36577e; }
#premiumDrawer .premium-hero p { color: #526780; max-width: none; line-height: 1.5; }

#premiumDrawer .premium-plan-card {
  padding: 16px 10px 8px;
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  background: #fff;
}

#premiumDrawer .premium-plan-card h3 { margin-inline: 7px; }
#premiumDrawer .premium-feature { padding-block: 10px; border-bottom-color: #e6edf7; }
#premiumDrawer .premium-feature-mark { background: #e9f3ff; border-color: #c6dfff; color: #017ffe; }
#premiumDrawer .premium-feature strong { font-size: 13px; }
#premiumDrawer .premium-feature small { font-size: 12px; }

#premiumDrawer .premium-restore-input { background: #fff; color: #142c49; font-size: 16px; }
#premiumDrawer .premium-restore-input::placeholder { color: #65768b; }
#premiumDrawer .premium-restore-btn { background: #e9f3ff; border-color: #bdd8f9; color: #0066cc; }
#premiumDrawer .premium-restore-btn:hover { background: #d8eaff; }
#premiumDrawer .premium-terms-price { color: #36577e; }

#premiumDrawer .premium-drawer-footer { background: #fff; gap: 10px; }
#premiumDrawer .premium-offer-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #36577e;
  text-align: center;
}
#premiumDrawer .premium-primary-btn {
  min-height: 50px;
  background: #ff9d00;
  color: #382100;
  box-shadow: 0 4px 0 #d47a00, 0 8px 18px rgba(255,157,0,.15);
  font-size: 15px;
}
#premiumDrawer .premium-primary-btn:hover:not(:disabled) { background: #ffad29; }
#premiumDrawer .premium-primary-btn:focus-visible { outline: 3px solid #017ffe; outline-offset: 4px; }
#premiumDrawer .premium-secondary-btn { background: #edf5ff; color: #0066cc; border-color: #bdd8f9; }
#premiumDrawer .premium-secondary-btn:hover:not(:disabled) { background: #d8eaff; color: #0059b3; }
#premiumDrawer .premium-checkout-caption { margin: 2px 0 0; color: #526780; font-size: 11px; line-height: 1.5; text-align: center; }

#premiumDrawer .premium-hero [hidden] { display: none; }
#premiumDrawer .premium-hero.is-active { padding: 16px; }
#premiumDrawer .premium-hero.is-active .premium-price {
  margin-top: 0;
  min-height: 0;
  font-size: 24px;
}

/* Explicit playback recovery when the browser blocks autoplay. */
#remote-play-btn { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:30; max-width:90%; padding:12px 20px; border:2px solid #ff9d00; border-radius:24px; background:#017ffe; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
#remote-play-btn[hidden] { display:none; }

/* Video settings: a focused workspace, with room for every control. */
#device-selection-modal {
  --settings-bg: #15191f;
  --settings-card: #1e242d;
  --settings-field: #141a22;
  --settings-border: #343e4b;
  --settings-muted: #aebacb;
  --settings-blue: #69b5ff;
  color-scheme: dark;
  visibility: hidden;
  transition: background 220ms ease, visibility 220ms;
}
#device-selection-modal.open {
  visibility: visible;
  background: transparent;
}
#device-selection-modal .device-modal-v2 {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(33vw, 430px);
  min-width: 340px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--settings-bg);
  border: 0;
  border-left: 1px solid var(--settings-border);
  border-radius: 0;
  box-shadow: none;
  color: #f4f7fc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(100%);
}
#device-selection-modal.open .device-modal-v2 { transform: translateX(0); }
#device-selection-modal .deviceModalHeader {
  padding: 16px 16px 12px;
  align-items: center;
  border: 0;
  background: linear-gradient(115deg, #202f40, #15191f 80%);
}
#device-selection-modal .deviceModalTitle { min-width: 0; }
#device-selection-modal #device-title {
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}
#device-selection-modal .deviceModalSub { color: var(--settings-muted); font-size: 13px; margin-top: 9px; }
#device-selection-modal .deviceModalCloseBtn {
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 1px solid var(--settings-border); border-radius: 50%;
  background: #202831; color: #e6effa; font-size: 22px;
}
#device-selection-modal .settingsTabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin: 4px 16px 8px;
  background: #0f141b;
  border: 1px solid #293340;
  border-radius: 14px;
}
#device-selection-modal .settingsTabs button {
  min-width: 0; min-height: 34px; padding: 6px 4px;
  font: inherit; font-size: 12px; line-height: 1.4; font-weight: 700;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--settings-muted); cursor: pointer;
}
#device-selection-modal .settingsTabs button[aria-selected="true"] {
  background: #203d59; color: #e0f0ff; border-color: #386991;
}
#device-selection-modal .deviceModalBody {
  padding: 12px 16px 16px; gap: 0; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #49596c transparent;
}
#device-selection-modal .deviceModalBody::-webkit-scrollbar { display: block; width: 4px; }
#device-selection-modal .deviceModalBody::-webkit-scrollbar-thumb { background: #49596c; border-radius: 4px; }
#device-selection-modal .settingsTabPanel { display: grid; gap: 16px; min-width: 0; align-content: start; }
#device-selection-modal .settingsTabPanel[hidden] { display: none; }
#device-selection-modal .deviceSettingsSection { gap: 8px; min-width: 0; margin: 0; }
#device-selection-modal .deviceSettingsSectionTitle {
  color: var(--settings-muted); font-size: 11px; letter-spacing: .09em; line-height: 1.4; font-weight: 700;
}
#device-selection-modal :is(.deviceSettingRow, .deviceCard) {
  background: var(--settings-card); border: 1px solid var(--settings-border);
  border-radius: 12px; padding: 12px; gap: 10px; min-width: 0;
}
#device-selection-modal :is(.deviceSettingTitle, .deviceCardLabel) { color: #f3f7fc; font-weight: 650; font-size: 13px; line-height: 1.4; }
#device-selection-modal :is(.deviceSettingSub, .deviceCardValue, .deviceModalNote, .deviceMeterLabel, .mic-level-text) {
  color: var(--settings-muted); font-family: inherit; font-size: 12px; line-height: 1.45;
  white-space: normal; overflow-wrap: anywhere;
}
#device-selection-modal .deviceCardValue { display: block; overflow: visible; -webkit-line-clamp: unset; }
#device-selection-modal :is(.deviceSelect, .hotkeyCap, .genderPrefOption, .settingsMuteBtn, .hotkeyResetBtn) {
  border: 1px solid #455467; background: var(--settings-field); color: #e9f2ff;
  border-radius: 10px; box-shadow: none; min-height: 38px;
}
#device-selection-modal .deviceSelect { font-size: 16px; line-height: 1.4; min-width: 0; max-width: 100%; }
#device-selection-modal .deviceSelect option { background: var(--settings-field); color: #e9f2ff; }
#device-selection-modal .deviceSelect::placeholder { color: #97a9be; }
#device-selection-modal .deviceSelectWrap { width: 100%; }
#device-selection-modal .settingsSwitch { width: 48px; height: 28px; }
#device-selection-modal .settingsSwitchTrack { background: #465366; box-shadow: none; }
#device-selection-modal .settingsSwitch input:checked + .settingsSwitchTrack { background: #1687ee; }
#device-selection-modal .settingsSwitch input:focus-visible + .settingsSwitchTrack { outline: 2px solid #96ccff; outline-offset: 4px; }
#device-selection-modal :is(button, input, select, [tabindex]):focus-visible { outline: 2px solid #96ccff; outline-offset: 3px; }
#device-selection-modal #settingsPremiumBtn {
  background: linear-gradient(110deg, #30281f, #252b34);
  border-color: #795534; box-shadow: none;
}
#device-selection-modal #settingsPremiumBtn .deviceSettingTitle { color: #ffba6a; }
#device-selection-modal .premiumLockBadge { background: #392d20; color: #ffbd76; line-height: 1.4; font-size: 10px; }
#device-selection-modal .genderPrefOption.is-selected { background: #203d59; border-color: #559bd9; color: #fff; }
#device-selection-modal .interestChip { background: #203d59; color: #e0f0ff; border-radius: 8px; padding: 7px 9px; overflow-wrap: anywhere; }
#device-selection-modal .interestChip button { min-width: 24px; min-height: 24px; }
#device-selection-modal .interestChips:not(:empty) { margin-top: 12px; margin-bottom: 8px; }
#device-selection-modal .settingsVolumeSlider { accent-color: #1687ee; min-height: 36px; }
#device-selection-modal .settingsMuteBtn.is-muted { background: #3c2529; border-color: #9a535b; color: #ffc5c9; }
#device-selection-modal .deviceMeter { border-color: var(--settings-border); margin-top: 12px; padding-top: 10px; }
#device-selection-modal .mic-level-fill { background: #4faafc; }
#device-selection-modal .deviceModalFooter {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-color: var(--settings-border); background: #191f27;
}
#device-selection-modal .settingsFooterNote { font-size: 11px; line-height: 1.5; color: var(--settings-muted); }
#device-selection-modal #device-modal-cancel {
  min-height: 38px; min-width: 84px; border: 1px solid #319bff; border-radius: 12px;
  background: #0879dc; color: #fff; font-weight: 700; cursor: pointer;
}
@media (hover: hover) {
  #device-selection-modal :is(.settingsTabs button, .deviceModalCloseBtn, .settingsMuteBtn, .hotkeyCap):hover { background: #2a4057; color: #fff; }
  #device-selection-modal #device-modal-cancel:hover { background: #1687ee; }
}
@media (max-width: 520px) {
  #device-selection-modal .device-modal-v2 {
    inset: 0 0 0 auto; width: min(82vw, 330px); min-width: 0;
  }
  #device-selection-modal .deviceModalHeader { padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 10px; }
  #device-selection-modal .settingsTabs { margin-inline: 12px; }
  #device-selection-modal .deviceModalBody { padding: 12px; }
  #device-selection-modal .deviceModalFooter { padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); }
  #device-selection-modal #settingsAppearanceSection { display: none !important; }
  #device-selection-modal .premiumLockedHead { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #device-selection-modal, #device-selection-modal .device-modal-v2 { transition: none; }
}

.remote-start-share { flex-wrap: wrap; }
.remote-start-share-link.remote-follow-x { --share-accent: #111827; border-color: rgba(105,181,255,.5); }
@media (max-width: 520px) {
  .remote-start-share-link.remote-follow-x { width: auto; gap: 6px; padding: 0 10px 0 6px; }
  .remote-follow-x .remote-start-share-name { display: inline; }
}

/* Every message fades independently; interaction reveals the retained history. */
@media (max-width: 520px) {
  #messages.messages-container > .message {
    opacity: 1;
    transition: opacity 150ms ease-out;
  }
  #messages.messages-container > .message.mobile-message-aged {
    opacity: 0;
    transition: opacity 2500ms ease;
  }
  body.mobile-chat-history-reading #messages.messages-container > .message,
  body.mobile-chat-open #messages.messages-container > .message {
    opacity: 1;
    transition: opacity 150ms ease-out;
  }
}
@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  #messages.messages-container > .message { transition-duration: 150ms !important; }
}
