/* =========================================================================
   Pacotes de Moedas (Group 24 do Figma + referência).
   Cada card é um container: as medidas internas usam cqw (1cqw = 1% da largura do card),
   então o desenho fica igual em qualquer tamanho de tela.
   ========================================================================= */
.s-moedas { --u: calc(100cqw / 2002); position: relative; z-index: 1; color: #fff; }

/* ---------- cabeçalho ---------- */
.m-cab { position: relative; text-align: center; }
.m-cab .m-tag { justify-content: center; margin-left: 0; margin-right: 0; }
.m-cab .m-desc { margin-left: 0; margin-right: 0; }
.m-tag { display: flex; align-items: center; gap: .55em; margin: 0 0 0 calc(110 * var(--u));
  font: 800 max(calc(21 * var(--u)), 13px) / 1 "Poppins", sans-serif; letter-spacing: .06em; color: #ffc93c; }
.m-tit { display: block; margin: calc(8 * var(--u)) 0 0; font: 500 max(calc(92 * var(--u)), 40px) / 1.05 "Oswald", sans-serif; color: #fff; }
.m-desc { margin: calc(10 * var(--u)) 0 0 calc(110 * var(--u)); font: 400 max(calc(22.5 * var(--u)), 14px) / 1.45 "Poppins", sans-serif; color: #e6eeff; }
.m-desc b { font-weight: 700; color: #fff; }

/* ---------- grade ---------- */
.mgrade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(24 * var(--u)); row-gap: calc(40 * var(--u));
  margin-top: calc(34 * var(--u)); }

/* ---------- card ---------- */
.mcard { position: relative; display: block; container-type: inline-size; aspect-ratio: 1438 / 835; color: #fff; text-decoration: none;
  font-family: "Poppins", sans-serif; transition: transform .2s ease, filter .2s ease; }
.mcard > * { position: absolute; }
/* a imagem tem margem de brilho: a borda visível (81–1519 × 59–894 de 1599 × 984) coincide com a caixa do card */
.m-moldura { left: -5.633%; top: -7.066%; width: 111.196%; height: 117.844%; max-width: none; pointer-events: none; }
.m-item { left: 7.5%; top: 12%; width: 31%; height: 44%; object-fit: contain; filter: drop-shadow(0 1.2cqw 1.2cqw rgba(0, 0, 0, .35)); }
.m-nome { left: 47.5%; top: 14%; font-size: 3.5cqw; font-weight: 700; letter-spacing: .09em; color: #dce8ff; line-height: 1; }
.m-qtd { left: 47%; top: 21.5%; font-size: 12.6cqw; font-weight: 800; line-height: 1; letter-spacing: -.01em;
  text-shadow: 0 .05em 0 rgba(0, 20, 80, .55); }
.m-sub { left: 47.5%; top: 47.5%; font-size: 4cqw; font-weight: 500; line-height: 1; color: #c9d8f5; white-space: nowrap; }
.m-sub em { font-style: normal; font-weight: 700; color: #8bf05a; }
.m-bonus { right: 5.5%; top: 10.5%; padding: .35em .6em; border-radius: 999px; font-size: 3.6cqw; font-weight: 800; line-height: 1;
  color: #a6ff70; background: linear-gradient(180deg, #1f6e2a, #0f4a1b); box-shadow: inset 0 0 0 .2cqw #63d84a, 0 .4cqw 1cqw rgba(0, 0, 0, .3); }
.m-linha { left: 6.5%; right: 6.5%; top: 64.5%; height: .25cqw;
  background: linear-gradient(90deg, rgba(110, 190, 255, 0), rgba(110, 190, 255, .6) 20%, rgba(110, 190, 255, .6) 80%, rgba(110, 190, 255, 0)); }
.m-preco { left: 7.5%; top: 76%; font-size: 6.9cqw; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.m-btn { right: 6%; top: 72.5%; width: 37.5%; height: 17%; display: flex; align-items: center; justify-content: center; gap: .45em;
  border-radius: 2.2cqw; font-size: 4.1cqw; font-weight: 700; color: #fff; line-height: 1;
  background: linear-gradient(180deg, #2f9bff 0%, #136de8 55%, #0a54c9 100%);
  box-shadow: inset 0 .35cqw 0 rgba(255, 255, 255, .35), inset 0 -.4cqw 0 rgba(0, 20, 90, .35), 0 0 0 .3cqw #5cc8ff, 0 .8cqw 1.6cqw rgba(0, 0, 0, .35);
  transition: filter .15s ease, transform .15s ease; overflow: hidden; }
.m-cart { width: 1.25em; height: 1.25em; flex: none; }

/* Baú: dourado, com o selo "Melhor custo" */
.mcard.ouro .m-btn { color: #2a1500; background: linear-gradient(180deg, #ffe46b 0%, #ffc41f 55%, #f0a300 100%);
  box-shadow: inset 0 .35cqw 0 rgba(255, 255, 255, .55), inset 0 -.4cqw 0 rgba(120, 60, 0, .35), 0 0 0 .3cqw #ffd84a, 0 .8cqw 1.6cqw rgba(0, 0, 0, .35); }
.mcard.ouro .m-linha { background: linear-gradient(90deg, rgba(255, 200, 60, 0), rgba(255, 200, 60, .6) 20%, rgba(255, 200, 60, .6) 80%, rgba(255, 200, 60, 0)); }
.mcard.ouro { filter: drop-shadow(0 0 1.6cqw rgba(255, 190, 40, .35)); }
.m-selo { left: 17%; top: -4.5%; z-index: 2; display: flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 1.6cqw;
  font-size: 3.5cqw; font-weight: 800; line-height: 1; color: #2a1500; white-space: nowrap;
  background: linear-gradient(180deg, #ffe46b, #f5b000); box-shadow: inset 0 .3cqw 0 rgba(255, 255, 255, .5), 0 .6cqw 1.4cqw rgba(0, 0, 0, .35); }
.m-selo svg { width: 1.15em; height: 1.15em; }

/* interação */
.mcard:hover { transform: translateY(-4px); }
.mcard:hover .m-btn { filter: brightness(1.1); }
.mcard:active .m-btn { transform: scale(.96); }
.mcard:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 3cqw; }
.anim .mcard:hover .m-item { animation: m-pula .5s ease; }
@keyframes m-pula { 0%, 100% { translate: 0 0; } 40% { translate: 0 -6%; } 70% { translate: 0 2%; } }
.anim .m-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: m-brilho 4.5s ease-in-out infinite; }
.anim .mcard:nth-child(2) .m-btn::after { animation-delay: .4s; } .anim .mcard:nth-child(3) .m-btn::after { animation-delay: .8s; }
.anim .mcard:nth-child(4) .m-btn::after { animation-delay: 1.2s; } .anim .mcard:nth-child(5) .m-btn::after { animation-delay: 1.6s; }
.anim .mcard:nth-child(6) .m-btn::after { animation-delay: 2s; }
@keyframes m-brilho { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* =========================== computador (posição no Figma) =========================== */
@media (min-width: 1200px) {
  .fg .s.s-moedas { display: block; margin-top: calc(2655 * var(--u)); width: calc(1800 * var(--u)); margin-left: calc(101 * var(--u)); }
  .s-moedas > .ancora { top: calc(-30 * var(--u)); }
  .fg .s.s-cargos { margin-top: calc(70 * var(--u)); }
}

/* =========================== tablet e celular =========================== */
@media (max-width: 1199.98px) {
  .fg .s-moedas { max-width: 1000px; margin: 44px auto 0; }
  .s-moedas { --u: 1px; }
  .m-tag, .m-desc { margin-left: 0; }
  .m-tit { font-size: clamp(40px, 11vw, 64px); margin-top: 6px; }
  .m-desc br { display: none; }
  .mgrade { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 26px; margin-top: 26px; }
}
@media (max-width: 639.98px) {
  .mgrade { grid-template-columns: 1fr; row-gap: 22px; max-width: 460px; margin-left: auto; margin-right: auto; }
}
.m-v3 { margin-top: calc(14 * var(--u)); }
.m-v3 a { color: #bfe6ff; text-decoration: underline; text-underline-offset: 3px; }
