/* ============================================================
   A5Verdict — «Вердикт бога» после ночной партии.
   По образцу заставки бога внутри «Яхтзы» (.yz-god-modal), но
   отдельным слоем поверх кадра: партия к этому моменту закрыта.
   Префикс vd-, оверлей #verdict-root.
   ============================================================ */

#verdict-root {
  position: fixed; inset: 0; z-index: 62; display: none;
  color: #d8c39a; font-family: 'EB Garamond', Georgia, serif; user-select: none;
}
#verdict-root.show { display: block; }

.vd-wrap {
  position: absolute; inset: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  /* приподнять портрет от нижней кромки — растворяется «в воздухе» (vh, не %:
     процентный padding считается от ширины окна) */
  padding-bottom: 12vh;
  background: radial-gradient(ellipse at 50% 42%, rgba(24,16,8,.46), rgba(5,3,2,.92) 78%);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: vdRise .45s ease both;
}

.vd-portrait {
  height: 66vh; flex-shrink: 0; aspect-ratio: 439/720;
  background-size: cover; background-position: top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 58%, rgba(0,0,0,0) 97%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 58%, rgba(0,0,0,0) 97%);
  filter: drop-shadow(0 0 54px rgba(224,179,87,.32)) saturate(.94);
  animation: vdRise .6s ease both;
}
/* портрета нет — экран всё равно работает: буква вместо арта */
.vd-portrait.vd-noart {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 34%, rgba(44,33,24,.9), rgba(15,10,5,.9) 82%);
  border-radius: 50% 50% 14px 14px;
  border: 1px solid rgba(224,179,87,.22);
}
.vd-portrait.vd-noart span {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(64px, 14vh, 150px); color: #c9a25f; text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

.vd-caption {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 7%;
  max-width: 52ch; padding: 0 18px; text-align: center;
  animation: vdRise .5s .12s ease both;
}
.vd-kicker {
  font-size: clamp(11px, .9vw, 14px); letter-spacing: .28em; text-transform: uppercase;
  color: #9d8a66; margin-bottom: 8px;
}
.vd-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.vd-line-l { width: 34px; height: 1px; background: linear-gradient(90deg, rgba(224,179,87,0), rgba(224,179,87,.5)); }
.vd-line-r { width: 34px; height: 1px; background: linear-gradient(90deg, rgba(224,179,87,.5), rgba(224,179,87,0)); }
.vd-god {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(18px, 1.5vw, 26px); letter-spacing: .08em; color: #f2ce82;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.vd-text {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(15px, 1.25vw, 21px); line-height: 1.55; color: #d8c39a;
  text-shadow: 0 2px 12px rgba(0,0,0,.85); white-space: pre-wrap;
}
.vd-btn {
  margin-top: 16px; padding: 11px 26px; border-radius: 999px; cursor: pointer;
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 17px; letter-spacing: .06em;
  border: 1px solid rgba(224,179,87,.5); background: rgba(224,179,87,.1); color: #f2ce82;
}
.vd-btn:hover { background: rgba(224,179,87,.2); }

@keyframes vdRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* низкие экраны: портрет ужимается, подпись не наезжает.
   bottom щедрее базовых 7% — оверлей живёт внутри кадра игры, и на низких
   экранах его нижняя кромка оказывается чуть ниже видимой области окна */
@media (max-height: 720px) {
  .vd-portrait { height: 52vh; }
  .vd-wrap { padding-bottom: 8vh; }
  .vd-caption { bottom: 8%; }
}
