/* =========================================================================
   1) Fundo do mar até o fim da página: topo + trecho das torres repetido + chão do mar.
      Peças cortadas de fundo-mar-larga.webp (3402 × 3650): topo 0–1900, trecho 1900–2300, fim 1900–3650.
   2) Seção final "Bora jogar?" com o IP para copiar.
   ========================================================================= */
.fg .g.bg-mar { container-type: inline-size; overflow: hidden; }
.bg-mar > * { position: absolute; left: 0; width: 100%; display: block; max-width: none; }
.bg-mar .mar-topo { top: 0; height: auto; }
.bg-mar .mar-fim { bottom: 0; height: auto; }
.bg-mar .mar-meio { top: calc(1900 / 3402 * 100cqw - 1px); bottom: calc(1750 / 3402 * 100cqw - 1px);
  background: url("/img/fg/mar-meio.webp?v=1") center top / 100% calc(400 / 3402 * 100cqw); background-repeat: no-repeat round; }
.fg .g.bg-fade { display: none; }

@media (min-width: 1200px) {
  .fg .g.bg-mar { height: auto; bottom: 0; }
  .bolhas, .fa-cardume { height: auto !important; bottom: 0; }
}
@media (max-width: 1199.98px) {
  .fg .g.bg-mar { height: auto; bottom: 0; }
}

/* ---------- Bora jogar? ---------- */
.s-final { --u: calc(100cqw / 2002); position: relative; z-index: 1; color: #fff; font-family: "Poppins", sans-serif; }
.j-faixa { position: relative; display: grid; place-items: center; min-height: calc(330 * var(--u)); padding: calc(40 * var(--u)) calc(380 * var(--u));
  box-sizing: border-box; border-radius: calc(28 * var(--u));
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 200, 255, .35), transparent 60%), linear-gradient(180deg, #1f78ff 0%, #0f4fd6 60%, #0a3aa8 100%);
  border: max(calc(4 * var(--u)), 2px) solid #00bcff;
  box-shadow: inset 0 calc(5 * var(--u)) 0 rgba(255, 255, 255, .25), inset 0 calc(-8 * var(--u)) 0 rgba(0, 20, 90, .35), 0 calc(24 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, .35); }
.j-rei { position: absolute; left: calc(30 * var(--u)); bottom: 0; width: calc(430 * var(--u)); height: auto; pointer-events: none;
  filter: drop-shadow(0 calc(10 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .35)); }
.j-deco { position: absolute; right: calc(24 * var(--u)); bottom: 0; width: calc(330 * var(--u)); height: 100%; pointer-events: none; }
.j-deco img { position: absolute; image-rendering: pixelated; filter: drop-shadow(0 calc(6 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .35)); }
.j-minerio { right: 0; bottom: 0; width: calc(170 * var(--u)); }
.j-alga { right: calc(150 * var(--u)); bottom: 0; height: 92%; }
.j-coral { right: calc(40 * var(--u)); bottom: calc(165 * var(--u)); width: calc(140 * var(--u)); }
.j-coral2 { right: calc(200 * var(--u)); bottom: 0; width: calc(130 * var(--u)); }
.j-meio { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.j-tit { margin: 0; font: 500 max(calc(84 * var(--u)), 40px) / 1 "Oswald", sans-serif; color: #ffd23f; letter-spacing: .01em; }
.j-sub { margin: calc(10 * var(--u)) 0 0; font: 500 max(calc(22 * var(--u)), 14px) / 1.4 "Poppins", sans-serif; color: #e6eeff; }
.j-ips { display: flex; flex-direction: column; gap: calc(12 * var(--u)); width: min(100%, calc(720 * var(--u))); margin-top: calc(24 * var(--u)); }
.j-ip { display: flex; align-items: stretch; width: 100%; padding: calc(8 * var(--u));
  box-sizing: border-box; border-radius: calc(16 * var(--u)); background: #071a52; box-shadow: inset 0 0 0 1px rgba(120, 190, 255, .3), 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .3); }
.j-end { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6em; padding: 0 .8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 max(calc(24 * var(--u)), 14px) / 1 "Poppins", sans-serif; color: #fff; user-select: all; }
.j-end svg { flex: none; width: 1.1em; height: 1.1em; color: #8fc8ff; }
.j-plat { flex: none; color: #8fc8ff; font-weight: 700; margin-right: .1em; }
.j-end-multi { flex-wrap: wrap; white-space: normal; overflow: visible; text-overflow: clip; row-gap: calc(2 * var(--u)); }
.j-porta { flex-basis: 100%; margin-left: 1.7em; color: #b9d6ff; font-weight: 500; font-size: .8em; opacity: .85; }
.j-copiar { flex: none; display: flex; align-items: center; gap: .5em; padding: .85em 1.3em; border: 0; border-radius: calc(12 * var(--u)); cursor: pointer;
  font: 700 max(calc(22 * var(--u)), 14px) / 1 "Poppins", sans-serif; color: #fff;
  background: linear-gradient(180deg, #2f9bff 0%, #136de8 55%, #0a54c9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 2px #5cc8ff; transition: filter .15s ease, transform .15s ease; }
.j-copiar svg { width: 1.1em; height: 1.1em; }
.j-copiar:hover { filter: brightness(1.1); }
.j-copiar:active { transform: scale(.96); }
.j-copiar.copiado { background: linear-gradient(180deg, #4fd86a, #1f9a3a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 2px #8ff5a8; }
.anim .j-rei { animation: r-flutua 3.4s ease-in-out infinite; }

@media (min-width: 1200px) {
  .fg .s.s-final { display: block; width: calc(1800 * var(--u)); margin: calc(90 * var(--u)) 0 0 calc(101 * var(--u)); padding-bottom: calc(260 * var(--u)); }
  .fg .s.s-ranking { padding-bottom: 0; }
  .s-final > .ancora { top: calc(-40 * var(--u)); }
}
@media (max-width: 1199.98px) {
  .s-final { --u: 1px; }
  .fg .s-final { max-width: 900px; margin: 70px auto 0; padding-bottom: 120px; }
  .j-faixa { padding: 150px 18px 26px; min-height: 0; border-radius: 22px; }
  .j-rei { left: 50%; bottom: auto; top: -60px; width: 190px; translate: -50% 0; }
  .anim .j-rei { animation: none; }
  .j-deco { display: none; }
  .j-tit { font-size: clamp(36px, 11vw, 64px); }
  .j-sub { font-size: 15px; }
  .j-ip { flex-direction: column; gap: 8px; padding: 8px; }
  .j-end { justify-content: center; padding: 12px 6px; font-size: clamp(14px, 4.2vw, 20px); }
  .j-copiar { justify-content: center; }
}

/* ---------- Cargos VIP: selo "Mais pedido" no Mestre ---------- */
.vcard.pedido .v-fundo { border-color: #ffc93c; box-shadow: inset 0 calc(4 * var(--u)) calc(30 * var(--u)) rgba(255, 201, 60, .45), 0 0 calc(30 * var(--u)) rgba(255, 190, 40, .35); }
.vcard.pedido:hover .v-fundo { border-color: #ffe46b; }
.v-selo { position: absolute; z-index: 2; top: 0; left: 50%; translate: -50% -50%; display: flex; align-items: center; gap: .4em; padding: .55em 1.1em;
  border-radius: 999px; white-space: nowrap; font: 800 max(calc(20 * var(--u)), 12px) / 1 "Poppins", sans-serif; color: #2a1500;
  background: linear-gradient(180deg, #ffe46b, #f5b000); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 12px rgba(0, 0, 0, .35); }
.v-selo svg { width: 1.15em; height: 1.15em; }
