/* =====================================================================
   Página do jogo + modal de avaliação (usa variáveis e peças de styles.css)
   ===================================================================== */
.btn--link { display: inline-flex; align-items: center; }
.plans__head h1 { margin: 0 0 4px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }

.jg { padding-top: 18px; }
.jg.wrap { max-width: 1240px; }   /* página do jogo mais estreita: galeria no tamanho da referência */

/* trilha */
.jg-trilha { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.jg-trilha a:hover { color: var(--text); }
.jg-trilha b { color: var(--text); font-weight: 600; }
.jg-voltar { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin-right: 6px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 700; }
.jg-voltar:hover { border-color: var(--brand-2); }

/* topo */
.jg-topo { margin-bottom: 18px; }
.jg-topo__selos { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.jg-pos { font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(246, 196, 83, .45); padding: 2px 9px; border-radius: 99px; }
.jg-topo h1 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.jg-topo h1 .sep { color: var(--muted); margin: 0 8px; font-weight: 400; }
.jg-topo h1 .tag { color: #d6dbea; font-weight: 700; }
.jg-topo .badges { gap: 8px; }
.badge--nota { cursor: pointer; background: none; font: inherit; font-size: 12.5px; font-weight: 600; }
.badge--nota { gap: 6px; border-color: rgba(59, 130, 246, .5); }
.badge--nota:hover { border-color: #60a5fa; background: rgba(59, 130, 246, .1); }
.jg-sub { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.jg-sub .caticon { width: 15px; height: 15px; }
.jg-previa { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.jg-previa a { color: var(--brand-2); font-weight: 700; }
.jg-exemplo :is(.topbar, .footer, .jg-trilha, .jg-previa) { display: none; }
.jg-exemplo .jg { padding-bottom: 24px; }

/* grade */
.jg-grade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "galeria acoes" "detalhes info"; gap: 22px; align-items: stretch; }
.jg-grade > * { min-width: 0; }
.jg-galeria { grid-area: galeria; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.jg-acoes { grid-area: acoes; display: flex; flex-direction: column; gap: 18px; }
.jg-detalhes { grid-area: detalhes; display: flex; flex-direction: column; gap: 22px; }
.jg-detalhes > .jg-bloco { margin-top: 0; }
.jg-detalhes > .jg-aval { flex: 1; }
.jg-info { grid-area: info; display: flex; flex-direction: column; }
.jg-info .jg-denunciar { align-self: flex-start; margin-top: auto; }

/* galeria */
.jg-galeria__abas { display: flex; gap: 8px; margin-bottom: 10px; }
.jg-galeria__aba { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; color: #c3c9d9; background: var(--card); font-size: 13px; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.jg-galeria__aba:hover { color: var(--text); border-color: var(--brand-2); }
.jg-galeria__aba.is-on { color: #fff; border-color: #8c78ff; background: rgba(124, 92, 255, .25); }
.jg-galeria__aba:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.jg-galeria__vazio { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; color: var(--muted); text-align: center; background: var(--bg-2); }

.jg-stream { align-self: start; min-width: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
.jg-stream--kick { --stream-cor: #91f85a; }
.jg-stream--twitch { --stream-cor: #c3a1ff; }
.jg-stream--youtube { --stream-cor: #ff929d; }
.jg-stream__fontes { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.jg-stream__fonte { flex: 1 1 115px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 10px; text-align: left; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); }
.jg-stream__fonte:hover, .jg-stream__fonte[aria-pressed="true"] { border-color: var(--stream-cor); background: color-mix(in srgb, var(--stream-cor) 12%, var(--bg-2)); }
.jg-stream__fonte svg { width: 18px; height: 18px; fill: var(--stream-cor); stroke: none; }
.jg-stream__fonte > span { min-width: 0; }
.jg-stream__fonte :is(strong, small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-stream__rodape :is(strong, small) { display: block; overflow-wrap: anywhere; }
.jg-stream__fonte strong { font-size: 13px; }
.jg-stream__fonte small, .jg-stream__rodape small { color: #aeb8cb; font-size: 12px; }
.jg-stream__palco { position: relative; display: grid; place-items: center; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; padding: 14px; border-block: 1px solid var(--line); background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--stream-cor) 17%, #080b12), #080b12 68%); }
.jg-stream__palco.is-playing { background: #080b12; }
.jg-stream--twitch .jg-stream__palco.is-playing { min-height: 300px; }
.jg-stream__palco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jg-stream__play { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 16px; border: 1px solid var(--stream-cor); border-radius: 12px; color: #11151c; background: var(--stream-cor); font-size: 14px; font-weight: 800; text-align: center; }
.jg-stream__play:hover { filter: brightness(1.12); }
.jg-stream__rodape { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; }
.jg-stream__rodape strong { font-size: 14px; }
.jg-stream__externo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--stream-cor); font-weight: 700; font-size: 13px; }
.jg-stream__externo:hover { text-decoration: underline; }
.jg-stream__canais { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 7px; padding: 0 10px 10px; }
.jg-stream__canal { display: grid; grid-template-columns: minmax(0, 1fr) 12px; align-items: center; gap: 5px; min-height: 44px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); text-align: left; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.jg-stream__canal:is(:hover, [aria-pressed="true"]) { border-color: var(--stream-cor); background: color-mix(in srgb, var(--stream-cor) 10%, var(--bg-2)); }
.jg-stream__indicador { justify-self: end; color: var(--stream-cor); }
.jg-stream__demo { color: #c3cce0; font-size: 14px; font-weight: 650; }
.jg-stream-vazio { display: grid; place-items: center; min-height: 150px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); color: #aeb8cb; text-align: center; }

.jg-palco { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.jg-palco > img, .jg-palco > video, .jg-palco > iframe, .jg-palco > .jg-capa-gerada { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.jg-video-previa { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: radial-gradient(ellipse at center, var(--card), #000); }
.jg-video-previa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jg-video-previa:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -3px; }
.jg-video-previa .jg-play { width: 72px; height: 52px; border-radius: 15px; font-size: 19px; background: #ff342d; }
.jg-video-previa:hover .jg-play { background: #e12621; }
.jg-capa-gerada .banner__title { font-size: clamp(30px, 8cqi, 80px); }
.jg-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 12, 20, .6); font-size: 24px; display: grid; place-items: center; backdrop-filter: blur(6px); }
.jg-seta:hover { background: rgba(10, 12, 20, .9); }
.jg-seta[hidden] { display: none; }
.jg-seta--ant { left: 12px; }
.jg-seta--prox { right: 12px; }
.jg-palco:has(video) .jg-seta { top: 42%; }
.jg-contador { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(8, 10, 16, .75); pointer-events: none; }
.jg-palco:has(video, iframe) .jg-contador { bottom: 56px; }
.jg-faixa { position: relative; margin-top: 10px; }
.jg-faixa .jg-seta--ant { left: 5px; }
.jg-faixa .jg-seta--prox { right: 5px; }
.jg-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jg-thumbs::-webkit-scrollbar { display: none; }
.jg-thumb { position: relative; flex: 0 0 112px; aspect-ratio: 16 / 9; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: #000; opacity: .65; transition: opacity .2s, border-color .2s; }
.jg-thumb:hover { opacity: 1; }
.jg-thumb.is-on { opacity: 1; border-color: var(--orange); }
.jg-thumb img, .jg-thumb .banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jg-thumb .banner__sub { display: none; }
.jg-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; background: rgba(239, 68, 68, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* blocos */
.jg-bloco { margin-top: 22px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.jg-bloco h2 { margin: 0 0 10px; font-size: 18px; }
.jg-bloco p { margin: 0 0 8px; color: #c3c9d9; line-height: 1.6; }
.jg-detalhes > .jg-bloco:first-child p { overflow-wrap: anywhere; }
.jg-bloco p.muted { color: var(--muted); font-size: 12.5px; margin: 0; }

/* avaliações da comunidade */
.jg-aval__topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.jg-aval__topo h2 { margin: 0; }
.btn-avaliar { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gold); background: rgba(246, 196, 83, .1); color: var(--gold-2); font-weight: 700; font-size: 13.5px; }
.btn-avaliar svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.btn-avaliar:hover { background: rgba(246, 196, 83, .2); }
.jg-aval__corpo { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.jg-nota { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.jg-nota strong { font-size: 52px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.jg-nota__estrelas { display: flex; gap: 2px; }
.jg-nota__estrelas i svg { width: 18px; height: 18px; stroke: var(--line-2); }
.jg-nota__estrelas i.on svg { fill: var(--gold); stroke: var(--gold); }
.jg-nota .muted { font-size: 13px; }
.jg-selo { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--sc); color: var(--sc); font-size: 12px; font-weight: 800; }
.jg-selo svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.jg-crits { display: grid; gap: 12px; }
.jg-crit { display: grid; grid-template-columns: 170px 1fr 36px; align-items: center; gap: 12px; }
.jg-crit__nome { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-crit__barra { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.jg-crit__barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d9a23a, var(--gold)); }
.jg-crit b { text-align: right; font-variant-numeric: tabular-nums; }

/* relacionados */
.jg-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jg-rel__item { display: flex; flex-direction: column; gap: 3px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); padding-bottom: 8px; transition: border-color .2s; }
.jg-rel__item:hover { border-color: #7c8db8; }
.jg-rel__item .banner { aspect-ratio: 16 / 7; }
.jg-rel__item .banner__sub { display: none; }
.jg-rel__item b { padding: 4px 10px 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-rel__item .muted { padding: 0 10px; font-size: 12px; }

/* lateral */
.jg-card { border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); padding: 16px; }
.jg-votos__num { display: flex; align-items: baseline; gap: 8px; }
.jg-votos__num strong { font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -.02em; background: linear-gradient(180deg, #fff1b8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jg-votos__num span { color: var(--muted); font-size: 13px; }
.jg-votos__linha { margin-top: 6px; font-size: 12.5px; color: #c3c9d9; }
.jg-votos__linha b { color: var(--text); }
.jg-votos__defende { margin-top: 4px; font-size: 12px; color: var(--muted); }
.jg-votar { margin-top: 14px; width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--brand), #5b3fe0); box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .7); }
.jg-votar svg { width: 18px; height: 18px; }
.jg-votar .x2 { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.jg-votar:hover { filter: brightness(1.1); }
.jg-votar.is-done { background: var(--bg-2); color: #4ade80; box-shadow: none; border: 1px solid rgba(74, 222, 128, .4); font-size: 13.5px; }
.jg-lembrar { margin-top: 8px; width: 100%; border: 0; background: none; color: var(--brand-2); font-weight: 700; font-size: 13px; padding: 6px; }
.jg-lembrar:hover { text-decoration: underline; }
.jg-acesso { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.jg-acesso .btn-open { transition: filter .2s ease; }
.jg-acesso .btn-open:hover { transform: none; box-shadow: 0 8px 24px -6px rgba(255, 138, 61, .6); }
.jg-acesso .loja-links { display: grid; grid-template-columns: minmax(0, 1fr); }
.jg-acesso__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jg-sec { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 700; font-size: 13.5px; }
.jg-sec svg { width: 17px; height: 17px; }
.jg-sec:hover { border-color: var(--brand-2); }
.jg-info h3 { margin: 0 0 10px; font-size: 15px; }
.jg-info dl { margin: 0; display: grid; gap: 10px; }
.jg-info dt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jg-info dd { margin: 2px 0 0; font-size: 13.5px; }
.jg-info dd a { color: var(--brand-2); font-weight: 700; }
.jg-denunciar { min-height: 44px; padding: 10px 0 0; border: 0; background: transparent; font-size: 12px; color: var(--muted); }
.jg-denunciar:hover { color: #f87171; }
.jg-denuncia { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(14px, 4vw, 24px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); color: var(--text); box-shadow: 0 24px 70px #0008; }
.jg-denuncia::backdrop { background: #04060cbb; backdrop-filter: blur(4px); }
body:has(.jg-denuncia[open]) { overflow: hidden; }
.jg-denuncia form { display: grid; gap: 10px; }
.jg-denuncia header, .jg-denuncia__feedback, .jg-denuncia__acoes { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jg-denuncia h2 { margin: 0; font-size: 21px; }
.jg-denuncia__fechar { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); font-size: 24px; line-height: 1; }
.jg-denuncia label { font-weight: 700; font-size: 14px; }
.jg-denuncia textarea { width: 100%; min-height: 116px; resize: vertical; padding: 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.jg-denuncia textarea:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.jg-denuncia textarea[aria-invalid="true"] { border-color: #f87171; }
.jg-denuncia__feedback { align-items: flex-start; color: var(--muted); font-size: 12px; }
.jg-denuncia__feedback p { margin: 0; color: #fca5a5; }
.jg-denuncia__feedback span { white-space: nowrap; }
.jg-denuncia__acoes { justify-content: flex-end; flex-wrap: wrap; }
.jg-denuncia__acoes button { min-height: 44px; }
.jg-denuncia button:disabled { cursor: not-allowed; opacity: .55; }

/* ---------------- modal de avaliação ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__fundo { position: absolute; inset: 0; background: rgba(4, 6, 12, .72); backdrop-filter: blur(3px); }
.modal__caixa { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; border: 1px solid var(--line-2); background: #171b27; padding: 26px 28px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 28px; line-height: 1; }
.modal__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.av-topo { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.av-capa { aspect-ratio: 400 / 160; border-radius: 10px; margin-top: 54px; border: 1px solid var(--line-2); }
.av-capa .banner__sub { display: none; }
.av-topo h2 { margin: 0 40px 4px 0; font-size: 22px; line-height: 1.25; }
.av-sub { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.av-comunidade { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; }
.av-comunidade span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.av-comunidade svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.av-comunidade .muted { font-size: 12.5px; }
.av-selos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.av-selo { text-align: center; padding: 7px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); opacity: .7; }
.av-selo b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.av-selo b svg { width: 11px; height: 11px; fill: var(--sc); stroke: none; }
.av-selo small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.av-selo.is-on { opacity: 1; border-color: var(--sc); box-shadow: 0 0 14px -6px var(--sc); }
.av-h { margin: 22px 0 2px; font-size: 24px; }
.av-p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.av-lista { display: grid; gap: 10px; }
/* linha do critério: só o nome + 5 estrelas (compacta) */
.av-lista { gap: 8px; }
.av-crit { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.av-crit__nome { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-estrelas { display: flex; gap: 6px; flex: none; }
.av-estrela { width: 38px; height: 38px; padding: 4px; border: 0; background: none; border-radius: 8px; color: #5b6478; }
.av-estrela svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.6; fill: none; transition: stroke .12s, fill .12s, transform .12s; }
/* mouse em cima: a estrela fica contornada em dourado */
.av-estrela.is-hover { color: var(--gold); }
.av-estrela.is-hover svg { transform: scale(1.08); }
/* selecionada: preenchida */
.av-estrela.is-on { color: var(--gold); }
.av-estrela.is-on svg { fill: var(--gold); }
.av-estrela:focus-visible { outline: 2px solid var(--brand-2); }
.av-nota { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.av-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.av-btn { height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.av-btn--sec { border: 1px solid var(--line-2); background: none; min-width: 150px; }
.av-btn--sec:hover { border-color: #7c8db8; }
.av-btn--pri { border: 0; min-width: 150px; color: #1a0e00; background: linear-gradient(135deg, #ffb347, var(--orange)); }
.av-btn--pri:disabled { opacity: .45; cursor: not-allowed; }

/* aviso no canto superior direito, logo abaixo do menu, entrando pela lateral */
.toast { position: fixed; top: 76px; right: 20px; z-index: 120; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: #0f1320; border: 1px solid var(--line-2); border-left: 4px solid var(--brand-2, #38bdf8); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-weight: 600; font-size: 14px; line-height: 1.4; animation: toast-entra .25s ease-out; }
@keyframes toast-entra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .toast { right: 16px; left: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.toast[hidden] { display: none; }

/* ---------------- responsivo ---------------- */
@media (width > 1100px) {
  .jg-grade {
    grid-template-areas:
      "galeria ."
      "galeria acoes"
      "galeria acoes"
      "detalhes info";
    row-gap: 0;
  }
  .jg-galeria { grid-template-rows: subgrid; }
  .jg-detalhes, .jg-info { margin-top: 22px; }
}
@media (max-width: 1100px) {
  .jg-grade { grid-template-columns: minmax(0, 1fr); grid-template-areas: "galeria" "acoes" "detalhes" "info"; }
}
@media (max-width: 720px) {
  .jg-grade, .jg-detalhes { gap: 16px; }
  .jg-voltar { height: 44px; }
  .jg-topo h1, .jg-trilha, .jg-info dd { overflow-wrap: anywhere; }
  .jg-topo__selos, .jg-sub { flex-wrap: wrap; }
  .jg-galeria__abas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-galeria__abas--stream { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jg-stream__fonte { flex-basis: 90px; padding-inline: 7px; }
  .jg-galeria__aba, .jg-seta, .jg-sec, .badge--nota, .btn-avaliar { min-height: 44px; }
  .jg-seta { width: 44px; }
  .jg-acesso__linha { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .jg-aval__topo { flex-wrap: wrap; }
  .jg-aval__corpo { grid-template-columns: 1fr; gap: 16px; }
  .jg-crit { grid-template-columns: minmax(0, 1fr) 60px 30px; }
  .jg-crit__nome, .jg-rel__item b { white-space: normal; overflow-wrap: anywhere; }
  .jg-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-thumb { flex-basis: 96px; }
  .av-topo { grid-template-columns: 1fr; gap: 12px; }
  .av-capa { margin-top: 0; max-width: 260px; }
  .av-selos { grid-template-columns: repeat(2, 1fr); }
  .av-crit { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .av-crit__nome { white-space: normal; overflow-wrap: anywhere; }
  .av-estrelas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: min(100%, 236px); }
  .av-estrela { width: 100%; height: 44px; padding: 2px; }
  .modal__caixa { padding: 20px 16px; }
  .modal__x { top: 6px; right: 8px; width: 44px; height: 44px; }
  .av-acoes { flex-direction: column-reverse; }
  .av-btn { width: 100%; }
}

/* ---------------- modal de voto com recompensa ---------------- */
.modal__caixa--voto { width: min(560px, 100%); padding: 28px 28px 22px; }
.modal__caixa--voto h2 { margin: 0 40px 14px 0; font-size: 24px; letter-spacing: -.01em; }
.vt-caixa { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); margin-bottom: 16px; }
.vt-caixa > b { display: block; font-size: 15px; margin-bottom: 4px; }
.vt-caixa p { margin: 0; font-size: 14px; color: #c3c9d9; line-height: 1.5; }
.vt-campo { display: flex; flex-direction: column; gap: 6px; }
.vt-campo > span { font-weight: 700; font-size: 14px; }
.vt-campo input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--orange); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.vt-campo input:focus { box-shadow: 0 0 0 3px rgba(255, 138, 61, .25); }
.vt-campo small { font-size: 12px; color: var(--muted); }
.vt-erro { font-style: normal; font-size: 13px; color: #fca5a5; }
.vt-info { margin: 14px 0 0; font-size: 13.5px; color: #c3c9d9; line-height: 1.5; }
.vt-robo { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.vt-robo span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #4ade80; border: 1px solid rgba(74, 222, 128, .5); }
.vt-btn { width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: 10px; font-weight: 800; font-size: 15px; color: #1a0e00; background: linear-gradient(135deg, #ffb347, var(--orange)); }
.vt-btn:disabled { opacity: .6; cursor: wait; }
.vt-btn--sec { color: var(--text); background: none; border: 1px solid var(--line-2); }
.vt-sem { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.vt-sem:hover { color: var(--text); }
.vt-passos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.vt-passos li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vt-passos span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--brand); color: #fff; }
.vt-passos code { font-family: ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .35); padding: 2px 6px; border-radius: 6px; }
.vt-codigo { display: flex; justify-content: center; gap: 8px; margin: 6px 0; }
.vt-codigo i { width: 46px; height: 56px; display: grid; place-items: center; font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: 28px; font-weight: 800; border-radius: 10px; border: 1px solid var(--gold); background: rgba(246, 196, 83, .08); color: var(--gold-2); }
.vt-dica { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.vt-vinc { margin-top: 8px !important; font-size: 18px !important; font-weight: 800; color: var(--text) !important; }
.vt-vinc span { font-size: 12px; font-weight: 700; color: #4ade80; margin-left: 6px; }
.vt-fim { text-align: center; }
.vt-fim__ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #4ade80; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .5); }
.vt-fim h2 { margin: 0 0 14px !important; }
.vt-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vt-status li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.vt-status li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.vt-status .is-ok > span { color: #4ade80; border: 1px solid rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .1); }
.vt-status .is-cinza > span { color: var(--muted); border: 1px solid var(--line-2); }
.vt-status .is-espera > span { border: 2px solid var(--line-2); border-top-color: var(--gold); animation: vtGira .8s linear infinite; }
@keyframes vtGira { to { transform: rotate(360deg); } }

/* ---------------- API: código do jogo, regra de voto, erro de entrega ---------------- */
.jg-votar__regra { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.jg-votar.is-done { cursor: default; }
.vt-codigo-in { font-family: ui-monospace, Consolas, monospace !important; font-size: 24px !important; letter-spacing: .18em; text-align: center; text-transform: uppercase; height: 56px !important; }
.vt-status .is-erro > span { color: #f87171; border: 1px solid rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .1); }

@media (max-width: 520px) {
  .modal__caixa--voto { padding: 20px 16px; }
  .vt-campo input { font-size: 16px; }
  .vt-sem { min-height: 44px; }
}

/* Redes sociais e ações da página do jogo */
.jg-discord { color: #fff; border-color: #5865f2; background: #5865f2; transition: background-color .2s, border-color .2s; }
.jg-discord svg { color: #fff; }
.jg-discord:hover { border-color: #7983ff; background-color: #4752c4; }
.jg-redes { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.jg-redes h4 { margin: 0 0 10px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .btn-open, .jg-acesso .btn-open, .btn-vote, .jg-discord, .jg-rede { transition: none; } .btn-open:hover, .btn-vote:hover, .jg-rede:hover { transform: none; } }

/* Planos v2: redes bloqueadas, visualizações e botão Comprar (Premium) */
.jg-redes--bloqueado .jg-redes__lista { opacity: .45; filter: grayscale(1); }
.jg-cadeado { font-size: 12px; }
.jg-votos__views { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.jg-votos__views svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.jg-votos__views b { color: var(--text); }
.btn-comprar { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; width: 100%; margin-bottom: 8px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #2fd27a, #14a35a); color: #04150b; font-weight: 900; text-decoration: none; box-shadow: 0 8px 22px -10px rgba(47, 210, 122, .8); }
.btn-comprar svg { grid-row: span 2; width: 20px; height: 20px; }
.btn-comprar small { font-size: 11px; font-weight: 700; opacity: .8; }
.btn-comprar:hover { filter: brightness(1.08); }

.jg-votar__premio { margin: 6px 0 0; padding: 8px 10px; border: 1px solid rgba(246, 196, 83, .4); border-radius: 10px; background: rgba(246, 196, 83, .08); color: #f3dfa6; font-size: 13px; text-align: center; }

