/* =========================================================
   01M · BỘ INFOGRAPHIC & LINH VẬT
   ========================================================= */

.info-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(254, 205, 165, 0.42), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(40, 51, 119, 0.07), transparent 65%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* Bộ infographic nằm trong mục Tường lan tỏa. */
.wall-infographic {
  margin-top: clamp(54px, 7vw, 96px);
  padding-top: clamp(42px, 5vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.info-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(30px, 4vw, 48px);
}

.info-head-copy .section-lead { max-width: 620px; }

.info-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-credit::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

/* --- hai linh vat --- */
.info-duo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 220px;
  padding: clamp(16px, 2.4vw, 26px) 8px 12px;
}
.duo-blob {
  position: absolute;
  inset: 4% 8% 14% 8%;
  border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
  background: linear-gradient(150deg, rgba(254, 205, 165, 0.9), rgba(255, 253, 248, 0.18) 72%);
  transform: rotate(-4deg);
}
.duo-stage {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.duo-stage:focus-visible {
  border-radius: 24px;
  outline: 2px solid var(--ink-3);
  outline-offset: 8px;
}
.duo-figures {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.35s var(--ease);
}
.duo-uka-wrap {
  display: flex;
  align-items: flex-end;
  transform: scaleX(-1);
}
.duo-01m {
  width: clamp(104px, 16vw, 152px);
  height: auto;
  margin-left: -4px;
  filter: drop-shadow(0 18px 26px rgba(20, 20, 46, 0.18));
  animation: mascotFloat 5.2s ease-in-out infinite;
}
.duo-uka {
  width: auto;
  height: clamp(112px, 15vw, 150px);
  margin-bottom: 0;
  filter: drop-shadow(0 18px 26px rgba(20, 20, 46, 0.16));
  animation: mascotFloat 5.2s ease-in-out 0.7s infinite;
}
.duo-heart {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(52px, 5.6vw, 78px);
  height: auto;
  margin: 0 clamp(-40px, -3vw, -26px) clamp(10px, 1.4vw, 14px);
  color: var(--coral);
  filter: drop-shadow(0 10px 16px rgba(179, 20, 31, 0.35));
  animation: duoHeartBeat 2.6s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}
.duo-heart svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.duo-heart svg path {
  stroke: var(--white);
  stroke-width: 1.1;
  stroke-linejoin: round;
  paint-order: stroke;
}
.duo-heart::before,
.duo-heart::after {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--coral);
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
.duo-bubble {
  position: absolute;
  top: -4%;
  left: 50%;
  z-index: 3;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.92);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.duo-stage:hover .duo-figures { transform: translateY(-2px); }
.duo-stage:hover .duo-heart { transform: scale(1.1); }

.info-duo.is-cheering .duo-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.info-duo.is-cheering .duo-01m {
  animation: mascotFloat 5.2s ease-in-out infinite, duoLeanLeft 0.9s var(--ease);
}
.info-duo.is-cheering .duo-uka {
  animation: mascotFloat 5.2s ease-in-out 0.7s infinite, duoLeanRight 0.9s var(--ease);
}
.info-duo.is-cheering .duo-heart { animation: duoHeartPop 0.9s var(--ease); }
.info-duo.is-cheering .duo-heart::before { animation: duoHeartFloatA 1.2s ease-out; }
.info-duo.is-cheering .duo-heart::after { animation: duoHeartFloatB 1.2s ease-out 0.1s; }

@keyframes duoHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.14); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}
@keyframes duoHeartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.5) rotate(-8deg); }
  65% { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1); }
}
@keyframes duoHeartFloatA {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-130%, -180%) scale(1.1) rotate(-12deg); }
}
@keyframes duoHeartFloatB {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(40%, -200%) scale(1) rotate(10deg); }
}
@keyframes duoLeanLeft {
  0%, 100% { transform: translateX(0) rotate(0); }
  35% { transform: translateX(6px) rotate(4deg); }
  70% { transform: translateX(2px) rotate(-2deg); }
}
@keyframes duoLeanRight {
  0%, 100% { transform: translateX(0) rotate(0); }
  35% { transform: translateX(-6px) rotate(-4deg); }
  70% { transform: translateX(-2px) rotate(2deg); }
}
.duo-caption {
  position: relative;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* --- luoi infographic --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.info-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px -32px rgba(20, 20, 46, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.info-card:hover,
.info-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(40, 51, 119, 0.3);
  box-shadow: 0 32px 60px -36px rgba(20, 20, 46, 0.5);
}
.info-card:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 3px; }

.info-thumb {
  position: relative;
  display: block;
  aspect-ratio: 640 / 906;
  overflow: hidden;
  background: #e9e4da;
}
.info-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.info-card:hover .info-thumb img { transform: scale(1.03); }
.info-thumb::before {
  content: "+";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(20, 20, 46, 0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.info-card:hover .info-thumb::before,
.info-card:focus-visible .info-thumb::before {
  opacity: 1;
  transform: scale(1);
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
}
.info-card-no {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--coral-deep);
}
.info-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.info-card-sub {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* --- o goi y lop hoc --- */
.info-card-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(179, 20, 31, 0.55), transparent 55%),
    linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 72%);
  color: var(--paper);
  cursor: default;
  box-shadow: var(--shadow);
}
.info-card-cta:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.info-cta-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid rgba(254, 205, 165, 0.45);
  border-radius: 999px;
  color: var(--peach);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.info-card-cta strong {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.info-card-cta ul {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.info-card-cta li {
  position: relative;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(251, 247, 239, 0.74);
}
.info-card-cta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.info-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--peach);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.info-cta-link:hover { color: var(--white); }
.info-cta-link .icon { width: 14px; height: 14px; }

/* --- bo hinh linh vat --- */
.mascot-shelf {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-soft);
}
.mascot-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.mascot-shelf-head h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.03em;
}
.mascot-shelf-head p {
  max-width: 620px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.mascot-shelf-tag {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mascot-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}

.mascot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #f6efe3);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mascot-card:hover,
.mascot-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(179, 20, 31, 0.28);
  box-shadow: var(--shadow-soft);
}
.mascot-card:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; }
.mascot-card img {
  width: auto;
  height: clamp(64px, 7vw, 92px);
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(20, 20, 46, 0.14));
}
.mascot-brand {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ink-3);
  color: var(--paper);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.mascot-card--uka .mascot-brand { background: var(--coral); }
.mascot-label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}

/* skeleton while images load */
@keyframes skeletonShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
.info-thumb img,
.mascot-card img,
.info-lb-media img {
  background-image: linear-gradient(100deg, #e7e1d6 22%, #f6f1e8 40%, #e7e1d6 58%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.info-thumb img.is-loaded,
.mascot-card img.is-loaded,
.info-lb-media img.is-loaded {
  background-image: none;
  animation: none;
}

/* --- lightbox --- */
#lightboxBody .info-lb {
  display: grid;
  width: fit-content;
  min-width: min(420px, 92vw);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}
#lightboxBody .info-lb[data-kind="poster"] { width: min(760px, 94vw); }
#lightboxBody .info-lb[data-kind="mascot"] { width: min(560px, 94vw); }
.info-lb-media {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(560px, 92vw);
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: #e9e4da;
}
.info-lb-media:not(.is-loaded) {
  background-image: linear-gradient(100deg, #e7e1d6 22%, #f6f1e8 40%, #e7e1d6 58%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.info-lb[data-kind="poster"] .info-lb-media { min-height: calc(70vh + 20px); }
.info-lb[data-kind="mascot"] .info-lb-media { min-height: calc(58vh + 44px); }
.info-lb-media img {
  width: auto;
  max-width: min(560px, 92vw);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}
.info-lb[data-kind="mascot"] .info-lb-media {
  padding: 22px;
  background: radial-gradient(circle at 50% 34%, #fffdf8 0%, #f2ebdf 70%, #e8dfcf 100%);
}
.info-lb[data-kind="mascot"] .info-lb-media img {
  max-height: 58vh;
  border-radius: 0;
}
.info-lb-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}
.info-lb-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.info-lb-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.info-lb-text strong {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.info-lb-text span:last-child {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.info-lb-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.info-lb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.info-lb-nav button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.info-lb-nav button:hover { background: var(--ink); color: var(--paper); }
.info-lb-count {
  min-width: 38px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

/* --- responsive --- */
@media (max-width: 1100px) {
  .mascot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .info-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .info-duo {
    order: 0;
    min-height: 190px;
    margin-top: 6px;
  }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-card-cta { grid-column: span 2; }
  .info-card-cta ul { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .mascot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-card-cta { grid-column: auto; }
  .info-card-cta ul { grid-template-columns: 1fr; }
  .mascot-shelf-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mascot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo-caption { white-space: normal; text-align: center; }
  .info-lb-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .info-lb-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .info-lb-actions .btn { justify-content: center; }
  .info-lb-nav { justify-content: center; }
  .info-lb-media img { max-height: 54vh; }
  .info-lb[data-kind="poster"] .info-lb-media { min-height: calc(54vh + 20px); }
  .info-lb[data-kind="mascot"] .info-lb-media img { max-height: 46vh; }
  .info-lb[data-kind="mascot"] .info-lb-media { min-height: calc(46vh + 44px); }
}
