#rp-chat {
  position: fixed;
  z-index: 5;
  display: none;
  box-sizing: border-box;
  gap: 8px;
  margin: 0;
  touch-action: manipulation;
}

#rp-chat.on {
  display: flex;
}

#rp-chat input {
  flex: 1;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.8em;
  border: 3px solid #8a74d0;
  border-radius: 0;
  outline: none;
  background: #0d0a1a;
  box-shadow: inset 0 3px 0 #05030a;
  color: #efe8f8;
  caret-color: #ffe07a;
  font: var(--fs, 17px)/1.2 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

#rp-chat input::placeholder {
  color: #7a6ea0;
  opacity: 1;
}

#rp-chat input:focus {
  border-color: #ffe07a;
}

#rp-chat button {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 3px solid #05030a;
  border-radius: 0;
  background: #7438b8;
  box-shadow: inset 0 3px 0 #a065ea, inset 0 -3px 0 #4a2a86;
  color: #fff6c8;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#rp-chat button:active {
  background: #5a2c94;
}

#rp-chat button:disabled {
  opacity: 0.45;
}

#rp-chat button svg {
  display: block;
  width: 42%;
  height: 42%;
  margin: auto;
  fill: currentColor;
  shape-rendering: crispEdges;
}

#rp-chat.docked {
  box-shadow: 0 0 0 8px rgba(11, 10, 24, 0.92);
  background: rgba(11, 10, 24, 0.92);
}

.rp-social {
  --s: 46px;
  position: fixed;
  z-index: 6;
  display: flex;
  gap: calc(var(--s) * 0.3);
  transform: translateX(-50%);
  transition: opacity 0.3s;
}

.rp-social-corner {
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  gap: calc(var(--s) * 0.22);
  transform: none;
}

.rp-social a {
  display: block;
  width: var(--s);
  height: var(--s);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s steps(2);
}

.rp-social a.rp-ig {
  filter: drop-shadow(0 calc(var(--s) * 0.07) 0 #05030a) drop-shadow(0 0 calc(var(--s) * 0.16) rgba(214, 36, 159, 0.4));
}

.rp-social a.rp-wa {
  filter: drop-shadow(0 calc(var(--s) * 0.07) 0 #05030a) drop-shadow(0 0 calc(var(--s) * 0.16) rgba(37, 211, 102, 0.4));
}

.rp-social a:hover {
  transform: translateY(-2px);
}

.rp-social a:active {
  transform: translateY(2px);
}

.rp-social a:focus-visible {
  outline: 2px solid #ffe07a;
  outline-offset: 4px;
}

.rp-social canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
