/* =====================================================================
   Масштаб «як у еталонного макета» + адаптація під різні екрани + анімації.
   Підключається останнім і перекриває app.css / home.css / header.css.
   Рівні (ширина вікна браузера):
     ≥1800      — великі монітори (повний розмір)
     1500–1799  — 1920 при масштабі Windows 125%, великі ноутбуки
     1200–1499  — звичайні ноутбуки
     1081–1199  — малі ноутбуки, планшети горизонтально (меню ще в рядок)
     ≤1080      — меню ховається в «бургер»
     ≤760       — телефони
     ≤420       — малі телефони
   ===================================================================== */

.wrap { max-width: 1560px; padding-left: 24px; padding-right: 24px; }

/* ---------------- шапка (базово — ≥1800) ---------------- */
.hdr__in { height: 92px; gap: 28px; }
.brand { gap: 14px; min-width: 0; }
.brand__mark { width: 56px; height: 56px; background: none; box-shadow: none; border-radius: 0; color: #e9bf6a; filter: drop-shadow(0 4px 14px rgba(226,180,90,.35)); }
.brand__mark .ico { width: 54px; height: 54px; stroke-width: 1.9; }
.brand__txt { line-height: 1.1; min-width: 0; }
.brand__txt b { font-size: 32px; letter-spacing: .5px; white-space: nowrap; }
.brand__txt small { font-size: 12.5px; letter-spacing: 2px; margin-top: 3px; white-space: nowrap; }
.mnav { gap: 6px; min-width: 0; }
.mnav__link { font-size: 16px; padding: 12px 14px; letter-spacing: .2px; color: #e3e5e9; }
.mnav__link.is-on, .mnav__dd.is-on > .mnav__link { color: #e9bf6a; }
.mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { bottom: -22px; left: 14px; right: 14px; }
.mnav__chev { width: 13px; height: 9px; }
.mnav__menu a { font-size: 15px; }
.hdr__right { gap: 12px; }
.hdr__icon { width: 54px; height: 54px; border-radius: 12px; }
.hdr__icon .ico { width: 22px; height: 22px; }
.hdr .lsw__btn { height: 54px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.hdr__cab { font-size: 16px; padding: 16px 26px; border-radius: 12px; font-weight: 800; white-space: nowrap; }
.hdr__cab .ico { width: 20px; height: 20px; }

/* ---------------- головна (базово) ---------------- */
.sechead { font-size: 34px; margin: 6px 0 22px; letter-spacing: -.6px; }
.slots { margin-bottom: 40px; }
.gcards { gap: 20px; }
.gcard { border-radius: 16px; }
.gcard__media { height: 240px; padding: 16px 18px; }
.gcard__badge { font-size: 13px; padding: 4px 10px; border-radius: 7px; letter-spacing: .8px; }
.gcard .fav { top: 14px; right: 14px; width: 46px; height: 46px; }
.gcard .fav .ico { width: 22px; height: 22px; }
.gcard .dot { margin-top: 14px; width: 11px; height: 11px; }
.gcard__name { font-size: 20px; margin-top: 8px; letter-spacing: -.2px; }
.gcard .maptag { font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.gcard .maptag .ico { width: 15px; height: 15px; }
.gcard__body { padding: 16px 18px 20px; gap: 16px; }
.gcard__row { gap: 12px; }
.gcard .pl { font-size: 17px; }
.gcard .pl .ico { width: 18px; height: 18px; }
.gcard .votes { border-radius: 10px; padding: 4px; }
.gcard .votes button { width: 36px; height: 36px; }
.gcard .votes button .ico { width: 20px; height: 20px; }
.gcard .votes__n { font-size: 17px; min-width: 28px; }
.gcard .flag { width: 28px; height: 20px; }
.gcard .ipbox { height: 52px; border-radius: 12px; padding: 0 14px; min-width: 0; }
.gcard .ipbox .mono { font-size: 14px; }
.gcard .ipbox .ico { width: 16px; height: 16px; }
.gcard .playbtn { width: 60px; height: 52px; border-radius: 12px; }
.gcard .playbtn .ico { width: 24px; height: 24px; }
.gcard__free { font-size: 19px; min-height: 160px; }
.gcard__free small { font-size: 14px; }
.gcard .mapph .ico { width: 60px; height: 60px; }
.gcard .mapph small { font-size: 11px; }

.hero2 { padding: 54px 56px; border-radius: 22px; margin: 10px 0 40px; }
.hero2__text { max-width: 900px; }
.hero2 h1 { font-size: 44px; }
.hero2 p { font-size: 17px; }
.hero2__actions .btn { padding: 16px 30px; font-size: 15px; border-radius: 10px; }

.mods { margin: 10px 0 34px; }
.mods__chips .chip { padding: 12px 20px; font-size: 15px; border-radius: 10px; }
.listhead__title { font-size: 34px; }
.row2 { border-radius: 16px; }

/* ---------------- футер ---------------- */
.footer__grid { padding-top: 40px; padding-bottom: 26px; }
.footer__bottom { padding-top: 18px; padding-bottom: 22px; }

/* =====================================================================
   АНІМАЦІЯ ПРИ НАВЕДЕННІ
   Рядок сервера: піднімається, золоте світіння й рамка, по рядку пробігає відблиск,
   карта плавно наближається, назва стає золотою, кнопка ▶ «дихає».
   Картка Be First / TOP: піднімається вище, світіння, відблиск по картинці, карта світлішає.
   ===================================================================== */
.row2 { position: relative; --bar: transparent;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s, background-color .28s; }
.row2--first { --bar: var(--gold); }
.row2--color { --bar: var(--rc); }
.row2::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 30%, rgba(255,236,190,.09) 46%, rgba(255,255,255,.14) 50%, rgba(255,236,190,.09) 54%, transparent 70%);
  transform: translateX(-110%); }
.row2:hover { transform: translateY(-3px); border-color: rgba(226,180,90,.6);
  box-shadow: inset 4px 0 0 var(--bar), 0 16px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(226,180,90,.25), 0 0 28px rgba(226,180,90,.12); }
.row2:hover::after { transform: translateX(110%); transition: transform .9s ease; }
.row2__map { overflow: hidden; transition: background-size .5s; }
.row2__map::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.row2:hover .row2__map::before { transform: scale(1.08); filter: brightness(1.12) saturate(1.1); }
.row2__map > * { position: relative; z-index: 1; }
.row2__name { transition: color .2s; }
.row2:hover .row2__name { color: #f3d58f; }
.row2 .playbtn { transition: transform .2s, box-shadow .2s, filter .2s; }
.row2:hover .playbtn { animation: playPulse 1.4s ease-in-out infinite; }
.row2 .playbtn:hover, .gcard .playbtn:hover { transform: scale(1.08); }

.gcard { position: relative; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.gcard:hover { transform: translateY(-6px); border-color: rgba(226,180,90,.6);
  box-shadow: 0 22px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(226,180,90,.25), 0 0 34px rgba(226,180,90,.14); }
.gcard__media { overflow: hidden; transition: filter .4s; }
.gcard:hover .gcard__media { filter: brightness(1.12) saturate(1.12); }
.gcard__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); transform: translateX(-110%); }
.gcard:hover .gcard__media::after { transform: translateX(110%); transition: transform .9s ease; }
.gcard:hover .gcard__name { color: #f3d58f; }
.gcard__name { transition: color .2s; }
.gcard:hover .playbtn { animation: playPulse 1.4s ease-in-out infinite; }
.gcard--free:hover .gcard__free small { letter-spacing: .4px; }
.gcard__free small { transition: letter-spacing .25s; }

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,213,143,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(243,213,143,0); }
}
/* хто вимкнув анімації в системі — без руху */
@media (prefers-reduced-motion: reduce) {
  .row2, .gcard, .row2::after, .gcard__media::after, .row2__map::before { transition: none !important; animation: none !important; }
  .row2:hover, .gcard:hover { transform: none; }
  .row2:hover .playbtn, .gcard:hover .playbtn { animation: none; }
}
/* на сенсорних екранах «наведення» немає — не залишаємо піднятий стан після дотику */
@media (hover: none) {
  .row2:hover, .gcard:hover { transform: none; }
  .row2:hover::after, .gcard:hover .gcard__media::after { transform: translateX(-110%); }
}

/* =========================== 1500–1799 =========================== */
@media (max-width: 1799px) {
  .hdr__in { height: 80px; gap: 18px; }
  .brand__mark, .brand__mark .ico { width: 44px; height: 44px; }
  .brand__txt b { font-size: 26px; }
  .brand__txt small { font-size: 11px; letter-spacing: 1.5px; }
  .mnav { gap: 2px; }
  .mnav__link { font-size: 14.5px; padding: 10px 11px; }
  .mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { bottom: -19px; left: 11px; right: 11px; }
  .hdr__right { gap: 10px; }
  .hdr__icon, .hdr .lsw__btn { height: 48px; }
  .hdr__icon { width: 48px; }
  .hdr__cab { font-size: 15px; padding: 13px 20px; }

  .sechead, .listhead__title { font-size: 30px; }
  .gcards { gap: 16px; }
  .gcard__media { height: 210px; padding: 14px 16px; }
  .gcard__name { font-size: 18px; }
  .gcard .fav { width: 42px; height: 42px; }
  .gcard__body { padding: 14px 16px 16px; gap: 14px; }
  .gcard .pl { font-size: 16px; }
  .gcard .votes button { width: 32px; height: 32px; }
  .gcard .votes__n { font-size: 15px; }
  .gcard .ipbox { height: 46px; }
  .gcard .ipbox .mono { font-size: 13px; }
  .gcard .playbtn { width: 52px; height: 46px; }
  .hero2 { padding: 44px 46px; }
  .hero2 h1 { font-size: 38px; }
}

/* =========================== 1200–1499 =========================== */
@media (max-width: 1499px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hdr__in { height: 72px; gap: 14px; }
  .brand__mark, .brand__mark .ico { width: 38px; height: 38px; }
  .brand__txt b { font-size: 22px; }
  .brand__txt small { display: none; }
  .mnav__link { font-size: 13.5px; padding: 9px 9px; }
  .mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { bottom: -16px; left: 9px; right: 9px; }
  .hdr__right { gap: 8px; }
  .hdr__icon, .hdr .lsw__btn { height: 42px; }
  .hdr__icon { width: 42px; }
  .hdr .lsw__btn { padding: 0 11px; font-size: 14px; }
  .hdr__cab { font-size: 14px; padding: 11px 16px; }

  .sechead, .listhead__title { font-size: 26px; }
  .slots { margin-bottom: 30px; }
  .gcards { gap: 14px; }
  .gcard__media { height: 180px; padding: 12px 14px; }
  .gcard__badge { font-size: 11.5px; padding: 3px 8px; }
  .gcard__name { font-size: 16px; }
  .gcard .fav { width: 36px; height: 36px; top: 10px; right: 10px; }
  .gcard .fav .ico { width: 18px; height: 18px; }
  .gcard .maptag { font-size: 12px; padding: 4px 8px; }
  .gcard__body { padding: 12px 14px 14px; gap: 12px; }
  .gcard__row { gap: 8px; }
  .gcard .pl { font-size: 14.5px; }
  .gcard .votes button { width: 28px; height: 28px; }
  .gcard .votes button .ico { width: 16px; height: 16px; }
  .gcard .votes__n { font-size: 14px; min-width: 22px; }
  .gcard .flag { width: 22px; height: 16px; }
  .gcard .ipbox { height: 42px; padding: 0 10px; }
  .gcard .ipbox .mono { font-size: 12px; }
  .gcard .playbtn { width: 46px; height: 42px; }
  .gcard .playbtn .ico { width: 20px; height: 20px; }
  .gcard__free { font-size: 16px; min-height: 130px; }
  .hero2 { padding: 36px 36px; margin-bottom: 30px; }
  .hero2 h1 { font-size: 32px; }
  .hero2 p { font-size: 15.5px; }
  .hero2__actions .btn { padding: 14px 22px; font-size: 14px; }
  .mods__chips .chip { padding: 10px 15px; font-size: 14px; }
}

/* =========================== 1081–1199 =========================== */
@media (max-width: 1199px) {
  .brand__txt { display: none; }                 /* лишається корона */
  .mnav__link { font-size: 13px; padding: 8px 7px; }
  .mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { left: 7px; right: 7px; }
  .gcard__media { height: 160px; }
  .hero2 h1 { font-size: 28px; }
}

/* =========================== ≤1080: бургер =========================== */
@media (max-width: 1080px) {
  .hdr__in { height: auto; min-height: 64px; gap: 10px; }
  .brand__txt { display: flex; }
  .brand__txt b { font-size: 20px; }
  .mnav__link { font-size: 15px; padding: 12px 6px; }
  .hdr__right { margin-left: auto; }
  .hdr__icon, .hdr .lsw__btn { height: 40px; }
  .hdr__icon { width: 40px; }
  .hdr__cab { padding: 10px 14px; font-size: 14px; }
  .gcard__media { height: 170px; }
}

/* =========================== ≤760: телефони =========================== */
@media (max-width: 760px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .brand__mark, .brand__mark .ico { width: 32px; height: 32px; }
  .brand__txt b { font-size: 18px; }
  .hdr .lsw__btn .lsw__cur { display: none; }   /* лише мова, без валюти */
  .hdr__cab { padding: 9px 12px; font-size: 13px; }
  .hdr__cab .ico { width: 16px; height: 16px; }

  .sechead, .listhead__title { font-size: 21px; }
  .gcards { gap: 10px; }
  .gcard { border-radius: 12px; }
  .gcard__media { height: 130px; padding: 10px; }
  .gcard__badge { font-size: 10px; padding: 2px 6px; }
  .gcard__name { font-size: 13.5px; }
  .gcard .fav { width: 30px; height: 30px; top: 8px; right: 8px; }
  .gcard .fav .ico { width: 15px; height: 15px; }
  .gcard .dot { width: 8px; height: 8px; margin-top: 8px; }
  .gcard .maptag { font-size: 10.5px; padding: 3px 6px; }
  .gcard__body { padding: 10px; gap: 8px; }
  .gcard .pl { font-size: 13px; }
  .gcard .flag { width: 20px; height: 14px; }
  .gcard .ipbox { height: 36px; padding: 0 8px; }
  .gcard .ipbox .mono { font-size: 11px; }
  .gcard .ipbox .ico { display: none; }
  .gcard .playbtn { width: 38px; height: 36px; border-radius: 8px; }
  .gcard .playbtn .ico { width: 16px; height: 16px; }
  .gcard__free { font-size: 14px; min-height: 90px; }
  .gcard .mapph .ico { width: 36px; height: 36px; }

  .hero2 { padding: 24px 18px; border-radius: 16px; margin-bottom: 24px; }
  .hero2 h1 { font-size: 24px; }
  .hero2 p { font-size: 14.5px; }
  .hero2__actions, .hero2__actions .btn { width: 100%; justify-content: center; }
  .mods__chips .chip { padding: 8px 12px; font-size: 13px; }
  .row2 { border-radius: 12px; }
}

/* =========================== ≤420: малі телефони =========================== */
@media (max-width: 420px) {
  .brand__txt { display: none; }
  .gcards { grid-template-columns: minmax(0, 1fr); }   /* одна картка в ряд — щоб влазили IP і кнопка */
  .gcard__media { height: 150px; }
}

/* картинки карт з GameTracker (160x120) — плавно, без «пікселів» на великих картках */
[data-map-remote] { image-rendering: auto; background-size: cover; background-position: center; }
.mapph--fallback { display: none !important; }
.map-missing { background-image: linear-gradient(160deg, #1d2333, #151a26) !important; }
.map-missing > .mapph--fallback { display: flex !important; }
