/* ==========================================================================
   Доработка jetton1.io.in — 19.11.2026
   Промокод на первом экране, липкие CTA, разделы промокодов и отзывов.
   Файл отдельный: правки не смешиваются с основными стилями темы.
   ========================================================================== */

:root{
  --jt-lime:#b6ff00;
  --jt-ink:#0b0f16;
  --jt-line:rgba(255,255,255,.1);
  --jt-muted:#9fb0c7;
}

/* ---------- иконка Telegram в кнопках ---------- */
.jt-ico{ width:18px; height:18px; flex:0 0 auto; }

/* ---------- большой баннер с промокодом ---------- */
.jt-promo--code{ position:relative; display:block; min-height:280px; }
.jt-promo--code .jt-promo__link{ position:absolute; inset:0; z-index:1; display:block; }
.jt-promo--code .jt-promo__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.jt-promo__panel{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background:linear-gradient(180deg, rgba(5,9,15,0), rgba(5,9,15,.86) 42%);
}
.jt-promo__hint{ margin:0; flex:1 1 200px; color:#dbe6f5; font-size:13px; line-height:1.4; }
.jt-promo__hint b{ color:#fff; }

/* ---------- чип с кодом и копированием ---------- */
.jt-codeChip{
  display:inline-flex; align-items:center; gap:10px;
  padding:5px 5px 5px 14px; border-radius:14px;
  border:1.5px dashed rgba(182,255,0,.75); background:rgba(5,9,15,.78);
  color:#fff; cursor:pointer; font-family:inherit;
}
.jt-codeChip:hover{ border-color:var(--jt-lime); }
.jt-codeChip__value{ font:800 18px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.06em; }
.jt-codeChip__btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:36px; padding:0 14px; border-radius:10px;
  background:var(--jt-lime); color:var(--jt-ink); font-weight:800; font-size:13px; white-space:nowrap;
}
.jt-codeChip.is-done .jt-codeChip__btn{ background:#2ecc71; color:#06220f; }

/* ---------- второй ряд баннеров ---------- */
.jt-promoGrid2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.jt-promoGrid2 .jt-promo{ min-height:150px; }

/* ---------- липкие кнопки CTA (телефоны и планшеты) ---------- */
.jt-sticky{ display:none; }
.jt-sticky__btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:46px; border-radius:12px; font-weight:800; font-size:15px; text-decoration:none;
}
.jt-sticky__btn--tg{ background:rgba(255,255,255,.08); color:#e5e7eb; border:1px solid var(--jt-line); }
.jt-sticky__btn--reg{ background:var(--jt-lime); color:var(--jt-ink); }
@media (max-width:900px){
  .jt-sticky{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    position:fixed; left:0; right:0; bottom:0; z-index:60;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background:rgba(7,12,20,.95); border-top:1px solid var(--jt-line);
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  }
  body{ padding-bottom:84px; }
}

/* ---------- всплывающее уведомление ---------- */
.jt-toast{
  position:fixed; left:50%; bottom:96px; z-index:70;
  transform:translateX(-50%) translateY(16px);
  padding:10px 16px; border-radius:12px;
  background:#0f1722; border:1px solid rgba(182,255,0,.45); color:#e5e7eb;
  font-weight:700; font-size:14px; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.jt-toast.is-on{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- чипы разделов ---------- */
.jt-pages{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; }
.jt-pages__link{
  display:inline-flex; align-items:center; height:34px; padding:0 14px;
  border-radius:999px; border:1px solid var(--jt-line); background:rgba(255,255,255,.05);
  color:#cbd5e1; font-size:13px; font-weight:700; text-decoration:none;
}
.jt-pages__link.is-on{ background:var(--jt-lime); border-color:var(--jt-lime); color:var(--jt-ink); }

/* ---------- таблицы в тексте на узких экранах ---------- */
.jt-tableWrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin:14px 0; border:1px solid var(--jt-line); border-radius:14px; }
.jt-tableWrap table{ width:100%; min-width:520px; border-collapse:collapse; }
.jt-tableWrap th, .jt-tableWrap td{ padding:11px 14px; text-align:left; border-bottom:1px solid var(--jt-line); vertical-align:top; line-height:1.5; color:#cbd5e1; }
.jt-tableWrap thead tr{ background:rgba(182,255,0,.1); }
.jt-tableWrap th{ color:#eaf7c8; font-size:13px; text-transform:uppercase; letter-spacing:.04em; }
.jt-tableWrap tr:last-child td{ border-bottom:0; }
.jt-tableWrap td b{ color:#fff; }

/* ---------- карточки кодов на странице промокодов ---------- */
.jt-codes{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:14px; margin:16px 0; }
.jt-codeCard{
  min-width:0; display:flex; flex-direction:column; gap:10px;
  padding:18px; border-radius:18px; border:1px solid var(--jt-line);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.jt-codeCard--main{ border-color:rgba(182,255,0,.5); }
.jt-codeCard__badge{ align-self:flex-start; padding:4px 10px; border-radius:999px; background:rgba(182,255,0,.14); color:#d8ff86; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.jt-codeCard__title{ margin:0; color:#fff; font-size:17px; font-weight:800; }
.jt-codeCard__text{ margin:0; color:var(--jt-muted); font-size:14px; line-height:1.55; }
.jt-codeCard .jt-codeChip{ width:100%; justify-content:space-between; }
.jt-codeCard__cta{
  display:inline-flex; align-items:center; justify-content:center; height:42px;
  border-radius:12px; background:var(--jt-lime); color:var(--jt-ink);
  font-weight:800; font-size:14px; text-decoration:none;
}

/* ---------- мелкие экраны ---------- */
@media (max-width:420px){
  .jt-promo__panel{ gap:8px; padding:10px; }
  .jt-codeChip{ width:100%; justify-content:space-between; padding:5px 5px 5px 12px; }
  .jt-codeChip__value{ font-size:17px; }
  .jt-promo__hint{ flex-basis:100%; font-size:12.5px; }
}

/* ---------- лента вкладок каталога ----------
   Ряд «Все игры / Слоты / Live-игры» не сжимался и на узких экранах упирался
   в край. Делаем его прокручиваемым по горизонтали — на телефоне это ещё и
   привычнее, чем перенос. Правка косметическая и ни на что больше не влияет. */
.jt-tabs{ min-width:0; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.jt-tabs::-webkit-scrollbar{ display:none; }
.jt-toolbar{ min-width:0; }
.jt-toolbar__search{ min-width:0; }

/* ---------- цвет надписи на жёлтой кнопке ----------
   В теме у ссылок свой цвет с более высоким весом правила, из-за чего
   «Регистрация» на липкой панели выходила белой по жёлтому. */
.jt-sticky .jt-sticky__btn--reg{ color:#0b0f16; }
.jt-sticky .jt-sticky__btn--tg{ color:#e5e7eb; }
.jt-codeCard .jt-codeCard__cta{ color:#0b0f16; }

/* ==========================================================================
   Баннеры лобби: показываем целиком, без обрезки
   Исходная сетка держала три ячейки одной высоты при широких картинках, и
   object-fit:cover срезал бока вместе с текстом. Базовое состояние —
   одна колонка (телефоны и планшеты), на широких экранах — большой слева и
   столбец из двух справа: там пропорции ячеек совпадают с пропорциями картинок.
   ========================================================================== */

/* --- базовое состояние: всё в одну колонку --- */
.jt-promoGrid{ grid-template-columns:1fr; align-items:start; }
.jt-promoCol{ display:grid; grid-template-columns:1fr; gap:16px; min-width:0; }
.jt-promoGrid2{ grid-template-columns:1fr; }

.jt-promo--big{ min-height:0; }
.jt-promo--code .jt-promo__img{ position:static; width:100%; height:auto; aspect-ratio:763/321; object-fit:cover; }
.jt-promo--code .jt-promo__link{ bottom:auto; height:auto; aspect-ratio:763/321; }
.jt-promo__panel{ position:static; background:rgba(10,15,23,.96); border-top:1px solid var(--jt-line); }

.jt-promoCol .jt-promo img,
.jt-promoGrid2 .jt-promo img{ width:100%; height:auto; aspect-ratio:378/157; object-fit:cover; }
.jt-promoCol .jt-promo,
.jt-promoGrid2 .jt-promo{ min-height:0; }

/* --- до 1100px столбец растворяем: в теме у сетки на этих ширинах стоит
       grid-template-columns:1fr 1fr !important, и обёртка занимала бы одну
       ячейку из двух. display:contents возвращает баннеры в саму сетку, как
       было задумано темой --- */
@media (max-width:1100px){
  .jt-promoCol{ display:contents; }
  .jt-promoGrid2{ grid-template-columns:1fr 1fr; }
}

/* --- широкие экраны: большой слева, столбец из двух справа --- */
@media (min-width:1101px){
  .jt-promoGrid{ grid-template-columns:2fr 1fr; }
  .jt-promoCol{ grid-template-columns:1fr; grid-template-rows:auto auto; }
  .jt-promoGrid2{ grid-template-columns:1fr 1fr; }
}
