/* Bazdidban village (prefix bzv-): the channel card over the tunnel, the count and the screen, the numbers. */
/* The channel card: the world's own (worlds/bazdidban/world.css .bz-ccard), over the village's tunnel. */
.bzv-card { position: absolute; z-index: 2; top: 0; left: 0; width: min(300px, calc(100vw - 32px)); pointer-events: auto; will-change: transform; }
.bzv-card[hidden] { display: none; }
.bzv-card__in { position: relative; overflow: hidden; border-radius: 20px; background: #141316; color: #f5f5f5; text-align: start; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px -28px rgb(0 0 0 / 0.95); opacity: 0; transform: scale(0.72); transition: transform 0.5s var(--ease-out), opacity 0.26s; }
.bzv-card.is-on .bzv-card__in { opacity: 1; transform: none; }
.bzv-card__banner { position: relative; height: 92px; background: #222 var(--bzv-tun) no-repeat; background-size: 5344px 2672px; }
.bzv-card__banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(20 19 22 / 0.25), #141316 94%); }
.bzv-card__body { position: relative; padding: 0 20px 12px; margin-block-start: -42px; }
.bzv-card__av { display: block; width: 74px; height: 74px; border-radius: 50%; background: #222 var(--bzv-tun) no-repeat; background-size: 1600% 800%; box-shadow: 0 0 0 4px #141316; }
.bzv-card__name { margin: 12px 0 3px; font-size: 1.25rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bzv-card__meta { margin: 0; color: #a7a6ab; font-size: 0.9rem; line-height: 1.5; }
.bzv-card__meta b { color: #fff; font-weight: 700; }
.bzv-card__meta i { font-style: normal; margin-inline: 2px; }
.bzv-card__foot { margin-block-start: 12px; padding-block-start: 8px; border-block-start: 1px solid rgb(255 255 255 / 0.09); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bzv-card__foot p { margin: 0; color: #a7a6ab; font-size: 0.8125rem; line-height: 1.45; }
.bzv-card__x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.07); color: #fff; cursor: pointer; }
.bzv-card__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Beat 2: the count and the screen share one place; the count leaves as the screen arrives. */
.bzv-eng { display: grid; width: 100%; max-width: 32rem; margin-block-start: 2px; }
.bzv-eng > * { grid-area: 1 / 1; }
.bzv-count { align-self: start; transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out); }
.bzv-count.is-out { opacity: 0; transform: translate3d(0, -18px, 0); }
.bzv-count__n { margin: 0; font-size: clamp(3rem, 15vw, 5.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
html[lang='fa'] .bzv-count__n { letter-spacing: 0; line-height: 1.2; }
.bzv-count__l { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--mute); }
.bzv-screen { list-style: none; margin: 0; padding: 0; }
.bzv-screen li { padding: 6px 0; border-block-start: 1px solid var(--hair); font-size: 0.8125rem; line-height: 1.36; color: var(--mute); opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out); }
html[lang='fa'] .bzv-screen li { line-height: 1.6; padding: 4px 0; }
.bzv-screen li.is-in { opacity: 1; transform: none; }
.bzv-screen b { color: var(--fg); font-weight: 720; }

/* Beat 3: the numbers. */
.bzv-nums { list-style: none; margin: 6px 0 0; padding: 12px 0 0; width: 100%; max-width: 32rem; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 14px; border-block-start: 1px solid var(--hair); }
.bzv-nums li { display: grid; gap: 2px; align-content: start; }
.bzv-nums b { font-size: clamp(1.45rem, 6.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
html[lang='fa'] .bzv-nums b { letter-spacing: 0; line-height: 1.25; }
.bzv-nums span { max-width: 9em; font-size: 0.8125rem; line-height: 1.3; color: var(--mute); }
@media (min-width: 900px) {
  .bzv-screen li { padding: 8px 0; font-size: 0.9375rem; }
  .bzv-count__l, .bzv-nums span { font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) { .bzv-card__in, .bzv-count, .bzv-screen li { transition: none; } }
