:root {
  --night: #0b0610;
  --ink: #14060f;
  --white: #ffffff;
  --mist: #c9bdd3;
  --soft: #e6dcef;
  --pink: #ff2d8a;
  --pink-soft: #ff7ab8;
  --yellow: #ffdd55;
  --hair: rgba(255, 255, 255, 0.12);
  --ok: #c9f5d4;
  --bad: #ffc4cf;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(
      85% 50% at 50% -10%,
      rgba(255, 45, 138, 0.3),
      transparent 60%
    ),
    radial-gradient(
      60% 40% at 100% 0%,
      rgba(155, 81, 224, 0.28),
      transparent 70%
    ),
    radial-gradient(
      70% 45% at 50% 112%,
      rgba(155, 81, 224, 0.2),
      transparent 65%
    ),
    linear-gradient(180deg, #1a0a1d 0%, #0e0713 45%, #0b0610 100%);
}

.shell {
  width: min(28rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  text-align: left;
}

.avatar {
  width: 96px;
  height: 96px;
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--night);
}

.profile-copy h1 {
  margin: 0 0 0.3rem;
  font-family: Lexend, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}
.handle {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--mist);
}
.handle a {
  color: inherit;
  text-decoration: none;
}
.handle a:hover {
  color: var(--white);
}
.badge {
  display: block;
  width: 15px;
  height: 15px;
}

.rule {
  width: 100%;
  height: 1px;
  margin: 1.5rem 0 0;
  background: var(--hair);
  border: 0;
}

h2 {
  margin: 1.35rem 0 0;
  font-family: Lexend, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}
h2 strong {
  font-weight: 800;
}

.punch {
  margin: 0.7rem 0 0;
  font-family: Lexend, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink);
}

.lead {
  margin: 0.55rem auto 0;
  max-width: 24rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--soft);
}

form {
  margin-top: 1.5rem;
}
.prompt {
  display: block;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.phone {
  display: flex;
  gap: 0.5rem;
}
.phone select,
.phone input {
  height: 52px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.phone select {
  width: 6.6rem;
  padding: 0 0.35rem;
  flex-shrink: 0;
  color-scheme: dark;
}
.phone input {
  flex: 1;
  min-width: 0;
  padding: 0 0.85rem;
}
.phone input::placeholder {
  color: rgba(201, 189, 211, 0.5);
}
.phone input:focus,
.phone select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 138, 0.18);
}

button {
  width: 100%;
  margin-top: 0.95rem;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffeb8a 0%, #ffdd55 45%, #ffb800 100%);
  color: var(--ink);
  font-family: Lexend, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 0 0 5px rgba(255, 221, 85, 0.16),
    0 10px 30px -8px rgba(255, 184, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
button:hover {
  filter: brightness(1.04);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.result {
  margin: 0.95rem 0 0;
  padding: 1rem 1rem 1.05rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  line-height: 1.45;
  text-align: left;
  animation: result-in 0.28s ease-out;
}
.result[hidden] {
  display: none;
}
.result-icon {
  flex: 0 0 30px;
  height: 30px;
  margin-top: 1px;
  background: center / contain no-repeat;
}
.result-body {
  min-width: 0;
}
.result-body p {
  margin: 0;
}
.result-title {
  font-family: Lexend, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.result-text {
  margin-top: 0.3rem !important;
  color: var(--soft);
}
.result-tag {
  display: inline-block;
  margin-top: 0.6rem !important;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(34, 197, 94, 0.16);
}
.result-tips {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-weight: 500;
}
.result-tips li {
  position: relative;
  margin-top: 0.3rem;
  padding-left: 1.2rem;
}
.result-tips li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4f;
}
.result-extra {
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--soft);
}
.result-extra strong {
  color: var(--white);
}
.result-hint {
  margin-top: 0.7rem !important;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--mist);
}

.result.is-ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.42);
}
.result.is-ok .result-title {
  color: var(--ok);
}
.result.is-ok .result-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2322c55e'/%3E%3Cpath d='M6.8 12.4l3.4 3.4 7-7.2' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.result.is-bad {
  background: rgba(255, 77, 79, 0.1);
  border-color: rgba(255, 77, 79, 0.45);
}
.result.is-bad .result-title {
  color: var(--bad);
}
.result.is-bad .result-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ff4d4f'/%3E%3Cpath d='M12 6.4v7.2' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.6' r='1.6' fill='white'/%3E%3C/svg%3E");
}

.result.is-warn {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.4);
}
.result.is-warn .result-title {
  color: var(--yellow);
}
.result.is-warn .result-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ffb800'/%3E%3Cpath d='M12 6.4v7.2' stroke='%2314060f' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.6' r='1.6' fill='%2314060f'/%3E%3C/svg%3E");
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .result {
    animation: none;
  }
}

footer {
  width: min(28rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.5rem 0 max(1.25rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.5;
}
footer p {
  margin: 0.3rem 0 0;
}

@media (min-width: 768px) {
  .shell {
    width: min(34rem, calc(100% - 4rem));
    padding: 2.5rem 0 2.25rem;
  }
  .profile {
    gap: 1.2rem;
  }
  .avatar {
    width: 124px;
    height: 124px;
    padding: 3.5px;
  }
  .profile-copy h1 {
    font-size: 1.65rem;
  }
  .handle {
    font-size: 1.05rem;
  }
  .badge {
    width: 17px;
    height: 17px;
  }
  .rule {
    margin-top: 1.75rem;
  }
  h2 {
    margin-top: 1.6rem;
    font-size: 1.9rem;
  }
  .punch {
    font-size: 1.08rem;
  }
  .lead {
    font-size: 1.05rem;
    max-width: 30rem;
  }
  form {
    margin-top: 1.85rem;
  }
  .phone select {
    width: 7.2rem;
  }
  .phone select,
  .phone input {
    height: 56px;
  }
  button {
    height: 58px;
  }
  footer {
    width: min(34rem, calc(100% - 4rem));
    padding: 1.15rem 0 2rem;
  }
}
