/* === ANONYMOUS VOICE CHAT + NAV MARCH 2026 === */
.mobile-bottom-nav {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-width: 560px;
}

body.page-chat-chat_list .mobile-bottom-nav,
body.page-chat-chat_detail .mobile-bottom-nav,
body.page-anonymous-anonymous_chat_page .mobile-bottom-nav,
body.page-anonymous_voice-anonymous_voice_chat_page .mobile-bottom-nav {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-width: 560px;
}

.voice-room {
  position: relative;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

body.page-anonymous_voice-anonymous_voice_chat_page main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-anonymous_voice-anonymous_voice_chat_page .app-shell {
  max-width: 100%;
  padding: 0;
}

body.page-anonymous_voice-anonymous_voice_chat_page {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.voice-room__header {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.voice-room__avatar-wrap {
  background: linear-gradient(135deg, #ff9abf, #8ea2ff);
}

.voice-room__stage {
  min-height: calc(100dvh - 212px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px calc(148px + env(safe-area-inset-bottom));
}

.voice-room__stage-card {
  width: min(100%, 460px);
  position: relative;
  overflow: hidden;
}

.voice-room__empty-icon {
  position: relative;
  z-index: 2;
}

.voice-room__radar {
  position: absolute;
  inset: auto 50% auto 50%;
  top: 88px;
  width: 190px;
  height: 190px;
  transform: translateX(-50%);
  pointer-events: none;
}

.voice-room__radar span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 178, 0.18);
  animation: voiceRadar 3s ease-out infinite;
}

.voice-room__radar span:nth-child(2) {
  animation-delay: 1s;
}

.voice-room__radar span:nth-child(3) {
  animation-delay: 2s;
}

@keyframes voiceRadar {
  0% {
    transform: scale(0.56);
    opacity: 0;
  }
  25% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.voice-room__chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.voice-room__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(233, 193, 211, 0.66);
  color: #4d4e57;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(34, 20, 31, 0.08);
}

.voice-room__chip[data-tone="success"] {
  color: #165f41;
  background: rgba(227, 255, 241, 0.92);
  border-color: rgba(124, 225, 172, 0.52);
}

.voice-room__chip[data-tone="warning"] {
  color: #8c5c16;
  background: rgba(255, 245, 221, 0.96);
  border-color: rgba(247, 203, 112, 0.55);
}

.voice-room__chip[data-tone="danger"] {
  color: #9b3152;
  background: rgba(255, 233, 239, 0.96);
  border-color: rgba(255, 141, 176, 0.5);
}

.voice-room__chip[data-tone="accent"] {
  color: #7447a7;
  background: rgba(243, 235, 255, 0.96);
  border-color: rgba(182, 148, 255, 0.42);
}

.voice-room__privacy-note {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666774;
  line-height: 1.45;
}

.voice-room__privacy-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.voice-room__unlock {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border-radius: 16px;
}

.voice-room__unlock.is-hidden {
  display: none !important;
}

.voice-room__start-btn {
  position: relative;
  z-index: 2;
}

.voice-room__actionbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 14px 0;
}

.voice-room__action {
  min-height: 42px;
}

body.page-anonymous_voice-anonymous_voice_chat_page .m-chat-room__menu.is-hidden,
body.page-anonymous_voice-anonymous_voice_chat_page [data-anon-filter-toggle].is-hidden {
  display: none !important;
}

html[data-theme="dark"] .voice-room__chip {
  background: rgba(34, 24, 45, 0.96);
  border-color: rgba(255, 174, 214, 0.14);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .voice-room__chip[data-tone="success"] {
  color: #b8ffde;
  border-color: rgba(111, 229, 167, 0.26);
  background: rgba(23, 54, 43, 0.96);
}

html[data-theme="dark"] .voice-room__chip[data-tone="warning"] {
  color: #ffe0a6;
  border-color: rgba(255, 204, 102, 0.2);
  background: rgba(63, 45, 19, 0.96);
}

html[data-theme="dark"] .voice-room__chip[data-tone="danger"] {
  color: #ffc2d7;
  border-color: rgba(255, 154, 190, 0.22);
  background: rgba(66, 24, 41, 0.96);
}

html[data-theme="dark"] .voice-room__chip[data-tone="accent"] {
  color: #e3d6ff;
  border-color: rgba(182, 148, 255, 0.22);
  background: rgba(49, 33, 76, 0.96);
}

html[data-theme="dark"] .voice-room__privacy-note {
  color: var(--muted);
}

html[data-theme="dark"] .voice-room__radar span {
  border-color: rgba(255, 143, 190, 0.14);
}

@media (max-width: 820px) {
  .voice-room__stage {
    min-height: calc(100dvh - 188px);
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(144px + env(safe-area-inset-bottom));
  }

  .voice-room__actionbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .voice-room__stage-card {
    border-radius: 24px;
  }

  .voice-room__radar {
    width: 160px;
    height: 160px;
    top: 90px;
  }
}
