/* MassaCoin — R306: HOME no formato da imagem de referência aprovada pelo fundador (azul royal + dourado + branco).
   SOMENTE apresentação (CSS + ilustrações vetoriais): mesmos textos, links, botões e funções. Sem fotos de pessoas (nítido em qualquer tela). */

/* ---------- 1) Ordem visual (mesmos elementos, só reorganizados) : painel azul → blocos → carrossel → recompensas → feed → duelos ---------- */
html body .wrap:has(> #homeSignup) { display: flex; flex-direction: column; }
html body .wrap:has(> #homeSignup) > * { order: 80; }
html body .wrap:has(> #homeSignup) > #installBanner { order: 0; }
html body .wrap:has(> #homeSignup) > .header { order: 4; }
html body .wrap:has(> #homeSignup) > .balance { order: 8; }
html body .wrap:has(> #homeSignup) > #homeSignup { order: 12; }
html body .wrap:has(> #homeSignup) > .quick-actions { order: 16; }
html body .wrap:has(> #homeSignup) > .shortcuts { order: 20; }
html body .wrap:has(> #homeSignup) > #homeFeed { order: 7; }
html body .wrap:has(> #homeSignup) > #adBannerTop { order: 28; }
html body .wrap:has(> #homeSignup) > .section-heading--hero { order: 32; }
html body .wrap:has(> #homeSignup) > .home-sep { order: 36; }
html body .wrap:has(> #homeSignup) > #homeSlot { order: 40; }
html body .wrap:has(> #homeSignup) > .pillars-grid { order: 48; }
html body .wrap:has(> #homeSignup) > .pillars-grid ~ * { order: 81; }
html body .wrap:has(> #homeSignup) > h2:has(+ .pillars-grid) { order: 44; }
html body .wrap:has(> #homeSignup) > .feature-bars { order: 52; }
html body .wrap:has(> #homeSignup) > h2:has(+ .dd-banner) { order: 60; }
html body .wrap:has(> #homeSignup) > .dd-banner { order: 64; }
html body .wrap:has(> #homeSignup) > .footer-nav { order: 90; }
html body .wrap:has(> #homeSignup) > .legal-footer { order: 91; }

/* ---------- 2) Painel azul contínuo: cabeçalho + saldo (moldura) + texto dourado ---------- */
html body .wrap > header.header.header { border-radius: 30px 30px 0 0; margin: 10px 14px 0; background: linear-gradient(180deg, var(--vt-blue) 0%, color-mix(in srgb, var(--vt-blue) 45%, var(--vt-navy)) 100%) !important; box-shadow: none; border-bottom: 0; }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) { margin: 12px 26px 12px; }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) .mc-coins { --c: clamp(74px, 24vw, 112px); }
html body a#homeSignup.cta-participar.home-signup { margin: 0 14px !important; border-radius: 0 0 30px 30px !important; border: 0 !important; padding: 26px 20px 26px !important; font-size: 17px; line-height: 1.3;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-blue) 45%, var(--vt-navy)) 0%, var(--vt-navy) 100%) !important; box-shadow: 0 16px 30px color-mix(in srgb, var(--vt-navy) 35%, transparent) !important; }
html body .wrap > .quick-actions { padding-top: 22px; }

/* ---------- 3) Título "Veja como funciona" com seta dourada (mesmo link) ---------- */
html body .section-heading--hero { margin-top: 22px; }
html body .section-heading--hero .section-heading__link { position: relative; display: block; padding-right: 54px; text-align: left; }
html body .section-heading--hero .section-heading__link::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--vt-ink); background: linear-gradient(145deg, #fff0b8, #e0b44a); box-shadow: 0 6px 12px rgba(0,0,0,.2); }

/* ---------- 4) Carrossel dos pilares: azul royal + ilustração + legenda em faixa branca ---------- */
html body .wrap .pillars-grid { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 14px 16px; margin: 0; scroll-padding-left: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html body .wrap .pillars-grid::-webkit-scrollbar { display: none; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card { flex: 0 0 46%; min-width: 150px; max-width: 240px; scroll-snap-align: start; min-height: 232px; padding: 66px 14px 0 !important; justify-content: flex-start !important; overflow: hidden; grid-column: auto !important;
  border: 1px solid color-mix(in srgb, #e0b44a 60%, transparent) !important; background-color: var(--vr-navy) !important; background-repeat: no-repeat !important; background-position: center bottom 46px, center !important; background-size: auto 94px, auto !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--vr-navy) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.18) !important; }
@media (min-width: 700px) { html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card { flex: 1 1 0; max-width: none; } html body .wrap .pillars-grid { overflow-x: visible; } }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(1) { background-image: url(/img/art/turismo.svg), linear-gradient(180deg, var(--vr-blue), var(--vr-navy)) !important; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(2) { background-image: url(/img/art/empreendedor.svg), linear-gradient(180deg, var(--vr-blue), var(--vr-navy)) !important; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(3) { background-image: url(/img/art/oportunidades.svg), linear-gradient(180deg, var(--vr-blue), var(--vr-navy)) !important; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(4) { background-image: url(/img/art/impacto.svg), linear-gradient(180deg, var(--vr-blue), var(--vr-navy)) !important; }
/* 5º bloco (Contato): dourado com a moeda grande, como na referência */
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(5) { background-image: url(/icons/massacoin-coin-m-512.png), linear-gradient(160deg, #f8e6a4 0%, #e0b44a 100%) !important; background-size: 62% auto, auto !important; background-position: right -10px bottom 46px, center !important; min-height: 232px; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(5) .highlight-card__title { color: var(--vr-ink) !important; text-shadow: none; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card .highlight-card__icon { top: 14px; left: 14px; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card::before { top: 12px; right: 12px; width: 40px; height: 40px; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card:nth-child(5)::before { display: none; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card::after { display: none; }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card .highlight-card__title { color: #fff !important; font-size: 16px; line-height: 1.2; max-width: 100%; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
html body .wrap .pillars-grid > .pillar-card.pillar-card.pillar-card .highlight-card__sub { margin: auto -14px 0 !important; max-width: none !important; padding: 10px 14px 12px; background: #fff; color: var(--vr-navy) !important; text-shadow: none !important; font-weight: 700; font-size: 12px; line-height: 1.3; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 14px rgba(0,0,0,.1); }

/* ---------- 5) Recompensas: cartão branco + cartão dourado com medalha ---------- */
html body .feature-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 14px; }
html body .feature-bars .statement-row--feature { position: relative; display: block; min-height: 190px; padding: 16px 14px 46px !important; border-radius: 26px !important; }
html body .feature-bars .statement-row--feature::before { display: none; }
html body .feature-bars .statement-row--feature .statement-row__icon { position: absolute; top: 12px; right: 12px; width: 54px; height: 54px; border-radius: 50% !important; background: url(/icons/massacoin-coin-m-512.png) center / cover no-repeat !important; box-shadow: 0 6px 14px rgba(150,110,20,.35); border: 0; }
html body .feature-bars .statement-row--feature .statement-row__icon svg { display: none; }
html body .feature-bars .statement-row--feature .statement-row__info { display: block; padding-right: 0; }
html body .feature-bars .statement-row--feature .statement-row__title { font-size: 18px; line-height: 1.15; margin: 0 56px 8px 0; text-transform: uppercase; letter-spacing: .01em; color: var(--vr-navy) !important; }
html body .feature-bars .statement-row--feature .statement-row__meta { margin-top: 28px; font-size: 12.5px; line-height: 1.35; color: rgba(11,27,63,.78); }
html body .feature-bars .statement-row--feature .statement-row__amount { position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #fff0b8, #e0b44a); color: var(--vr-ink) !important; font-size: 15px; }
html body .feature-bars .statement-row--feature:nth-child(2) { background: linear-gradient(160deg, #f8e6a4 0%, #e0b44a 100%) !important; border-color: rgba(11,27,63,.15) !important; }
@media (max-width: 420px) { html body .feature-bars { grid-template-columns: 1fr; } html body .feature-bars .statement-row--feature { min-height: 0; } }

/* ---------- 6) Duelos e Desafios: troféu e pódio em vetor (nítido) ---------- */
html body .dd-banner { display: grid; grid-template-columns: 1fr; margin: 0 14px 18px; }
html body .dd-banner__art { display: block; height: 150px; border-radius: 20px; background: url(/img/art/duelos.svg) center / contain no-repeat, linear-gradient(160deg, var(--vr-blue), var(--vr-navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
html body .hf, html body .section-heading { margin-left: 0; }

/* títulos de seção com recuo igual ao dos cartões */
html body .wrap:has(> #homeSignup) > .section-heading { padding-left: 16px; padding-right: 16px; }
html body .wrap:has(> #homeSignup) > #homeFeed .section-heading { padding-left: 16px; }
html body .wrap:has(> #homeSignup) > .section-heading::after, html body .wrap:has(> #homeSignup) > #homeFeed .section-heading::after { left: 16px; }
html body .dd-banner__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* o título já aparece na seção logo acima (texto continua no HTML para leitores de tela) */
html body .dd-banner { padding: 14px; }

/* ---------- 7) FEED na home: grade de cartões com foto, autor e legenda (2 colunas no celular, 4 no computador) ---------- */
html body .hf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 4px 14px 14px; scroll-snap-type: none; }
@media (min-width: 900px) { html body .hf-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html body .hf-card { flex: none; max-width: none; border-radius: 22px; }
html body .hf-media { aspect-ratio: 4 / 3; }
html body .hf-media::after { display: none; }
html body .hf-cap { align-items: center; gap: 6px; padding: 10px 8px 12px; }
html body .hf-av { position: static; flex: 0 0 28px; width: 28px; height: 28px; font-size: 12px; border-width: 2px; }
html body .hf-capt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
html body .hf-name { position: static; font-size: 12px; letter-spacing: -.01em; font-weight: 800; color: var(--vt-ink, #0b1b3f); text-shadow: none; }
html body .hf-txt { font-size: 11.5px; font-weight: 600; color: rgba(11,27,63,.7); -webkit-line-clamp: 1; }
html body .hf-like { font-size: 11px; }

/* ---------- 8) R309: boas-vindas logo abaixo do topo; carrossel superior (somente leitura, sem curtidas) ---------- */
html body .wrap:has(> #homeSignup) > .home-welcome { order: 5; }
html body .home-welcome { text-align: center; padding: 6px 22px 16px; }
html body .home-welcome__title { margin: 0 0 6px; font-size: clamp(18px, 5vw, 24px); font-weight: 800; letter-spacing: -.01em; color: var(--vt-text, #11296a); line-height: 1.15; }
html body .home-welcome__sub { margin: 0 auto; max-width: 520px; font-size: 14px; font-weight: 500; line-height: 1.45; color: rgba(11,27,63,.78); }
html body .hf-like { display: none; }

/* ---------- 9) R310: topo em degradê azul-céu (como o modelo), grade do carrossel 4×2, Rede + Central lado a lado ---------- */
html body .wrap:has(> #homeSignup) { background: linear-gradient(180deg, #3f86d6 0, #7fb0e8 130px, #cfe2f8 250px, rgba(247,249,253,0) 380px) no-repeat; }
html body .wrap > header.header.header { background: transparent !important; background-image: none !important; box-shadow: none !important; border: 0 !important; margin: 6px 8px 0; }
html body .wrap > .header .brand__name { color: #fff; }
html body .home-welcome { padding-top: 14px; }
html body .home-welcome__title { color: #0f2f6e; }
html body .home-welcome__sub { color: #17356f; }
html body .hf-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px 10px 12px; }
html body .hf-card { border-radius: 14px; }
html body .hf-media { aspect-ratio: 1 / 0.85; }
html body .hf-cap { gap: 4px; padding: 6px 5px 7px; }
html body .hf-av { flex-basis: 20px; width: 20px; height: 20px; font-size: 9px; border-width: 1.5px; }
html body .hf-name { font-size: 9.5px; line-height: 1.15; }
html body .hf-txt { font-size: 8px; line-height: 1.15; }
@media (min-width: 700px) {
  html body .hf-card { border-radius: 20px; } html body .hf-cap { gap: 8px; padding: 10px; }
  html body .hf-av { flex-basis: 30px; width: 30px; height: 30px; font-size: 12px; } html body .hf-name { font-size: 13px; } html body .hf-txt { font-size: 11.5px; }
}
@media (max-width: 420px) {
  html body .feature-bars { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; }
  html body .feature-bars .statement-row--feature { min-height: 168px; padding: 14px 10px 44px !important; }
  html body .feature-bars .statement-row--feature .statement-row__title { font-size: 13.5px; margin-right: 38px; }
  html body .feature-bars .statement-row--feature .statement-row__icon { width: 38px; height: 38px; top: 10px; right: 8px; }
  html body .feature-bars .statement-row--feature .statement-row__meta { font-size: 11px; margin-top: 18px; }
}

/* ---------- 10) R312: estrutura igual ao modelo — grade de fotos, faixa dourada, carrossel de blocos, saldo e operações compactos, Rede + Central ---------- */
html body .wrap:has(> #homeSignup) > #homeSignup { order: 8; }
html body .wrap:has(> #homeSignup) > h2:has(+ .pillars-grid) { order: 9; }
html body .wrap:has(> #homeSignup) > .pillars-grid { order: 10; }
html body .wrap:has(> #homeSignup) > .balance { order: 12; }
html body .wrap:has(> #homeSignup) > .quick-actions { order: 16; }
html body .wrap:has(> #homeSignup) > .shortcuts { order: 20; }
html body .wrap:has(> #homeSignup) > .feature-bars { order: 24; }
html body a#homeSignup.cta-participar.home-signup { margin: 4px 14px 8px !important; border-radius: 999px !important; padding: 14px 18px !important; font-size: 14px; letter-spacing: .02em; text-align: center; color: #0b1b3f !important;
  background: linear-gradient(180deg, #f8e6a4 0%, #e0b44a 100%) !important; box-shadow: 0 8px 18px rgba(224,180,74,.35), inset 0 1px 0 rgba(255,255,255,.6) !important; border: 1px solid rgba(255,255,255,.55) !important; }
html body h2:has(+ .pillars-grid) { text-transform: uppercase; letter-spacing: .01em; color: var(--vt-text, #11296a); }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) { margin: 10px 14px 10px; padding: 14px 16px; }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) .mc-coins { --c: clamp(48px, 15vw, 72px); }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) .mc-balance__value { font-size: 32px; margin: 4px 0 2px; }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) .mc-balance__note { font-size: 10px; margin-top: 2px; }
html body .wrap > .quick-actions { padding-top: 4px; }
html body .quick-actions .btn-pill, html body .shortcuts .shortcut { min-height: 92px !important; padding: 8px 6px !important; }
html body a#homeSignup.cta-participar.home-signup, html body a#homeSignup.cta-participar.home-signup * { color: #0b1b3f !important; -webkit-text-fill-color: #0b1b3f !important; text-shadow: none !important; font-weight: 800; }
html body .wrap > section.balance.mc-balance:not(.mc-balance--hub) { margin: 12px 24px 12px; }
