/* 08 · Thẻ Fifa World Cup — 1680 × 802 (Figma 4019:3304) */
.cards { height: 802px; padding: 120px 0 80px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.cards__head { width: 760px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cards__badge {
  display: inline-flex; align-items: center; height: 24px; padding: 8px 12px; border-radius: 999px;
  background: #fdd844; color: var(--c-primary); font-weight: 500; font-size: 14px; line-height: 1;
}
.cards__copy { display: flex; flex-direction: column; gap: 24px; }
.cards__head .section-desc { min-height: 48px; }

/* ---------- Sân khấu thẻ ---------- */
.cards__stage { position: relative; width: 1439px; height: 331.307px; touch-action: pan-y; user-select: none; }

/* Không gian 3D: tâm = vị trí thẻ giữa trong Figma (508.72 + 432.68/2 = 725).
   KHÔNG dùng preserve-3d ở đây: mỗi thẻ tự chiếu phối cảnh rồi xếp lớp bằng z-index,
   tránh thẻ cắt xuyên nhau khi đang xoay. */
.cards__fan { position: absolute; inset: 0; z-index: 2; perspective: 1200px; perspective-origin: 725px 50%; }
.card {
  --cw: 432.679px; --ch: 273.204px;
  position: absolute; left: calc(725px - var(--cw) / 2); top: calc(50% - var(--ch) / 2);
  width: var(--cw); height: var(--ch); padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 16px; will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
/* Trước khi script chạy (hoặc khi JS lỗi): chỉ thẻ giữa hiện, vẫn đúng bố cục */
.cards__fan:not(.is-live) .card { opacity: 0; }
.cards__fan:not(.is-live) .card:nth-child(3) { opacity: 1; }
.card.is-center { cursor: default; }

.card__body {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 46, 116, .08);
  transition: box-shadow .6s var(--ease-out-expo);
}
.card.is-center .card__body { box-shadow: 0 28px 40px -18px rgba(0, 46, 116, .35), 0 1px 2px rgba(0, 46, 116, .1); }
.card__body img { width: 100%; height: 100%; object-fit: cover; max-width: none; display: block; pointer-events: none; -webkit-user-drag: none; }
/* Lớp tối dần theo độ sâu — script.js đặt --shade theo vị trí trên vòng */
.card__body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: #0a1a33; opacity: var(--shade, 0);
}
.card:not(.is-center):hover .card__body::after { opacity: calc(var(--shade, 0) * .4); }
.card:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 4px; }

.cards__nav { position: absolute; left: 0; right: 0; top: 146px; display: flex; justify-content: space-between; pointer-events: none; z-index: 10; }
.cards__nav .icon-btn { pointer-events: auto; }

.cards__dots { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); display: flex; gap: 6px; }
.cards__dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--c-gray-btn); transition: width .5s var(--ease-out-expo), background .4s; }
.cards__dots span.is-on { width: 20px; background: var(--c-primary); }
