/* Parte baja de la portada: bloque «Голосуйте за SroAsia» y pie. Hoja diferida
   (media=print → all): todo esto queda muy por debajo del primer pantallazo y no
   entra en el presupuesto del CSS crítico (home.css). */

/* ------------------------------------------------------------- votos */
.votes { padding-top: 72px; padding-bottom: 16px; }
/* Raya entre los votos y las columnas del pie, al ancho del contenido. */
.votes + .foot-main { position: relative; margin-top: 40px; }
.votes + .foot-main::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.votes-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.votes-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15;
  color: var(--text-strong);
}
.votes-title::after {
  content: ""; display: block; width: 160px; height: 9px; margin: 14px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z' fill='%23D9A441'/%3E%3C/svg%3E") center / 9px 9px no-repeat,
    linear-gradient(90deg, #d9a44100, #d9a441aa 45%, #d9a44100 45% 55%, #d9a441aa 55%, #d9a44100) center / 100% 1px no-repeat;
}
.votes .bl-lead { margin-top: 12px; color: var(--muted); font-size: 15px; }
.bl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.bl-list > li { display: flex; flex: 0 0 calc((100% - 6 * 14px) / 7); min-width: 0; }
.bl {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: 100%; padding: 12px 10px 13px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: linear-gradient(180deg, #1d1712, #110d0a); color: var(--soft); text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff0d, 0 8px 22px #0007;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.bl::before {
  content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 11px; pointer-events: none;
  border: 1px solid #d9a4411c;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #d9a4412e, #d9a44100 70%);
  opacity: 0; transition: opacity .2s ease;
}
.bl:hover, .bl:focus-visible {
  transform: translateY(-3px); border-color: var(--gold); color: var(--text-strong);
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 0 1px #d9a44144, 0 12px 28px #d9a44124;
}
.bl:hover::before, .bl:focus-visible::before { opacity: 1; }
.bl-logo {
  position: relative; display: grid; place-items: center; width: 100%; height: 48px; border-radius: 9px;
  background: #0a0806; border: 1px solid var(--line); overflow: hidden;
}
.bl-logo img { width: auto; height: auto; max-width: 100px; max-height: 36px; object-fit: contain; }
/* Contadores externos: la imagen tapa el monograma; si no carga, queda el monograma. */
.bl-logo i + img { position: absolute; inset: 0; margin: auto; }
.bl-logo i {
  font: 700 20px/1 var(--f-body); font-style: normal; letter-spacing: .06em;
  background: linear-gradient(180deg, var(--gold-hover), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bl-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.bl-vote {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text);
  padding: 4px 10px; border-radius: 999px; border: 1px solid #d9a44155; background: #d9a44112;
  transition: background-color .2s ease, color .2s ease;
}
.bl:hover .bl-vote, .bl:focus-visible .bl-vote { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* Темы сервера на форумах: фишки поменьше под сеткой голосований. */
.votes-forums {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  max-width: 760px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.votes-sub { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.blf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.blf {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 18px 5px 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #120e0b; color: var(--soft); text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.blf i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #0a0806; border: 1px solid #d9a44155; color: var(--gold-text);
  font: 700 12px/1 var(--f-body); font-style: normal; letter-spacing: .04em;
}
.blf-text { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.blf-text b { font-size: 14px; color: var(--text-strong); }
.blf-text small { font-size: 11px; color: var(--muted); }
.blf:hover, .blf:focus-visible { border-color: var(--gold); color: var(--text-strong); }

@media (max-width: 1180px) {
  .bl-list > li { flex-basis: calc((100% - 4 * 14px) / 5); }
}
@media (max-width: 760px) {
  .votes { padding-top: 52px; }
  .votes-head { margin-bottom: 24px; }
  .bl-list { gap: 10px; }
  .bl-list > li { flex-basis: calc((100% - 2 * 10px) / 3); }
  .bl { gap: 7px; padding: 9px 6px 10px; border-radius: 12px; }
  .bl-logo { height: 44px; }
  .bl-logo img { max-width: 88px; max-height: 32px; }
  .bl-name { font-size: 12px; }
  .bl-vote { display: none; }
  .votes-forums { flex-direction: column; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl, .bl::before, .bl-vote, .blf { transition: none; }
  .bl:hover, .bl:focus-visible { transform: none; }
}

/* >>> pie común: idéntico en site.css y backlinks.css (test/landing-site.test.mjs los compara) */
.site-footer {
  position: relative; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, #d9a44112, #d9a44100 70%), #0B0907;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, #d9a44100, #d9a441aa, #d9a44100);
}
.site-footer > .wrap { width: 100%; }
.site-footer p { margin: 0; }
.foot-main {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px 28px;
  padding-top: 56px; padding-bottom: 40px;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo { font-family: var(--f-display); font-size: 28px; line-height: 1.1; letter-spacing: .18em; text-transform: uppercase; color: var(--text-strong); }
.foot-tag { max-width: 32ch; color: var(--soft); }
.foot-tg {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 16px;
  border: 1px solid #4f9fd366; border-radius: 999px; background: #4f9fd31a;
  color: var(--text-strong); font-weight: 600; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.foot-tg svg { width: 18px; height: 18px; fill: #7cc0ea; }
.foot-tg:hover { background: #4f9fd333; border-color: #4f9fd3; color: #fff; }
.footer-totals { font-size: 13px; color: var(--muted); }
.footer-totals b { font-weight: 600; color: var(--gold-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-footer .footer-k {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
}
.footer-k::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); opacity: .7; }
.foot-col a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0; line-height: 1.35; color: var(--soft); text-decoration: none;
  transition: color .15s ease;
}
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal {
  display: grid; gap: 6px; padding-top: 22px; padding-bottom: 22px; font-size: 13px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.foot-legal p { max-width: 96ch; }
/* Fila de idiomas: la añade la build (tools/landing/seo.mjs) al final del pie. */
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-copy { order: 1; padding-top: 14px; font-size: 13px; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.footer-langs::before {
  content: attr(aria-label); margin-inline-end: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.footer-langs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-size: 13px; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.footer-langs a:hover { border-color: var(--gold); color: var(--gold-hover); }
.footer-langs a[aria-current="page"] { border-color: #d9a44188; background: #d9a4411a; color: var(--gold-text); }
@media (max-width: 1080px) {
  .foot-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 44px; padding-bottom: 28px; }
  .foot-col a { min-height: 44px; line-height: 1.3; }
  .footer-langs::before { flex-basis: 100%; }
  .footer-langs a { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .foot-tg, .foot-col a, .footer-langs a { transition: none; } }
/* <<< pie común */

/* Sólo portada (después del bloque común para ganarle): la barra fija «Играть / Telegram»
   no debe tapar la última fila del pie en el teléfono. */
@media (max-width: 760px) {
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
