/* Vitrine /galera ("Jogue com a galera"): palco escuro nas cores do Zovy. Só carrega com $page === 'galera'. Cor de cada jogo em --sc. */
.gx {
  --night: #1E1338; --night2: #2A1C4F; --line: rgb(255 255 255 / .12); --txt: #D9CFF7;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 72px);
  margin: 0 0 30px; padding: clamp(20px, 4.5vw, 56px); color: #fff; border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 45% at 88% 0%, rgb(124 77 255 / .55), transparent 70%),
    radial-gradient(40% 35% at 0% 22%, rgb(255 79 163 / .28), transparent 70%),
    radial-gradient(50% 30% at 30% 62%, rgb(46 230 255 / .10), transparent 70%),
    radial-gradient(45% 30% at 100% 100%, rgb(198 244 50 / .12), transparent 70%),
    radial-gradient(rgb(255 255 255 / .07) 1.1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--night);
  box-shadow: 0 0 0 3px var(--ink), 8px 8px 0 3px var(--violet);
}
.gx > * { margin: 0; }
.gx h2, .gx h3 { color: #fff; }
.gx a { color: inherit; }

/* botões */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; color: var(--ink); font: 800 15px/1.1 var(--ui); text-decoration: none; white-space: nowrap;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: translate .15s var(--ease-pop), box-shadow .15s; }
.gx a.gx-btn { color: var(--ink); }
.gx-btn:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--ink); }
.gx-btn:active { translate: 0 3px; box-shadow: 0 1px 0 var(--ink); }
.gx-btn svg { flex: none; }
.gx-btn-lime { background: var(--lime); }
.gx-btn-cyan { background: var(--cyan); }
.gx-btn-ghost { color: #fff !important; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .55); box-shadow: 0 4px 0 rgb(0 0 0 / .35); }
.gx-btn-ghost:hover { background: rgb(255 255 255 / .14); box-shadow: 0 6px 0 rgb(0 0 0 / .35); }
.gx-btn-xl { padding: 15px 22px; font-size: 18px; border-radius: 20px; }

/* topo */
.gx-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); }
.gx-hero-copy { display: grid; justify-items: start; gap: 16px; }
.gx-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; color: var(--ink); font: 800 12px/1.4 var(--ui); letter-spacing: .06em; background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); }
.gx-live i { width: 9px; height: 9px; background: #FF3B5C; border-radius: 50%; box-shadow: 0 0 0 0 rgb(255 59 92 / .7); }
.gx h1 { margin: 0; font: 800 clamp(42px, 7.4vw, 92px)/.95 var(--display); letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.gx-hl { position: relative; display: inline-block; color: var(--lime); }
.gx-hl svg { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .22em; overflow: visible; }
.gx-hl path { fill: none; stroke: var(--pink); stroke-width: 6; stroke-linecap: round; }
.gx-hero p { margin: 0; max-width: 560px; color: var(--txt); font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; line-height: 1.45; }
.gx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gx-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; color: #fff; font-size: 13px; font-weight: 700; background: rgb(255 255 255 / .07); border: 2px solid var(--line); border-radius: 99px; }
.gx-chips svg { color: var(--lime); }

/* leque de capas */
.gx-fan { position: relative; height: clamp(300px, 34vw, 440px); }
.gx-fan img { --w: clamp(130px, 15vw, 210px); position: absolute; top: 50%; left: 50%; width: var(--w); height: var(--w); max-width: none; object-fit: cover; background: var(--night2);
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 0 0 3px var(--sc), 0 18px 40px rgb(0 0 0 / .45);
  translate: calc(-50% + var(--x)) calc(-50% + var(--y)); rotate: var(--r); }
.gx-fan img:nth-child(1) { --x: -78%; --y: -40%; z-index: 2; }
.gx-fan img:nth-child(2) { --x: 74%; --y: -46%; z-index: 1; }
.gx-fan img:nth-child(3) { --x: 0%; --y: 2%; z-index: 4; --w: clamp(150px, 17vw, 240px); }
.gx-fan img:nth-child(4) { --x: 82%; --y: 46%; z-index: 3; }
.gx-fan img:nth-child(5) { --x: -84%; --y: 50%; z-index: 3; }
.gx-mascot { position: absolute; right: 2%; bottom: -2%; z-index: 5; --s: clamp(70px, 8vw, 110px) !important; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .35)); rotate: 8deg; }

/* títulos de seção */
.gx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.gx-kicker { display: block; margin-bottom: 6px; color: var(--lime); font: 800 12px/1 var(--ui); letter-spacing: .12em; }
.gx h2 { margin: 0; font: 800 clamp(28px, 3.6vw, 44px)/1 var(--display); letter-spacing: -.03em; }

/* quantos vocês são */
.gx-count { display: grid; justify-items: end; gap: 8px; }
.gx-count-q { display: inline-flex; align-items: center; gap: 6px; color: var(--txt); font-weight: 800; font-size: 14px; }
.gx-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgb(0 0 0 / .28); border: 2px solid var(--line); border-radius: 16px; }
.gx-seg button { min-width: 44px; padding: 8px 12px; color: #fff; font: 800 15px/1 var(--ui); background: transparent; border: 0; border-radius: 12px; cursor: pointer; transition: background .15s, color .15s; }
.gx-seg button:hover { background: rgb(255 255 255 / .1); }
.gx-seg button[aria-pressed="true"] { color: var(--ink); background: var(--lime); box-shadow: 0 3px 0 var(--ink); }
.gx-count-res { min-height: 1.3em; color: var(--txt); font-size: 13px; font-weight: 700; }

/* cartões dos jogos */
.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

.gx-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; padding: 12px; border-radius: 28px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--sc) 30%, var(--night2)), var(--night2) 55%);
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc) 70%, transparent), 7px 8px 0 0 var(--sc);
  transition: translate .2s var(--ease-pop), box-shadow .2s, opacity .3s, filter .3s; }
.gx-card:hover { translate: 0 -5px; box-shadow: 0 0 0 2px var(--sc), 9px 12px 0 0 var(--sc); }
.gx-cover { position: relative; display: block; border-radius: 20px; }
.gx-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--night); border: 3px solid var(--ink); border-radius: 20px; transition: rotate .3s var(--ease-pop), scale .3s var(--ease-pop); }
.gx-card:hover .gx-cover img { rotate: var(--r); scale: 1.03; }
.gx-ppl { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; color: #fff; font: 800 13px/1.2 var(--ui); background: var(--sc); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); }
.gx-ic { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); rotate: 8deg; }
.gx-ic svg { color: var(--sc); }
.gx-body { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 6px 4px; }
.gx-card h3 { margin: 0; font: 800 clamp(20px, 2vw, 25px)/1.05 var(--display); }
.gx-card h3 a { text-decoration: none; }
.gx-card h3 a:hover { color: var(--lime); }
.gx-card p { margin: 0; color: var(--txt); font-size: 15px; line-height: 1.4; }
.gx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.gx-acts .gx-btn { padding: 11px 8px; }
.gx-acts .gx-btn:only-child { grid-column: 1 / -1; }
.gx-off { display: none; align-self: flex-start; padding: 3px 10px; color: var(--ink); font: 800 12px/1.4 var(--ui); background: #fff; border: 2px solid var(--ink); border-radius: 99px; }
.gx-card.is-off { opacity: .38; filter: grayscale(.85); }
.gx-card.is-off .gx-off { display: inline-block; }
.gx-card.is-off:hover { translate: none; }
.gx-card.is-fit { box-shadow: 0 0 0 2px var(--lime), 7px 8px 0 0 var(--sc); }

/* sorteio */
.gx-card.is-roll { translate: 0 -6px; box-shadow: 0 0 0 4px #fff, 7px 8px 0 0 var(--sc); }
.gx-card.is-chosen { translate: 0 -8px; scale: 1.03; box-shadow: 0 0 0 5px var(--lime), 10px 12px 0 0 var(--sc), 0 0 60px color-mix(in srgb, var(--lime) 50%, transparent); z-index: 2; }
.gx-chosen-tag { position: absolute; top: -16px; left: 50%; z-index: 3; translate: -50% 0; padding: 6px 14px; color: var(--ink); font: 800 15px/1.2 var(--display); white-space: nowrap; background: var(--lime); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }


/* perfeito para */
.gx-mom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gx-mom li { display: grid; align-content: start; gap: 8px; padding: 20px; background: rgb(255 255 255 / .05); border: 2px solid var(--line); border-radius: 24px; transition: border-color .2s, background .2s; }
.gx-mom li:hover { background: rgb(255 255 255 / .08); border-color: var(--c); }
.gx-mom span { display: grid; place-items: center; width: 54px; height: 54px; color: var(--ink); background: var(--c); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); rotate: -5deg; }
.gx-mom h3 { margin: 6px 0 0; font: 800 20px/1.1 var(--display); }
.gx-mom p, .gx-steps p { margin: 0; color: var(--txt); font-size: 15px; line-height: 1.4; }

/* como funciona */
.gx-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gx-steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; border-top: 3px dashed rgb(255 255 255 / .25); }
.gx-steps li { position: relative; display: grid; justify-items: start; gap: 6px; }
.gx-steps li:nth-child(1) { --c: var(--lime); } .gx-steps li:nth-child(2) { --c: var(--cyan); } .gx-steps li:nth-child(3) { --c: var(--pink); } .gx-steps li:nth-child(4) { --c: var(--gold); }
.gx-steps b { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; color: var(--ink); background: var(--c); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); font: 800 26px var(--display); rotate: -6deg; }
.gx-steps li:nth-child(even) b { rotate: 5deg; }
.gx-steps h3 { margin: 0; font: 800 20px/1.1 var(--display); }
.gx-note { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 14px 18px; color: var(--txt); font-weight: 600; background: rgb(46 230 255 / .08); border: 2px dashed rgb(46 230 255 / .45); border-radius: 18px; }
.gx-note svg { flex: none; color: var(--cyan); }
.gx-note b { color: #fff; }

/* animações (só sem "reduzir movimento") */
@media (prefers-reduced-motion: no-preference) {
  .gx-live i { animation: gxPulse 1.6s infinite; }
  .gx-fan img { animation: gxFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
  .gx-mascot { animation: gxBob 2.6s ease-in-out infinite; }
  .gx-hl path { stroke-dasharray: 230; stroke-dashoffset: 230; animation: gxDraw .9s .3s ease-out forwards; }
  .gx-chosen-tag { animation: gxPop .4s var(--ease-pop); }
}
@keyframes gxPulse { 70% { box-shadow: 0 0 0 8px rgb(255 59 92 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 92 / 0); } }
@keyframes gxFloat { 50% { translate: calc(-50% + var(--x)) calc(-50% + var(--y) - 10px); } }
@keyframes gxBob { 50% { translate: 0 -8px; rotate: 2deg; } }
@keyframes gxDraw { to { stroke-dashoffset: 0; } }
@keyframes gxPop { from { scale: .4; opacity: 0; } }

/* telas médias */
@media (max-width: 1100px) {
  .gx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-mom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .gx-steps::before { display: none; }
}
@media (max-width: 820px) {
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-hero { grid-template-columns: minmax(0, 1fr); }
  .gx-fan { order: -1; height: 230px; margin: -6px 0 -4px; }
  .gx-fan img { --w: min(29vw, 150px); border-radius: 18px; border-width: 3px; }
  .gx-fan img:nth-child(3) { --w: min(34vw, 176px); }
  .gx-fan img:nth-child(1) { --x: -62%; --y: -22%; } .gx-fan img:nth-child(2) { --x: 62%; --y: -24%; }
  .gx-fan img:nth-child(4) { --x: 92%; --y: 26%; } .gx-fan img:nth-child(5) { --x: -92%; --y: 28%; }
  .gx-mascot { --s: 64px !important; right: 0; bottom: 0; }
  .gx-count { justify-items: start; }
}
/* celular */
@media (max-width: 560px) {
  .gx { border-radius: 26px; box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--violet); }
  .gx-cta { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .gx-btn-xl { font-size: 17px; padding: 14px 16px; }
  .gx-chips li { font-size: 12px; padding: 4px 9px; }
  .gx-head { margin-bottom: 16px; }
  .gx-count { width: 100%; }
  .gx-seg { width: 100%; justify-content: space-between; }
  .gx-seg button { flex: 1; min-width: 0; padding: 9px 4px; font-size: 14px; }
  .gx-grid { gap: 14px 12px; }
  .gx-card { padding: 8px; border-radius: 22px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc) 70%, transparent), 4px 5px 0 0 var(--sc); }
  .gx-ppl { left: 6px; bottom: 6px; padding: 2px 7px; font-size: 11px; }
  .gx-ppl svg { width: 11px; height: 11px; }
  .gx-ic { top: 6px; right: 6px; width: 30px; height: 30px; }
  .gx-ic svg { width: 16px; height: 16px; }
  .gx-body { gap: 6px; padding: 10px 2px 2px; }
  .gx-card h3 { font-size: 17px; }
  .gx-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
  .gx-acts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gx-acts .gx-btn { padding: 9px 6px; font-size: 14px; border-radius: 13px; }
  .gx-mom, .gx-steps { grid-template-columns: minmax(0, 1fr); }
  .gx-mom li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .gx-mom span { grid-row: span 2; width: 48px; height: 48px; }
  .gx-mom h3 { margin: 0; font-size: 18px; align-self: end; }
  .gx-steps li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .gx-steps b { grid-row: span 2; width: 48px; height: 48px; font-size: 22px; margin: 0; }
  .gx-steps h3 { font-size: 18px; align-self: end; }
  .gx-note { align-items: flex-start; font-size: 14px; }
}
/* computador: capas pequenas e botões um embaixo do outro; jogos em fileiras de 4 ou 5 (ver o fim do arquivo) (capa de até 236 px) e, em tela bem larga, uma fileira só */
@media (min-width: 1180px) {
  .gx-grid { grid-template-columns: repeat(4, minmax(0, 236px)); justify-content: center; gap: 22px 26px; }
  .gx-card { padding: 10px; border-radius: 24px; }
  .gx-cover, .gx-cover img { border-radius: 17px; }
  .gx-body { gap: 6px; padding: 12px 4px 2px; }
  .gx-card h3 { font-size: 21px; }
  .gx-card p { font-size: 14px; }
  .gx-acts { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .gx-acts .gx-btn { padding: 10px 8px; font-size: 15px; }
  .gx-ppl { left: 8px; bottom: 8px; font-size: 12px; padding: 3px 9px; }
  .gx-ic { top: 8px; right: 8px; width: 34px; height: 34px; }
}

/* selo NOVO (SocialGames 'new_until') */
.gx-new { position: absolute; top: -12px; left: -10px; z-index: 2; padding: 3px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.3 var(--ui); letter-spacing: .08em; rotate: -6deg; }
@media (prefers-reduced-motion: no-preference) { .gx-new { animation: gxNew 1.6s ease-in-out infinite; } }
@keyframes gxNew { 50% { scale: 1.1; } }
/* Computador (v1.112.1): sempre em fileiras centralizadas de até 5 (9 jogos = 5 + 4). Em tela bem larga eles ficavam os 9
   numa fileira só, espremidos, com o texto em colunas estreitas. */
@media (min-width: 1180px) {
  .gx-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 24px; }
  .gx-grid > * { width: min(250px, calc((100% - 4 * 24px) / 5)); }
}
