* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0b0b0e radial-gradient(ellipse 70% 45% at 50% -5%, rgba(230, 46, 46, 0.16), transparent);
  color: #ece8e8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  text-align: center;
  padding: 40px;
  max-width: 440px;
  width: 92%;
  background: #141419;
  border: 1px solid #2c1518;
  border-radius: 22px;
  box-shadow: 0 0 70px rgba(230, 46, 46, 0.1);
}

.logo {
  width: 88px;
  filter: drop-shadow(0 0 14px rgba(230, 46, 46, 0.55));
}

.logo.small {
  width: 60px;
}

h1 {
  font-size: 1.9rem;
  margin: 10px 0 14px;
  color: #e62e2e;
  letter-spacing: 0.5px;
}

.status {
  color: #9a939a;
  min-height: 1.4em;
  margin-bottom: 6px;
}

.status.ok {
  color: #ffffff;
}

.status.ok::before {
  content: "●";
  color: #e62e2e;
  margin-right: 6px;
}

.status.error {
  color: #ff5a4e;
}

.count {
  font-size: 1.05rem;
  color: #b8b0b5;
  margin-bottom: 20px;
}

.mute {
  font-size: 1.05rem;
  padding: 13px 26px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #e62e2e;
  color: #fff;
  transition: background 0.15s, transform 0.05s;
}

.mute:hover:not(:disabled) {
  background: #ff4040;
}

.mute:active:not(:disabled) {
  transform: scale(0.97);
}

.mute:disabled {
  background: #35353c;
  color: #777;
  cursor: default;
}

.mute.muted {
  background: #35353c;
  color: #b0a8ad;
}

/* --- Список участников --- */

.users {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.users li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1b1b21;
  border: 1px solid #2a2a32;
  border-radius: 12px;
  padding: 9px 14px;
}

.user-icon {
  width: 26px;
  flex-shrink: 0;
}

.user-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.you {
  color: #8a8288;
  font-size: 0.85rem;
}

.users input[type="range"] {
  width: 110px;
  accent-color: #e62e2e;
  cursor: pointer;
}

.hint {
  margin-top: 24px;
  color: #6a646a;
  font-size: 0.88rem;
}

/* --- Модалка с именем --- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 9, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.visible {
  display: flex;
}

.modal-card {
  background: #141419;
  border: 1px solid #2c1518;
  border-radius: 22px;
  box-shadow: 0 0 70px rgba(230, 46, 46, 0.15);
  padding: 36px 40px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.modal-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
}

#name-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.1rem;
  text-align: center;
  color: #fff;
  background: #0e0e12;
  border: 1px solid #3a3a42;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#name-input:focus {
  border-color: #e62e2e;
  box-shadow: 0 0 0 3px rgba(230, 46, 46, 0.25);
}

.modal-card button {
  width: 100%;
  padding: 13px;
  font-size: 1.05rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #e62e2e;
  color: #fff;
  transition: background 0.15s;
}

.modal-card button:hover {
  background: #ff4040;
}
