/* «Валентинки» (0.55 winter events, public/winter-valentines.js): the window with the six valentines, the shop card's
   «анонимно» line, the reveal of a secret admirer (the name plate turns over — a turn round its own axis, no skew). */

.wval-modal.stats-modal { padding: 20px; }
.wval-page {
  position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255, 190, 210, .3); color: #fff3f6; box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 90% at 50% 0%, #7a2348 0%, #4a1230 50%, #260818 100%);
}
.wval-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px 22px; }
.wval-title { flex: 1; font: 700 24px/1.15 Georgia, 'Times New Roman', serif; color: #ffd3e0; }
.wval-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3);
  color: #fff3f6; font-size: 24px; line-height: 1; cursor: pointer;
}
.wval-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 22px; overflow: auto; }
.wval-how { margin: 0; font-size: 14.5px; line-height: 1.5; color: #ffe4ec; }
.wval-soft { font-size: 13.5px; color: #e9b8c8; }
.wval-note { padding: 40px 0; text-align: center; color: #e9b8c8; }
.wval-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.wval-pick {
  display: flex; flex-direction: column; gap: 6px; padding: 6px; min-height: 44px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255, 190, 210, .2); background: rgba(255, 255, 255, .05); color: #fff3f6; font: inherit; font-size: 13px; font-weight: 600;
}
.wval-pick svg { display: block; width: 100%; height: auto; border-radius: 9px; }
.wval-pick[aria-pressed="true"] { border-color: #ffb3c6; background: rgba(255, 179, 198, .16); box-shadow: inset 0 0 0 1px #ffb3c6; }
.wval-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.wval-go { align-self: flex-start; min-height: 46px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--accent, #e5a00d); color: #1b1406; font: 700 16px/1 inherit; cursor: pointer; }
.wval-flag { margin: 0; padding: 8px 11px; border-radius: 10px; background: rgba(255, 179, 198, .12); border: 1px dashed rgba(255, 179, 198, .5); color: #ffd3e0; font-size: 13px; }

/* The shop card's postcard: the week's line, «Отправить анонимно» */
.wval-extra { margin: 6px 0 2px; font-size: 13px; line-height: 1.4; }
.wval-week { color: #ffb3c6; font-weight: 600; }
.wval-late { color: var(--muted, #9aa3b5); }
.wval-anon { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 179, 198, .35); background: rgba(255, 179, 198, .08); cursor: pointer; }
.wval-anon input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #ff6f91; cursor: pointer; }
.wval-anon span { display: flex; flex-direction: column; gap: 2px; }
.wval-anon b { font-size: 14px; }
.wval-anon small { font-size: 12.5px; color: var(--muted, #b4bccb); }

/* The reveal */
.wval-rev { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: center; padding: 16px; background: rgba(28, 6, 18, .72); animation: dpwFade .3s ease both; }
.wval-out { opacity: 0; transition: opacity .3s ease; }
.wval-rev-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box;
  padding: 20px 20px 18px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, #8a2a52, #3a0d24); border: 1px solid rgba(255, 179, 198, .4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65); color: #fff3f6; text-align: center;
}
.wval-rev-t { font: 700 28px/1.15 Georgia, 'Times New Roman', serif; color: #ffd3e0; }
.wval-rev-s { font-size: 14px; color: #f2c4d3; }
.wval-rev-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.wval-rev-one { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(240px, 100%); }
.wval-rev-one .pcard { width: 100%; }
.wval-rev-one .pcard-back { display: none; } /* the picture and the plate: the words they read already */
.wval-plate { position: relative; width: 100%; height: 46px; perspective: 600px; }
.wval-face {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; backface-visibility: hidden;
  font: 700 17px/1.1 Georgia, 'Times New Roman', serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform .7s cubic-bezier(.3, .9, .3, 1.15); transition-delay: calc(var(--wv, 0) * .35s);
}
.wval-front { background: #2a0a1c; color: #ffb3c6; border: 1px dashed rgba(255, 179, 198, .6); }
.wval-back { background: #ffd3e0; color: #5a1230; transform: rotateX(180deg); }
.wval-open .wval-front { transform: rotateX(-180deg); }
.wval-open .wval-back { transform: rotateX(0deg); }
.wval-ok { min-height: 46px; padding: 0 30px; border: 0; border-radius: 12px; background: var(--accent, #e5a00d); color: #1b1406; font: 700 16px/1 inherit; cursor: pointer; margin-top: 4px; }
.wval-still .wval-face { transition: none; }

@media (max-width: 760px) {
  .wval-modal.stats-modal { padding: 0; align-items: stretch; }
  .wval-page { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .wval-top { padding: 10px 10px 4px 16px; }
  .wval-body { padding: 4px 14px 18px; }
  .wval-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wval-go { align-self: stretch; }
  .wval-rev-one { width: min(200px, 44vw); }
  .wval-rev-t { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .wval-face, .wval-rev { transition: none !important; animation: none !important; } }
