/* «Шпион» — стили поверх ../../shared/party.css */

.spy-hero {
  text-align: center;
  padding: var(--s4) var(--s2) var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: center;
}

.spy-hero-title {
  background: linear-gradient(100deg, var(--violet) 10%, #b39dff 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spy-hero-sub {
  max-width: 34rem;
}

.p-kicker--violet {
  color: var(--violet);
}

.spy-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.spy-mode {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.spy-mode:first-of-type {
  border-top: none;
  padding-top: 0;
}

.spy-mode .p-hint {
  margin-left: calc(50px + var(--s3));
}

.spy-mode--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.spy-mode--split .p-hint {
  margin-left: 0;
}

.spy-mode--split > div {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.spy-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.spy-center-row {
  justify-content: center;
}

.spy-center {
  text-align: center;
}

.spy-stage-label {
  text-align: center;
}

/* Reveal */

.spy-pass {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.spy-pass .p-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.spy-pass-text {
  display: flex;
  flex-direction: column;
}

.spy-pass-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.spy-card {
  width: min(100%, 420px, 46dvh);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}

.spy-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.spy-card-instruction {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}

.spy-clues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  max-width: 100%;
}

.spy-clues .p-pill {
  white-space: normal;
  text-align: center;
}

.p-flipcard-back.is-spy {
  background:
    radial-gradient(120% 90% at 50% 110%, var(--violet-soft), transparent 62%),
    linear-gradient(200deg, var(--bg2), var(--bg1));
  border-color: rgba(143, 123, 255, 0.5);
}

.p-flipcard-back.is-spy .spy-card-title {
  color: var(--violet);
}

.p-flipcard.is-visible .p-flipcard-back.is-spy {
  animation: spy-role-pulse 600ms ease-out 150ms;
}

@keyframes spy-role-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 123, 255, 0.45); }
  100% { box-shadow: 0 0 0 22px rgba(143, 123, 255, 0); }
}

/* Play */

.spy-play {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.spy-tips {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  color: var(--muted);
  font-size: var(--fs-small);
}

.spy-tips li::marker {
  color: var(--violet);
}

.spy-time-up {
  text-align: center;
  font-weight: 800;
  color: var(--danger);
}

/* Guess */

.spy-guess-intro {
  text-align: center;
  border-color: rgba(143, 123, 255, 0.4);
  box-shadow: var(--glow-violet), var(--shadow-1);
}

.spy-guess-intro .p-kicker {
  color: var(--violet);
}

.spy-locations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spy-option {
  min-height: 44px;
  padding: 8px 12px;
  font-size: var(--fs-small);
}

@media (min-width: 560px) {
  .spy-locations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Result */

.spy-reveal {
  text-align: center;
}

.spy-word-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.spy-word {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.spy-spy-line {
  color: var(--muted);
  margin-top: var(--s3);
}

.spy-spy-line strong {
  color: var(--violet);
  font-weight: 800;
}

.spy-row-spy {
  border-color: rgba(143, 123, 255, 0.45);
  background: var(--violet-soft);
}

.spy-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

@media (max-width: 420px) {
  .spy-mode--split {
    grid-template-columns: 1fr;
  }

  .spy-mode .p-hint {
    margin-left: 0;
  }
}
