:root {
  --bg: #0b1020;
  --panel: #111a2e;
  --panel-2: #16233d;
  --text: #e6edf7;
  --muted: #9fb0c8;
  --ui-flat-bg: #0f1726;
  --ui-flat-border: #243146;
  --ui-icon-color: #d8e7ff;
  --ui-icon-color-muted: #8ea4c5;
  --ui-danger: #ff5a5a;
  --ui-warn: #ffb347;
}

body.app-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top right, #1c2b4a 0%, var(--bg) 42%, #080d18 100%);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body.app-shell.session-locked {
  height: 100dvh;
  overflow: hidden;
}

.advanced-settings {
  border: 1px solid var(--ui-flat-border);
  background: rgba(15, 23, 38, 0.55);
  border-radius: 16px;
  padding: 10px 12px;
}

.advanced-settings > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #dcecff;
  user-select: none;
}

.advanced-settings > summary::-webkit-details-marker {
  display: none;
}

.advanced-settings > summary::after {
  content: "▾";
  float: right;
  color: var(--ui-icon-color-muted);
}

.advanced-settings[open] > summary::after {
  content: "▴";
}

.advanced-settings-body {
  padding-top: 10px;
}

.country-checklist {
  max-height: 240px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--ui-flat-border);
  background: rgba(15, 23, 38, 0.55);
}

.country-checklist .form-check {
  margin: 0;
  padding: 6px 0 6px 24px;
}

@media (min-width: 992px) {
  .country-checklist {
    column-count: 2;
    column-gap: 18px;
  }
  .country-checklist .form-check {
    break-inside: avoid;
  }
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  width: 240px;
  height: 240px;
  top: -70px;
  right: -40px;
  background: radial-gradient(circle at 30% 30%, #6cb4ff, #275cb6);
}

.orb-b {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: -30px;
  background: radial-gradient(circle at 30% 30%, #5de7bd, #1f7f73);
}

main.container {
  position: relative;
  z-index: 1;
}

.kawaii-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.happy-cloud {
  position: absolute;
  top: 72px;
  left: 42px;
  width: 170px;
  height: 74px;
  border-radius: 999px;
  background: #f7fbff;
  box-shadow: 0 9px 25px rgba(18, 37, 69, 0.22);
  animation: floaty 6.8s ease-in-out infinite;
}

.happy-cloud::before,
.happy-cloud::after {
  content: "";
  position: absolute;
  background: #f7fbff;
  border-radius: 999px;
}

.happy-cloud::before {
  width: 72px;
  height: 72px;
  left: 18px;
  top: -32px;
}

.happy-cloud::after {
  width: 84px;
  height: 84px;
  right: 20px;
  top: -42px;
}

.cloud-eye,
.animal-eye {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background: #1b2947;
  transform-origin: center;
  animation: blink 4.4s infinite;
}

.cloud-eye.left { left: 62px; top: 28px; }
.cloud-eye.right { right: 62px; top: 28px; }

.cloud-smile,
.animal-smile {
  position: absolute;
  width: 24px;
  height: 12px;
  border: 2px solid #1b2947;
  border-top: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.cloud-smile { left: 73px; top: 39px; }

.cloud-blush,
.animal-blush {
  position: absolute;
  width: 14px;
  height: 8px;
  border-radius: 999px;
  background: #ffacc8;
  opacity: 0.8;
}

.cloud-blush.left { left: 38px; top: 42px; }
.cloud-blush.right { right: 38px; top: 42px; }

.kawaii-animal {
  position: absolute;
  width: 86px;
  height: 76px;
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  animation: bob 5.6s ease-in-out infinite;
}

.kawaii-animal.cat {
  right: 64px;
  bottom: 110px;
  background: #ffd8de;
}

.kawaii-animal.bunny {
  left: 92px;
  bottom: 56px;
  background: #f4dcff;
  animation-delay: 0.6s;
}

.animal-eye.left { left: 24px; top: 28px; }
.animal-eye.right { right: 24px; top: 28px; }
.animal-smile { left: 30px; top: 42px; width: 20px; }
.animal-blush.left { left: 10px; top: 40px; }
.animal-blush.right { right: 10px; top: 40px; }

.cloud-eye.right,
.animal-eye.right {
  animation-delay: 0.2s;
}

.cat-ear,
.bunny-ear {
  position: absolute;
  background: inherit;
}

.cat-ear {
  width: 24px;
  height: 24px;
  top: -10px;
  transform: rotate(45deg);
  border-radius: 6px;
  animation: earWiggle 3.4s ease-in-out infinite;
}

.cat-ear.left { left: 10px; }
.cat-ear.right { right: 10px; }

.bunny-ear {
  width: 15px;
  height: 34px;
  top: -26px;
  border-radius: 999px;
  background: #f4dcff;
  animation: earWiggle 3.7s ease-in-out infinite;
}

.bunny-ear.left { left: 18px; transform: rotate(-8deg); }
.bunny-ear.right { right: 18px; transform: rotate(8deg); }

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes bob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes blink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(0.15); }
}

@keyframes earWiggle {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -2px; }
}

.hero-head h2 {
  letter-spacing: 0.03em;
  text-transform: lowercase;
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 800;
}

.brand-wrap {
  display: flex;
  justify-content: center;
}

.brand-logo {
  width: min(92vw, 420px);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
  animation: logoFloat 5.5s ease-in-out infinite, logoGlow 3.8s ease-in-out infinite;
}

.hero-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d9eaff;
  background: rgba(16, 27, 52, 0.62);
  animation: chipDrift 7s ease-in-out infinite;
}

.hero-chip img {
  width: 13px;
  height: 13px;
}

.hero-chip:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-chip:nth-child(3) {
  animation-delay: 0.8s;
}

#priorityTimerChip {
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.14);
}

@keyframes logoFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35)); }
  50% { filter: drop-shadow(0 10px 28px rgba(46, 163, 255, 0.38)); }
  100% { filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35)); }
}

@keyframes chipDrift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.mode-hint {
  border: 1px solid rgba(159, 176, 200, 0.35);
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.45);
  padding: 10px 12px;
  font-size: 0.87rem;
  color: var(--muted);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(159, 176, 200, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8e6ff;
  background: rgba(12, 18, 31, 0.65);
}

.searching-dots {
  display: inline-block;
  animation: searchPulse 1.2s infinite ease-in-out;
}

@keyframes searchPulse {
  0% { opacity: 0.25; }
  50% { opacity: 1; }
  100% { opacity: 0.25; }
}

.panel {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.priority-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feature-item {
  border: 1px solid rgba(153, 189, 255, 0.22);
  background: rgba(6, 10, 20, 0.36);
  border-radius: 10px;
  padding: 10px;
}

.feature-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #99c6ff;
  margin-bottom: 2px;
}

.feature-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #dce7fb;
}

.feature-text img {
  width: 14px;
  height: 14px;
}

.searching-video-shell {
  position: relative;
  width: min(100%, calc((100vh - 170px) * 0.88));
  margin: 0 auto;
  /* Match the in-call stage so there is no jump when a partner connects. */
  aspect-ratio: 8 / 9;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid var(--ui-flat-border);
  background: #070a12;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.searching-remote-placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0a1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.searching-remote-placeholder img {
  width: 38px;
  height: 38px;
  opacity: 0.92;
}

.searching-local-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #0a1220;
}

.searching-local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.searching-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.searching-controls .control-icon-btn {
  width: 36px;
  height: 36px;
}

.searching-controls .control-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.random-countdown {
  border: 1px solid rgba(159, 176, 200, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(7, 11, 20, 0.35);
}

.random-countdown-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.random-countdown-progress .progress-bar {
  background: linear-gradient(90deg, rgba(108, 180, 255, 0.95), rgba(93, 231, 189, 0.95));
  border-radius: 999px;
}

.broadcast-chat-log {
  max-height: 240px;
  min-height: 120px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 176, 200, 0.28);
  background: rgba(7, 11, 20, 0.35);
}

.broadcast-chat-line {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #d8e7ff;
}

.broadcast-chat-line .who {
  font-weight: 800;
  margin-right: 6px;
}

.broadcast-chat-line.me .who {
  color: rgba(93, 231, 189, 0.95);
}

.broadcast-chat-line.host .who {
  color: rgba(108, 180, 255, 0.95);
}

.video-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  width: 70px;
  height: auto;
  opacity: 0.34;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.start-blur {
  filter: blur(16px);
  transform: scale(1.03);
}

.nsfw-consent-blur {
  filter: blur(18px) !important;
  transform: scale(1.03);
}

.nudity-blur {
  filter: blur(22px) !important;
  transform: scale(1.03);
}

.nudity-blur-gate {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.nudity-blur-gate.active {
  display: flex;
}

.nudity-blur-gate .nudity-blur-card {
  width: min(360px, 100%);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
}

.nudity-blur-gate .nudity-blur-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.nudity-blur-gate .nudity-blur-muted {
  font-size: 0.85rem;
  color: rgba(230, 237, 247, 0.82);
  margin: 0 0 10px 0;
}

.blur-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 6;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(230, 237, 247, 0.95);
  user-select: none;
  pointer-events: none;
}

.nsfw-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 10, 20, 0.74);
}

.nsfw-consent-overlay.active {
  display: flex;
}

.nsfw-consent-card {
  width: min(480px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(159, 176, 200, 0.24);
  background: rgba(17, 26, 46, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 14px;
}

.nsfw-consent-title {
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 6px 0;
}

.nsfw-consent-muted {
  color: rgba(230, 237, 247, 0.78);
  font-size: 0.92rem;
  margin: 0 0 12px 0;
}

.nsfw-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nsfw-consent-actions .btn {
  border-radius: 999px;
  font-weight: 700;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.party-tile {
  border: 1px solid rgba(159, 176, 200, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 11;
  position: relative;
}

.party-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.party-tile .label {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e6edf7;
}

.party-tile .video-watermark {
  right: 10px;
  bottom: 10px;
  width: 60px;
  opacity: 0.32;
}

@media (min-width: 992px) {
  .party-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .searching-video-shell {
    width: min(100%, 1200px);
    aspect-ratio: 16 / 9;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .searching-remote-placeholder {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Desktop: show videos side-by-side. Mobile keeps the stacked layout. */
  .video-stage-2028 {
    width: min(100%, 1200px);
    aspect-ratio: 16 / 9;
  }

  .video-panels {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .video-panel.you {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 250px;
  border-radius: 12px;
  overflow: hidden;
  background: #070a12;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.video-layout-2028 {
  width: 100%;
}

.video-stage-2028 {
  /* Stacked layout: keep it tall and stable, never side-by-side. */
  width: min(100%, calc((100vh - 170px) * 0.88));
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 9;
  margin: 0 auto;
  border: 1px solid var(--ui-flat-border);
  box-shadow: none;
  border-radius: 16px;
}

.video-panels {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.video-panel {
  position: relative;
  overflow: hidden;
  background: #0a1220;
}

.video-panel.you {
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--ui-flat-border);
  background: rgba(8, 13, 23, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dcecff;
}

.mobile-next-btn {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  border: 1px solid rgba(255, 97, 97, 0.5);
  background: linear-gradient(165deg, rgba(255, 86, 86, 0.92), rgba(210, 36, 36, 0.95));
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.panel-quick-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 36px;
  grid-template-rows: 36px 36px 36px 36px 36px 36px;
  gap: 6px;
}

.panel-control-btn.flip-btn { grid-column: 1; grid-row: 1; }
.panel-control-btn.next-btn { grid-column: 1; grid-row: 2; }
.panel-control-btn.self-btn { grid-column: 1; grid-row: 3; }
.panel-control-btn.guest-btn { grid-column: 1; grid-row: 4; }
.panel-control-btn.camera-btn { grid-column: 1; grid-row: 5; }
.panel-control-btn.report-btn { grid-column: 1; grid-row: 6; }

.panel-control-btn {
  border: 1px solid var(--ui-flat-border);
  background: rgba(9, 15, 27, 0.96);
  color: var(--ui-icon-color);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  backdrop-filter: none;
  box-shadow: none;
}

.panel-control-btn.self-muted {
  border-color: var(--ui-danger);
  background: rgba(76, 12, 12, 0.95);
  color: #ffdede;
}

.panel-control-btn.guest-muted {
  border-color: var(--ui-warn);
  background: rgba(95, 58, 11, 0.95);
  color: #fff1db;
}

.panel-control-btn.report-btn {
  border-color: var(--ui-danger);
  color: #ffdede;
}

.panel-control-btn.camera-btn.is-off {
  border-color: var(--ui-danger);
  background: rgba(76, 12, 12, 0.95);
  color: #ffdede;
}

.settings-home-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.guest-blur-gate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 20, 0.24);
}

.guest-blur-gate .btn {
  border-radius: 999px;
  font-weight: 600;
}

.remote-video-2028 {
  border-radius: 12px;
}

.video-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 5;
  transition: opacity 220ms ease, transform 220ms ease;
}

.video-overlay-top {
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.overlay-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ui-flat-border);
  background: rgba(8, 13, 23, 0.92);
  backdrop-filter: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d9e9ff;
}

.video-overlay-bottom {
  display: none;
}

.video-controls-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.control-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ui-flat-border);
  background: rgba(9, 15, 27, 0.96);
  color: var(--ui-icon-color);
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: none;
}

.control-icon-btn.is-off {
  border-color: var(--ui-danger);
  color: #ffd3d3;
  background: rgba(76, 12, 12, 0.95);
}

.video-chat-row {
  display: flex;
  gap: 0;
  width: 100%;
}

.video-chat-dock {
  border: 1px solid var(--ui-flat-border);
  border-radius: 14px;
  padding: 10px;
  background: rgba(8, 13, 23, 0.93);
  backdrop-filter: none;
}

.video-chat-overlay {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 0;
  width: min(62%, 520px);
  max-width: calc(100% - 20px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  padding: 0 0 10px;
  background: transparent;
  backdrop-filter: none;
}

.chat-pill-btn {
  display: none;
}

.video-chat-panel {
  display: none;
}

.video-chat-panel.open {
  display: none;
}

.chat-transcript {
  max-height: 18vh;
  overflow-y: auto;
  margin-bottom: 4px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.chat-transcript-line {
  margin: 0 0 3px;
  font-size: 0.78rem;
  line-height: 1.24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.chat-transcript-line.you {
  color: rgba(255, 255, 255, 0.96);
}

.chat-transcript-line.them {
  color: rgba(255, 255, 255, 0.98);
}

.chat-transcript-line.system {
  color: rgba(255, 255, 255, 0.86);
}

.chat-transcript-line.system-orange {
  color: #ffb24a;
}

.chat-input-area {
  resize: none;
  min-height: 26px;
  max-height: 64px;
  overflow-y: auto;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 4px 6px;
  font-size: 0.92rem;
}

.swipe-up-hint {
  position: absolute;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  z-index: 12;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 236, 255, 0.28);
  background: rgba(8, 14, 26, 0.52);
  color: rgba(241, 248, 255, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.video-chat-overlay #msg {
  background: rgba(128, 138, 152, 0.28);
  color: #ffffff;
  border: 1px solid rgba(210, 220, 235, 0.22);
}

.video-chat-overlay #msg::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.video-chat-overlay #msg:focus {
  background: rgba(128, 138, 152, 0.34);
  color: #ffffff;
  border-color: rgba(229, 238, 255, 0.5);
  box-shadow: 0 0 0 0.15rem rgba(200, 214, 236, 0.16);
}

.panel-control-btn i,
.control-icon-btn i {
  color: inherit;
  font-size: 0.98rem;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #c6dbff;
  border: 1px solid rgba(176, 205, 255, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(8, 16, 32, 0.54);
}

.video-chat-meta {
  display: none;
}

.typing-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #9ab8e6;
  opacity: 0.92;
}

.typing-icon {
  font-size: 0.78rem;
}

.log-box-overlay {
  display: none;
}

.local-wrap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 130px;
}

.local-video {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #000;
}

.video-stage-2028 .local-wrap {
  right: 14px;
  top: 54px;
  bottom: auto;
  width: 150px;
  z-index: 6;
}

.video-stage-2028 .local-video {
  height: 192px;
  border: 1px solid rgba(214, 230, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.video-ui-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 7;
  border: 1px solid rgba(193, 218, 255, 0.4);
  background: rgba(11, 18, 34, 0.45);
  color: #def0ff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  backdrop-filter: blur(10px);
}

.quick-next-btn {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 1100;
  border: 1px solid rgba(255, 97, 97, 0.5);
  background: linear-gradient(165deg, rgba(255, 86, 86, 0.92), rgba(210, 36, 36, 0.95));
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.quick-next-btn:hover {
  filter: brightness(1.08);
}

.local-controls {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}

.log-box {
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.chat-only-layout {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(170deg, rgba(12, 18, 32, 0.92), rgba(15, 28, 50, 0.88));
}

.chat-only-head {
  margin-bottom: 10px;
}

.chat-only-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-only-log {
  min-height: 260px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(159, 176, 200, 0.35);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.94rem;
  line-height: 1.45;
}

.chat-line {
  margin: 0 0 6px;
}

.chat-line-you {
  color: #97f3bf;
}

.chat-line-them {
  color: #c8dcff;
}

.chat-line-system {
  color: var(--muted);
}

.chat-line-system-orange {
  color: #ffb24a;
}

.premium-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1050;
  background: rgba(11, 16, 32, 0.85);
  border-color: rgba(255, 193, 7, 0.75);
}

.premium-fab:hover {
  background: rgba(24, 33, 58, 0.92);
}

.achievement-stack {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.achievement-toast {
  min-width: 250px;
  max-width: min(92vw, 360px);
  border: 1px solid rgba(151, 255, 205, 0.55);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(16, 53, 32, 0.94), rgba(19, 84, 53, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  color: #ddffe9;
  transform: translateX(120%);
  opacity: 0;
  animation: achievement-in 220ms ease forwards, achievement-out 320ms ease 4s forwards;
}

.achievement-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.achievement-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.achievement-desc {
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(232, 255, 241, 0.9);
}

@keyframes achievement-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes achievement-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

  @media (max-width: 768px) {
  .happy-cloud {
    left: 12px;
    top: 76px;
    transform: scale(0.78);
    transform-origin: top left;
  }

  .kawaii-animal.cat {
    right: 10px;
    bottom: 86px;
    transform: scale(0.86);
    transform-origin: bottom right;
  }

  .kawaii-animal.bunny {
    display: none;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .searching-local-wrap {
    width: 100%;
    height: 100%;
  }

  .local-wrap {
    width: 100px;
    right: 8px;
    bottom: 8px;
  }

  .local-video {
    height: 132px;
  }

  .local-controls .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.35rem;
  }

  .video-stage {
    min-height: 210px;
  }

  .video-stage-2028 {
    width: min(100%, calc(100vh - 120px));
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 9;
  }

  .searching-video-shell {
    width: min(100%, calc(100vh - 120px));
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 9;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .searching-remote-placeholder {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .video-panels {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .video-panel.you {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .video-panel.you .you-label {
    display: none;
  }

  .mobile-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .video-stage-2028 .local-wrap {
    top: 54px;
    right: 10px;
    width: 108px;
  }

  .video-stage-2028 .local-video {
    height: 138px;
  }

  .video-overlay-bottom {
    display: none;
  }

  .video-controls-row {
    gap: 5px;
    flex-wrap: nowrap;
  }

  .video-controls-row .btn {
    display: none;
  }

  .control-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    padding: 0;
  }

  .panel-control-btn {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .panel-quick-controls {
    grid-template-columns: 34px;
    grid-template-rows: 34px 34px 34px 34px 34px 34px;
    top: calc(50% + 8px);
    right: 8px;
  }

  .video-chat-overlay {
    left: 8px;
    right: auto;
    bottom: 0;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    align-items: flex-start;
    padding: 0 0 8px;
  }

  .chat-pill-btn {
    display: none !important;
  }

  .video-chat-panel {
    display: block !important;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .chat-transcript {
    max-height: 17vh;
    margin-bottom: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    pointer-events: none;
  }

  .chat-transcript:empty {
    display: none;
    margin-bottom: 0;
  }

  .chat-transcript-line {
    font-size: 0.72rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  .video-chat-row {
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    align-items: flex-end;
  }

  .chat-input-area {
    min-height: 26px;
    max-height: 64px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 3px 5px;
    font-size: 0.9rem;
  }

  .swipe-up-hint {
    bottom: 136px;
    font-size: 0.76rem;
  }

  .video-chat-meta {
    display: none;
  }

  .typing-hint {
    display: none;
  }

  .typing-indicator {
    font-size: 0.7rem;
    padding: 3px 7px;
  }

  .log-box-overlay {
    display: none;
  }

  .quick-next-btn {
    display: none;
    align-items: center;
    justify-content: center;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    padding: 5px 11px;
    font-size: 0.8rem;
  }

  .achievement-stack {
    right: 8px;
    top: 8px;
  }

  .achievement-toast {
    min-width: 220px;
  }
}
