/* Thiệp dịp lễ (đợt 14) — play-holiday.js. Kích thước theo em của khung .pl (play.css). */

/* ---------- Lịch bloc xé ---------- */
.pl-bloc { gap: 1.2cqmin; }
.bl-wall { position: relative; display: grid; place-items: center; padding-top: 1.2em; }
.bl-board { position: relative; isolation: isolate; width: 14.6em; padding: .55em .55em .7em; border-radius: .5em .5em .7em .7em;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .05) 0 .18em, transparent .18em .9em),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 82%, #fff), color-mix(in srgb, var(--accent) 72%, #000));
  box-shadow: 0 1.1em 2.2em -.7em rgba(0, 0, 0, .5), inset 0 0 0 .14em color-mix(in srgb, var(--accent2) 65%, transparent); }
.bl-nail { position: absolute; left: 50%; top: -1.25em; width: .7em; height: .7em; margin-left: -.35em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8f9fa, #868e96 60%, #343a40); box-shadow: 0 .15em .3em rgba(0, 0, 0, .4); }
.bl-nail::before, .bl-nail::after { content: ''; position: absolute; top: .45em; width: .08em; height: 1.35em; background: rgba(0, 0, 0, .45); transform-origin: top; }
.bl-nail::before { left: .2em; transform: rotate(32deg); }
.bl-nail::after { right: .2em; transform: rotate(-32deg); }
.bl-head { display: flex; flex-direction: column; align-items: center; padding: .15em 0 .45em; color: #fff; text-align: center; }
.bl-head b { font-family: var(--tf); font-weight: 400; font-size: 1.35em; letter-spacing: .04em; line-height: 1.1; text-shadow: 0 .08em .2em rgba(0, 0, 0, .3); }
.bl-head small { font-size: .62em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
/* gáy lịch: dải kim loại + mẩu giấy còn lại sau mỗi lần xé */
.bl-binding { position: relative; height: .5em; margin: 0 .1em; border-radius: .15em; background: linear-gradient(180deg, #dee2e6, #868e96); z-index: 30;
  box-shadow: 0 .12em .2em rgba(0, 0, 0, .35); }
.bl-stub { position: absolute; left: .4em; right: .4em; top: .38em; height: .45em; background: #fffdf6; translate: var(--o) 0;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 95% 100%, 90% 50%, 84% 95%, 78% 45%, 71% 100%, 65% 55%, 58% 95%, 52% 40%, 45% 100%, 38% 50%, 31% 95%, 25% 45%, 18% 100%, 12% 55%, 6% 95%, 0 60%); }
.bl-stack { position: relative; height: 18.6em; margin: -.05em .25em 0; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; outline: none; }
.bl-stack:focus-visible { box-shadow: 0 0 0 .18em var(--accent2); border-radius: .2em; }
.bl-edge { position: absolute; left: .8em; right: .8em; bottom: .38em; height: .5em; border-radius: 0 0 .3em .3em;
  background: repeating-linear-gradient(180deg, #f1f3f5 0 .08em, #ced4da .08em .12em); box-shadow: 0 .2em .3em -.1em rgba(0, 0, 0, .35); }

.bl-page { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: .45em .7em .55em; background: #fffdf6; color: #1d2b53;
  box-shadow: 0 .06em 0 #e9ecef, 0 .3em .6em -.3em rgba(0, 0, 0, .3); transform-origin: 50% 0; rotate: var(--r, 0deg);
  font-family: var(--bf); text-align: center; overflow: hidden; }
.bl-page::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: .35em;
  background: radial-gradient(circle at .35em .05em, #adb5bd .1em, transparent .13em) 0 0 / .7em .35em repeat-x; opacity: .7; }
.bl-page.sun, .bl-page.hol { color: #c92a2a; }
.bl-page.tear { animation: bl-tear .65s cubic-bezier(.4, -.2, .7, .6) forwards; pointer-events: none; }
@keyframes bl-tear {
  0% { transform: none; }
  18% { transform: translateY(-.25em) rotate(calc(var(--tr) * .12)); }
  100% { transform: translate(var(--tx), -9em) rotate(var(--tr)); opacity: 0; }
}
.bl-top { display: flex; justify-content: space-between; width: 100%; padding: .25em 0 .1em; border-bottom: .08em solid currentColor; font-size: .72em; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; }
.bl-day { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 4.3em; line-height: 1; margin-top: .02em; letter-spacing: -.02em;
  text-shadow: .02em .02em 0 rgba(0, 0, 0, .06); }
.bl-wd { font-size: .95em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: -.05em; }
.bl-low { display: flex; align-items: stretch; gap: .5em; width: 100%; margin-top: .3em; padding-top: .3em; border-top: .06em dashed color-mix(in srgb, currentColor 45%, transparent); }
.bl-am { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 4.6em; padding: .15em .3em; border-radius: .35em;
  background: color-mix(in srgb, currentColor 8%, transparent); }
.bl-am small { font-size: .58em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bl-am b { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6em; line-height: 1; }
.bl-cc { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .12em; font-size: .66em; font-weight: 600; text-align: left; opacity: .9; }
.bl-note { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; width: 100%; padding-top: .3em; color: #343a40; }
.bl-note p { margin: 0; font-family: var(--tf); font-size: .95em; line-height: 1.28; overflow-wrap: anywhere; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-ic { font-size: 1.05em; line-height: 1; }
.bl-left { align-self: flex-end; margin-top: .15em; font-size: .56em; font-weight: 700; letter-spacing: .04em; color: #868e96; }
.bl-page.hol .bl-note { color: #c92a2a; }
.bl-hname { font-family: var(--tf); font-weight: 400; font-size: 1.35em; line-height: 1.15; color: var(--accent-deep, var(--accent)); overflow-wrap: anywhere; text-wrap: balance; }
.bl-page.hol .bl-note small { font-size: .62em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #868e96; animation: bl-blink 1.6s ease-in-out infinite; }
@keyframes bl-blink { 50% { opacity: .45; } }
.bl-photo { width: 2.6em; height: 2.6em; border-radius: 50%; overflow: hidden; border: .14em solid #fff; box-shadow: 0 .15em .4em rgba(0, 0, 0, .25); }
.bl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card .bl-kicker { margin: 0 0 .5em; font-size: .7em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c92a2a; }
.bl-reopen { position: absolute; bottom: 3cqmin; left: 50%; translate: -50% 0; z-index: 7; animation: pl-up .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  .bl-page.tear { animation-duration: .01s; }
  .bl-page.hol .bl-note small { animation: none; }
}
