:root {
  color-scheme: light;
  --pink-bg: #f6a1ca;
  --pink-dot: rgba(239, 55, 133, 0.48);
  --pink-ring: #f43c79;
  --card-bg: #fff7fb;
  --text: #202b3d;
  --muted: #687386;
  --blue: #078fca;
  --green: #25c66a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

/* Padrão: branco e vazio. Em computador, o site não mostra mensagem alguma. */
body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.background-pattern {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--pink-bg);
  background-image: radial-gradient(circle, var(--pink-dot) 1.25px, transparent 1.45px);
  background-size: 21px 21px;
  background-position: 0 0;
}

body.is-mobile {
  background: var(--pink-bg);
}

body.is-mobile .background-pattern {
  display: block;
}

.loading-screen,
.page-content,
.error-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.loading-screen {
  display: none;
  flex-direction: column;
  gap: 13px;
  color: #6f3150;
  font-size: 14px;
}

body.is-mobile .loading-screen:not([hidden]) {
  display: flex;
}

.loading-screen p {
  margin: 0;
}

.loader {
  width: 27px;
  height: 27px;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-top-color: #ed347a;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.page-content,
.error-screen {
  display: none;
}

body.is-mobile .page-content:not([hidden]) {
  display: flex;
}

body.is-mobile .error-screen:not([hidden]) {
  display: flex;
}

.page-content[hidden],
.loading-screen[hidden],
.error-screen[hidden] {
  display: none !important;
}

.profile-card {
  width: min(100%, 324px);
  min-height: 388px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 32px;
  border-radius: 23px;
  background: var(--card-bg);
  box-shadow: 0 13px 30px rgba(109, 37, 73, 0.075);
  text-align: center;
}

.avatar-ring {
  flex: 0 0 auto;
  width: 116px;
  height: 116px;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff2d82, var(--pink-ring));
  box-shadow: 0 0 0 2px var(--pink-ring);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
}

.profile-name {
  margin: 17px 0 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.45px;
}

.online-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #10b957;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.online-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.response-time {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.clock-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-button {
  width: 100%;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 14px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  box-shadow: 0 7px 13px rgba(0, 119, 179, 0.25);
  color: #fff;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 3px 8px rgba(0, 119, 179, 0.23);
}

.contact-button:focus-visible {
  outline: 3px solid rgba(0, 119, 179, 0.3);
  outline-offset: 4px;
}

.contact-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.88;
}

.telegram-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: #fff;
}

#button-label {
  max-width: 160px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.button-hint {
  min-height: 0;
  margin: 0;
  color: #a13d68;
  font-size: 11px;
}

.button-hint:not(:empty) {
  margin-top: 10px;
}

.error-card {
  width: min(100%, 320px);
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 13px 30px rgba(109, 37, 73, 0.075);
  text-align: center;
}

.error-card h1 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 19px;
}

.error-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.retry-button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 350px) {
  .profile-card {
    width: min(100%, 278px);
    padding-right: 21px;
    padding-left: 21px;
  }

  .response-time {
    font-size: 10.5px;
  }
}

@media (max-height: 560px) and (max-width: 1023px) {

  .loading-screen,
  .page-content,
  .error-screen {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}