/* Дейтинг — лобби, голос, мессенджер */

.dt-page {
  max-width: 1100px;
}

.dt-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

.dt-avatar-form {
  margin: 1.2rem auto 0;
  max-width: 18rem;
}

.dt-avatar-pick {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  cursor: pointer;
  color: var(--muted);
}

.dt-avatar-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dt-avatar-preview {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--gold);
  overflow: hidden;
  box-shadow: 0 0 28px rgba(194, 49, 63, 0.18);
}

.dt-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-lobby-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto;
  max-width: 28rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.dt-lobby-list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dt-lobby-list li.is-you {
  border-color: var(--gold);
}

.dt-face {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  object-fit: cover;
  background: #1a0c10;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.dt-face.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.dt-lobby-list li span.grow {
  flex: 1;
  min-width: 0;
}

.dt-lobby-list small {
  color: var(--muted);
  margin-left: auto;
}

.dt-targets {
  display: grid;
  gap: 1rem;
  margin: 1rem auto 0;
  max-width: 46rem;
  text-align: left;
}

.dt-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.dt-compose {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.2rem;
  text-align: left;
}

.dt-compose-body {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
}

.dt-side {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.dt-side strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  text-align: center;
  max-width: 12rem;
  word-break: break-word;
}

.dt-portrait {
  width: min(12rem, 28vw);
  height: min(12rem, 28vw);
  border-radius: 1.05rem;
  object-fit: cover;
  background: #1a0c10;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(194, 49, 63, 0.18);
}

.dt-portrait.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 3rem;
  font-family: var(--font-display);
}

.dt-card.is-done {
  opacity: 0.72;
}

.dt-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dt-card-head strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.dt-card textarea,
.dt-card input[type="file"] {
  width: 100%;
}

.dt-preview img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
  background: #11080a;
}

.dt-vote-progress {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0.4rem 0 0.8rem;
}

.dt-vote-stage {
  max-width: 46rem;
  margin: 0 auto;
}

.dt-vote-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(194, 49, 63, 0.22), transparent 70%),
    rgba(8, 4, 5, 0.72);
  padding: 1.1rem 1rem 1.2rem;
  animation: dtLift 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dtLift {
  from { transform: translateY(28px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dt-vote-who {
  display: none;
}

.dt-vote-who .dt-face {
  width: 3.2rem;
  height: 3.2rem;
}

.dt-vote-body {
  min-height: 6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}

.dt-vote-body img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: contain;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  background: #0c0607;
}

.dt-vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.dt-heart,
.dt-cross {
  min-height: 3.4rem;
  font-size: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
}

.dt-heart:hover,
.dt-heart.is-on {
  border-color: #e36b78;
  box-shadow: 0 0 24px rgba(194, 49, 63, 0.45);
}

.dt-heart.is-on {
  background: rgba(194, 49, 63, 0.28);
}

.dt-cross:hover,
.dt-cross.is-on {
  border-color: var(--muted);
  box-shadow: 0 0 18px rgba(168, 151, 138, 0.25);
}

.dt-cross.is-on {
  background: rgba(168, 151, 138, 0.18);
}

.dt-reply-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.dt-reply-form textarea,
.dt-reply-form input[type="file"] {
  width: 100%;
}

.dt-vote-stage .dt-lobby-list {
  margin-top: 0;
}

.dt-typing.from-b {
  align-self: flex-end;
}

.dt-reveal-screen {
  text-align: center;
}

.dt-reveal-stage {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(16rem, 24rem) minmax(9rem, 13rem);
  align-items: center;
  justify-content: center;
  gap: 1.1rem 1.4rem;
  width: min(100%, 64rem);
  margin: 1rem auto 0;
}

.dt-reveal-stage .dt-side {
  min-width: 0;
}

.dt-reveal-stage .dt-portrait {
  width: min(13rem, 22vw);
  height: min(13rem, 22vw);
}

.dt-phone {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: #0b0708;
  box-shadow:
    0 0 0 8px rgba(26, 16, 18, 0.9),
    0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.dt-chat {
  position: relative;
  flex: 1;
  padding: 0.9rem 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 22rem;
  background:
    radial-gradient(400px 180px at 80% 0%, rgba(143, 29, 42, 0.18), transparent 70%);
}

.dt-bubble {
  max-width: 82%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  line-height: 1.4;
  font-size: 1.12rem;
  animation: dtBubble 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dt-bubble.from-a {
  align-self: flex-start;
  background: rgba(143, 29, 42, 0.38);
  border: 1px solid rgba(194, 49, 63, 0.35);
  border-bottom-left-radius: 0.25rem;
}

.dt-bubble.from-b {
  align-self: flex-end;
  background: rgba(212, 175, 98, 0.16);
  border: 1px solid var(--line);
  border-bottom-right-radius: 0.25rem;
}

.dt-bubble img {
  display: block;
  max-width: 100%;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-top: 0.45rem;
  animation: dtBubble 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dt-bubble.is-photo {
  padding: 0.32rem;
}

.dt-bubble.is-photo img {
  margin: 0;
  max-height: 16rem;
}

.dt-incoming {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.dt-incoming.is-mine {
  align-items: flex-end;
}

.dt-incoming .dt-bubble {
  max-width: 92%;
}

.dt-bubble p {
  margin: 0;
}

@keyframes dtBubble {
  from { transform: translateY(16px) scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dt-typing {
  align-self: flex-start;
  display: flex;
  gap: 0.28rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.dt-typing i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--gold);
  animation: dtDots 1.1s ease-in-out infinite;
}

.dt-typing i:nth-child(2) { animation-delay: 0.15s; }
.dt-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dtDots {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.dt-react {
  align-self: flex-end;
  font-size: 2.2rem;
  line-height: 1;
}

.dt-react.is-heart {
  animation: dtHeart 0.7s cubic-bezier(0.15, 1.4, 0.3, 1) both;
  filter: drop-shadow(0 0 16px rgba(194, 49, 63, 0.7));
}

.dt-react.is-x {
  animation: dtX 0.45s ease both;
}

.dt-react.from-a { align-self: flex-start; }
.dt-react.from-b { align-self: flex-end; }

@keyframes dtHeart {
  0% { transform: scale(0.2) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes dtX {
  0% { transform: translateX(0) rotate(0); opacity: 0; }
  30% { transform: translateX(-8px) rotate(-8deg); opacity: 1; }
  60% { transform: translateX(8px) rotate(8deg); }
  100% { transform: none; }
}

.dt-phone.dt-shake {
  animation: dtShake 0.38s ease;
}

@keyframes dtShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-0.6deg); }
  75% { transform: translateX(6px) rotate(0.6deg); }
}

.dt-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dt-score-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem auto 0;
  max-width: 28rem;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.dt-score-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.dt-score-list .marks {
  margin-left: auto;
  display: flex;
  gap: 0.8rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.dt-host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.15rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(8, 4, 5, 0.72);
  max-width: 36rem;
}

.dt-page:not([data-admin]) .dt-host {
  display: none !important;
}

.sit-host-step {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
  min-width: 9rem;
}

.sit-host-next {
  min-width: 10.5rem;
  font-size: 1.15rem;
  padding: 0.85rem 1.4rem;
  box-shadow: 0 0 24px rgba(194, 49, 63, 0.35);
  animation: dtHostPulse 2.2s ease-in-out infinite;
}

@keyframes dtHostPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(194, 49, 63, 0.25); }
  50% { box-shadow: 0 0 32px rgba(212, 175, 98, 0.45); }
}

.dt-repeat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 820px) {
  .dt-compose {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dt-compose-body {
    width: 100%;
    text-align: left;
  }

  .dt-reveal-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "phone phone";
  }

  .dt-reveal-stage .dt-side:first-child {
    grid-area: a;
  }

  .dt-reveal-stage .dt-side:last-child {
    grid-area: b;
  }

  .dt-phone {
    grid-area: phone;
    width: min(24rem, 100%);
    justify-self: center;
  }

  .dt-reveal-stage .dt-portrait,
  .dt-portrait {
    width: min(8.5rem, 38vw);
    height: min(8.5rem, 38vw);
  }
}
