/* ============================================================
   GEMRUSH — стиль Brawl Stars
   Толстые обводки, объёмные кнопки, яркие градиенты, звёзды
   ============================================================ */

:root {
  --ink: #0a1233;            /* основная обводка / тёмный текст */
  --bg-1: #2a4bd7;
  --bg-2: #16265c;
  --bg-3: #0b1230;
  --panel: #182a66;          /* карточки */
  --panel-2: #20347d;        /* панели светлее */
  --panel-3: #2a3f99;
  --line: var(--ink);
  --text: #ffffff;
  --muted: #a9b8ee;
  --yellow: #ffc93c;
  --yellow-2: #ffb800;
  --yellow-deep: #e09c00;
  --pink: #ff4d6d;
  --blue: #35a7ff;
  --green: #38d76a;
  --purple: #b06bff;
  --radius: 18px;
  --shadow-btn: 0 6px 0 var(--line), 0 14px 26px rgba(0, 0, 0, .35);
  --shadow-card: 0 8px 0 var(--line), 0 22px 44px rgba(0, 0, 0, .4);
  --font-display: 'Lilita One', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%) fixed,
    var(--bg-3);
  min-height: 100vh;
  overflow-x: hidden;
}

.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - 32px)); }

.is-hidden { display: none !important; }
.text-green { color: var(--green); }

a { color: var(--blue); }

/* ---------- Декоративные звёзды на фоне ---------- */
.bg-stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-stars .star, .bg-stars .gem {
  position: absolute;
  color: rgba(255, 201, 60, .16);
  animation: floaty 7s ease-in-out infinite;
  text-shadow: none;
}
.bg-stars .gem { color: rgba(53, 167, 255, .14); }
.star--1 { top: 12%; left: 6%;  font-size: 42px; animation-delay: 0s; }
.star--2 { top: 24%; right: 8%; font-size: 28px; animation-delay: 1.2s; }
.star--3 { top: 58%; left: 3%;  font-size: 22px; animation-delay: .6s; }
.star--4 { top: 76%; right: 5%; font-size: 46px; animation-delay: 2s; }
.star--5 { top: 42%; right: 16%; font-size: 18px; animation-delay: 1.6s; }
.star--6 { top: 86%; left: 14%; font-size: 26px; animation-delay: 2.6s; }
.gem--1  { top: 20%; left: 44%; font-size: 20px; animation-delay: .9s; }
.gem--2  { top: 66%; right: 30%; font-size: 26px; animation-delay: 1.9s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-14px) rotate(8deg); }
}

/* ---------- Заголовки с «обводкой» как в Brawl Stars ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
  -webkit-text-stroke: 2px var(--line);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(10, 18, 51, .55);
}

.stars5 { color: var(--yellow); letter-spacing: 2px; -webkit-text-stroke: 1px var(--line); paint-order: stroke fill; }

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 18px;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 26px;
  cursor: pointer;
  color: #4a2c00;
  background: linear-gradient(180deg, #ffe082 0%, var(--yellow) 45%, var(--yellow-2) 100%);
  box-shadow: var(--shadow-btn);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
}
.btn:hover { filter: brightness(1.06); animation: btnJelly .45s ease; }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--line), 0 6px 12px rgba(0,0,0,.3); }

.btn--blue {
  background: linear-gradient(180deg, #7ec8ff 0%, var(--blue) 50%, #1f86e0 100%);
  color: #fff;
  -webkit-text-stroke: 1px rgba(10,18,51,.35);
  paint-order: stroke fill;
}
.btn--sm { font-size: 14px; padding: 8px 16px; border-radius: 12px; box-shadow: 0 4px 0 var(--line), 0 10px 18px rgba(0,0,0,.3); }
.btn--sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line), 0 4px 8px rgba(0,0,0,.3); }
.btn--lg { font-size: 22px; padding: 16px 38px; }

.btn--pay {
  width: 100%;
  font-size: 22px;
  padding: 16px;
  margin-top: 6px;
  animation: payPulse 2.6s ease-in-out infinite;
}
@keyframes payPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.09); }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 48, .82);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__star {
  font-size: 30px; color: var(--yellow);
  -webkit-text-stroke: 2px var(--line); paint-order: stroke fill;
  filter: drop-shadow(0 3px 0 rgba(10,18,51,.6));
  animation: starSpin 6s ease-in-out infinite;
}
@keyframes starSpin {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.12); }
}
.logo__text {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  -webkit-text-stroke: 2px var(--line); paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(10,18,51,.55);
}
.logo__text em { font-style: normal; color: var(--yellow); }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 3px solid transparent;
  transition: all .15s ease;
}
.nav a:hover { background: var(--panel-2); border-color: var(--line); transform: translateY(-1px); }

.header__actions { display: flex; gap: 10px; }

.burger { display: none; background: none; border: 3px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 52px 0 70px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: start;
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  font-weight: 800; font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 3px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  transform: rotate(-1deg);
}
.badge--green { background: var(--green); color: #07351a; }
.badge--blue { background: var(--blue); color: #06263f; }
.badge--pink { background: var(--pink); color: #4a0818; }

.hero__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; margin-bottom: 18px; }
.hl--yellow { color: var(--yellow); }
.hl--steam { color: var(--blue); }

.hero__sub { color: var(--muted); font-size: 17px; font-weight: 600; line-height: 1.55; max-width: 52ch; margin-bottom: 22px; }

.hero__features { list-style: none; margin-bottom: 26px; display: grid; gap: 10px; }
.hero__features li {
  position: relative;
  padding: 10px 14px 10px 42px;
  background: rgba(24, 42, 102, .6);
  border: 3px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  color: #dfe7ff;
}
.hero__features li::before {
  content: '★';
  position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--line); paint-order: stroke fill;
}
.hero__features b { color: #fff; }

.hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 5px 0 var(--line);
  min-width: 130px;
}
.stat__num { font-family: var(--font-display); font-size: 22px; }
.stat__label { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ---------- Виджет заказа ---------- */
.order {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 4px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
}
.order::before {
  content: '★ ТОП КУРС ★';
  position: absolute;
  top: -16px; right: 18px;
  background: linear-gradient(180deg, #ff7a95, var(--pink));
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  -webkit-text-stroke: 1px rgba(10,18,51,.4);
  paint-order: stroke fill;
  box-shadow: 0 4px 0 var(--line);
  transform: rotate(2.5deg);
}

.order__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 18px;
}
.order__tab {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .5px;
  padding: 10px;
  border: 3px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.order__tab.is-active {
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  color: #4a2c00;
  border-color: var(--line);
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
  -webkit-text-stroke: 0;
}

.order__body { display: grid; gap: 14px; }

/* Поля ввода */
.field { display: grid; gap: 6px; }
.field__label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(10,18,51,.5);
}
.field__box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 3px 0 rgba(10,18,51,.12), 0 4px 0 var(--line);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.field__box:focus-within {
  box-shadow: inset 0 3px 0 rgba(10,18,51,.12), 0 4px 0 var(--line), 0 0 0 4px rgba(255, 201, 60, .45);
  transform: translateY(-1px);
}
.field__box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  padding: 13px 14px;
  background: transparent;
  min-width: 0;
}
.field__prefix, .field__suffix {
  font-family: var(--font-display);
  font-size: 18px;
  color: #8a96c9;
  padding: 0 12px;
  background: #eef2ff;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 3px solid var(--line);
}
.field__suffix { border-right: 0; border-left: 3px solid var(--line); }
.field__hint { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field.is-error .field__box { animation: shake .35s ease; box-shadow: inset 0 3px 0 rgba(10,18,51,.12), 0 4px 0 var(--line), 0 0 0 4px rgba(255, 77, 109, .6); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* Чипы сумм */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips button {
  font-family: var(--font-display);
  font-size: 15px;
  padding: 9px 4px;
  border-radius: 12px;
  border: 3px solid var(--line);
  background: var(--panel-3);
  color: #dfe7ff;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
}
.chips button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.chips button.is-active {
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  color: #4a2c00;
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}

/* Сетка игр в виджете */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.game-cell {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--panel-3);
  padding: 10px 6px;
  display: grid;
  justify-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
  font-family: var(--font-body);
}
.game-cell:hover { filter: brightness(1.15); transform: translateY(-1px); }
.game-cell.is-active {
  background: linear-gradient(180deg, #7ec8ff, var(--blue));
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line), 0 0 0 3px rgba(255,201,60,.5);
}
.game-cell__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 12px;
  border: 3px solid var(--line);
  background: var(--c, var(--panel-2));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.game-cell__name { font-size: 11px; font-weight: 800; color: #fff; text-align: center; line-height: 1.15; }

/* Наборы */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack-cell {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--panel-3);
  padding: 10px 8px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
  display: grid;
  gap: 2px;
  text-align: center;
  font-family: var(--font-body);
}
.pack-cell:hover { filter: brightness(1.15); transform: translateY(-1px); }
.pack-cell.is-active {
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}
.pack-cell.is-active .pack-cell__label, .pack-cell.is-active .pack-cell__price { color: #4a2c00; }
.pack-cell__label { font-weight: 800; font-size: 14px; color: #fff; }
.pack-cell__price { font-family: var(--font-display); font-size: 16px; color: var(--yellow); }

/* Способы оплаты */
.order__pay { display: grid; gap: 14px; margin-top: 16px; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.method {
  position: relative;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--panel-3);
  padding: 22px 8px 10px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
  display: grid;
  gap: 2px;
  text-align: center;
}
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:hover { filter: brightness(1.15); }
.method.is-active {
  background: linear-gradient(180deg, #7ec8ff, var(--blue));
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line), 0 0 0 3px rgba(255,201,60,.5);
}
.method.is-disabled { opacity: .55; cursor: not-allowed; }
.method__badge {
  position: absolute;
  top: -10px; left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 3px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
  white-space: nowrap;
}
.method__badge--green { background: var(--green); color: #07351a; }
.method__badge--blue { background: var(--blue); color: #06263f; }
.method__badge--pink { background: var(--pink); color: #4a0818; }
.method__badge--gray { background: #9aa5c9; color: #232a45; }
.method__name { font-weight: 800; font-size: 14px; color: #fff; }
.method__note { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); }

/* Промокод */
.promo-toggle {
  background: none;
  border: 0;
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  text-decoration: underline dotted;
  width: fit-content;
}
.promo { display: flex; gap: 8px; }
.promo input {
  flex: 1;
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ink);
  outline: none;
  box-shadow: 0 3px 0 var(--line);
}
.promo-ok {
  font-weight: 800;
  font-size: 13.5px;
  color: #07351a;
  background: var(--green);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 3px 0 var(--line);
  width: fit-content;
}

/* Итоги */
.summary {
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
}
.summary__row b { color: #fff; font-size: 15px; white-space: nowrap; }
.summary__row--total {
  border-top: 2px dashed rgba(169,184,238,.35);
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}
.summary__row--total b { color: var(--yellow); font-size: 24px; }

/* Чекбокс оферты */
.agree { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.agree input { position: absolute; opacity: 0; }
.agree__box {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  display: grid; place-items: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: transparent;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
}
.agree input:checked + .agree__box {
  background: var(--green);
  color: #07351a;
}
.agree.is-error .agree__box { animation: shake .35s ease; box-shadow: 0 3px 0 var(--line), 0 0 0 4px rgba(255,77,109,.6); }

.order__trust {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.order__trust span {
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
}
.order__note { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }

/* ---------- Секции ---------- */
.section { position: relative; z-index: 1; padding: 56px 0; }
.section__title { font-size: clamp(28px, 3.4vw, 42px); text-align: center; margin-bottom: 10px; }
.section__title::before, .section__title::after {
  content: '★';
  color: var(--yellow);
  font-size: .6em;
  vertical-align: middle;
  margin: 0 12px;
  -webkit-text-stroke: 2px var(--line);
  paint-order: stroke fill;
}
.section__sub { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 34px; font-size: 16px; }
.section__footnote { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 16px; opacity: .8; }

/* ---------- Каталог игр ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catalog__more { display: flex; justify-content: center; margin-top: 26px; }
.game-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line), 0 16px 30px rgba(0,0,0,.35);
  padding: 20px 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
  position: relative;
  overflow: hidden;
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}
.game-card:hover { transform: translateY(-6px) rotate(-.6deg); filter: brightness(1.07); }
.game-card__icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  font-size: 44px;
  border-radius: 24px;
  border: 4px solid var(--line);
  background: var(--c, var(--panel-3));
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.25), 0 5px 0 var(--line);
}
.game-card__name { font-family: var(--font-display); font-size: 19px; text-shadow: 0 2px 0 rgba(10,18,51,.5); }
.game-card__desc { font-size: 12.5px; font-weight: 700; color: var(--muted); min-height: 2.4em; }
.game-card__price {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--yellow);
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 4px 16px;
}

/* ---------- Таблица-лидерборд ---------- */
.board {
  background: var(--panel);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.board__row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 3px solid var(--line);
  background: var(--panel-2);
}
.board__row:last-child { border-bottom: 0; }
.board__row:nth-child(even) { background: var(--panel); }
.board__row--win {
  background: linear-gradient(90deg, rgba(255,201,60,.22), rgba(255,201,60,.05));
  box-shadow: inset 0 0 0 3px var(--yellow);
  border-radius: 16px 16px 0 0; /* чтобы жёлтую рамку не резали углы контейнера */
}
.board__rank {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
  text-align: center;
}
.board__row--win .board__rank { font-size: 28px; }
.board__name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board__row--win .board__name { font-family: var(--font-display); font-size: 20px; letter-spacing: .5px; }
.board__price { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.board__row--win .board__price { color: var(--yellow); font-size: 22px; }
.board__diff { font-family: var(--font-body); font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--pink); }
.tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 2px 0 var(--line);
}
.tag--green { background: var(--green); color: #07351a; }
.tag--gray { background: #9aa5c9; color: #232a45; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line), 0 16px 30px rgba(0,0,0,.35);
  padding: 30px 20px 24px;
  text-align: center;
  position: relative;
  transition: transform .15s ease;
}
.step:hover { transform: translateY(-5px) rotate(.5deg); }
.step__num {
  width: 74px; height: 74px;
  margin: -64px auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  border: 4px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--line), 0 10px 20px rgba(0,0,0,.35);
  font-family: var(--font-display);
  font-size: 34px;
  color: #4a2c00;
  position: relative;
  top: 34px;
}
.step h3 { font-family: var(--font-display); font-size: 21px; margin: 36px 0 8px; text-shadow: 0 2px 0 rgba(10,18,51,.5); }
.step p { color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.5; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: #fff;
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--line), 0 16px 30px rgba(0,0,0,.35);
  padding: 18px;
  display: grid;
  gap: 10px;
  transition: transform .15s ease;
}
.review:hover { transform: translateY(-5px) rotate(-.4deg); }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__head b { display: block; font-size: 15px; }
.review__date { font-size: 12px; font-weight: 700; color: #7a86ad; }
.review__head .stars5 { margin-left: auto; font-size: 13px; }
.review__ava {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 3px solid var(--line);
  background: var(--ava, var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.22);
}
.review p { font-size: 14px; font-weight: 600; line-height: 1.5; color: #2c3557; }
.review__tag {
  width: fit-content;
  font-size: 11.5px;
  font-weight: 800;
  color: #0d5a2c;
  background: #d9f7e3;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--panel-2);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--line);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  letter-spacing: .3px;
}
.faq__q span {
  font-size: 22px;
  color: var(--yellow);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.faq__item.is-open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 20px 16px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.55; }
.faq__item.is-open { background: var(--panel-3); }

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 1; padding: 30px 0 70px; }
.cta__inner {
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,201,60,.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,77,109,.22), transparent 45%),
    linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 4px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 52px 24px;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.cta__inner h2 { font-size: clamp(28px, 3.4vw, 42px); }
.cta__inner p { color: var(--muted); font-weight: 700; font-size: 16px; }

/* ---------- Футер ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 4px solid var(--line);
  background: rgba(8, 13, 38, .9);
  padding: 40px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 2px dashed rgba(169,184,238,.25);
}
.footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__col b { font-family: var(--font-display); font-size: 16px; letter-spacing: .5px; }
.footer__col a { color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.footer__col a:hover { color: var(--yellow); }
.footer__col p { color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.footer__social { display: flex; gap: 8px; }
.footer__legal { padding-top: 18px; display: grid; gap: 6px; }
.footer__legal p { color: rgba(169,184,238,.6); font-size: 12px; font-weight: 600; line-height: 1.5; }

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 9, 26, .78);
  backdrop-filter: blur(6px);
  padding: 16px;
}
.modal__card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 34px 26px 26px;
  position: relative;
  animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1);
  text-align: center;
}
@keyframes popIn {
  from { transform: scale(.8) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
}
.modal__close:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }

.loader-star {
  font-size: 66px;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 rgba(10,18,51,.5));
  animation: starBounce 1s ease-in-out infinite;
  margin-bottom: 10px;
}
.loader-star.is-done { animation: none; transform: scale(1.1); }
@keyframes starBounce {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.18) rotate(10deg); }
}
.modal__stage h3 { font-size: 26px; margin-bottom: 16px; }
.modal__steps { list-style: none; display: grid; gap: 10px; text-align: left; margin-bottom: 8px; }
.modal__steps li {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--muted);
  padding: 10px 14px 10px 42px;
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 12px;
  position: relative;
  transition: color .2s ease;
}
.modal__steps li::before {
  content: '…';
  position: absolute; left: 14px;
  color: var(--yellow);
  font-weight: 900;
}
.modal__steps li.is-done { color: #fff; }
.modal__steps li.is-done::before { content: '✔'; color: var(--green); }

.modal__result { display: grid; gap: 12px; justify-items: center; }
.modal__order-num {
  font-family: var(--font-display);
  font-size: 15px;
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  color: var(--yellow);
}
.modal__result p { color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.5; }
.modal__demo-note {
  font-size: 12px;
  font-weight: 800;
  color: #4a2c00;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 5px 12px;
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  border: 3px solid var(--yellow);
  border-radius: 14px;
  padding: 12px 22px;
  box-shadow: 0 6px 0 rgba(0,0,0,.5);
  animation: toastIn .25s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}
@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (topup.html, game.html)
   ============================================================ */

.page { position: relative; z-index: 1; padding: 34px 0 70px; }

.page__sub { color: var(--muted); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.page__sub b { color: var(--yellow); }

/* Активный пункт меню */
.nav a.is-active { background: var(--panel-2); border-color: var(--line); color: var(--yellow); }

/* ---------- Хлебные крошки ---------- */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-weight: 800; font-size: 13.5px; color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a {
  color: var(--muted); text-decoration: none;
  padding: 5px 12px; border-radius: 10px;
  border: 2px solid transparent;
  transition: all .12s ease;
}
.crumbs a:hover { color: var(--yellow); background: var(--panel-2); border-color: var(--line); }
.crumbs .sep { opacity: .45; }
.crumbs .here {
  color: #fff; background: var(--panel-2);
  border: 2px solid var(--line); border-radius: 10px;
  padding: 5px 12px;
}

/* ---------- Лента-заголовок (как TROPHY WORLD) ---------- */
.ribbon-title { display: inline-block; position: relative; margin-bottom: 14px; }
.ribbon-title h1 {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(180deg, #141d4d, #0a0f2e);
  border: 4px solid var(--line);
  border-radius: 8px;
  padding: 14px 44px 14px 26px;
  transform: rotate(-1.6deg);
  box-shadow: 0 7px 0 var(--line), 0 20px 36px rgba(0, 0, 0, .45);
  -webkit-text-stroke: 2px var(--line);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(10, 18, 51, .55);
  position: relative;
}
.ribbon-title h1::after {
  content: '★';
  position: absolute;
  right: 12px; top: 50%;
  translate: 0 -50%;
  color: var(--yellow);
  font-size: .62em;
  font-style: normal;
  -webkit-text-stroke: 2px var(--line);
  paint-order: stroke fill;
}

/* ---------- Тулбар: поиск + категории ---------- */
.toolbar { display: grid; gap: 14px; margin: 16px 0 30px; }
.search {
  display: flex; align-items: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--line);
  overflow: hidden;
  max-width: 520px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.search:focus-within {
  box-shadow: 0 4px 0 var(--line), 0 0 0 4px rgba(255, 201, 60, .45);
  transform: translateY(-1px);
}
.search span {
  padding: 0 14px;
  align-self: stretch;
  display: flex; align-items: center;
  background: #eef2ff;
  border-right: 3px solid var(--line);
  font-size: 17px;
}
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 16px;
  color: var(--ink);
}

.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .3px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: var(--panel-3);
  color: #dfe7ff;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: all .12s ease;
}
.pill:hover { filter: brightness(1.15); transform: translateY(-1px); }
.pill.is-active {
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  color: #4a2c00;
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Заголовок панели ---------- */
.panel__title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 0 rgba(10, 18, 51, .5);
}

/* ---------- Лента «Хиты» ---------- */
.hot { margin-bottom: 36px; }
.hot-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 208px;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 12px 18px; /* место под вылезающие теги ХИТ */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) transparent;
}
.hot-card {
  scroll-snap-align: start;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--line), 0 14px 26px rgba(0, 0, 0, .35);
  padding: 22px 14px 16px;
  transition: transform .14s ease, filter .14s ease;
}
.hot-card:hover { transform: translateY(-5px) rotate(-.6deg); filter: brightness(1.08); }
.hot-card__tag {
  position: absolute;
  top: -11px; right: -7px;
  background: linear-gradient(180deg, #ff7a95, var(--pink));
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 3px 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--line);
  transform: rotate(4deg);
  -webkit-text-stroke: 1px rgba(10,18,51,.4);
  paint-order: stroke fill;
}
.hot-card__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  font-size: 36px;
  border-radius: 50%;
  background: var(--c, var(--panel-2));
  border: 4px solid var(--line);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 4px 0 var(--line);
}
.hot-card__name { font-weight: 800; font-size: 14.5px; color: #fff; }
.hot-card__desc { font-size: 11.5px; font-weight: 700; color: var(--muted); min-height: 2.6em; }
.hot-card__price {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--yellow);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px;
}

/* ---------- Сетка брендов (круглые значки как в Trophy World) ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--line), 0 12px 22px rgba(0, 0, 0, .3);
  padding: 20px 10px 14px;
  transition: transform .14s ease, filter .14s ease;
}
.brand-card:hover { transform: translateY(-5px) rotate(-.5deg); filter: brightness(1.08); }
.brand-card__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 32px;
  border-radius: 50%;
  background: var(--c, var(--panel-3));
  border: 4px solid var(--line);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 4px 0 var(--line);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.brand-card:hover .brand-card__icon { transform: scale(1.12) rotate(-6deg); }
.brand-card__name {
  font-weight: 800; font-size: 13px; color: #fff;
  text-align: center; line-height: 1.2;
  min-height: 2.3em;
  display: flex; align-items: center;
}
.brand-card__price {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--yellow);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.brand-card__tag {
  position: absolute;
  top: -10px; right: -5px;
  background: linear-gradient(180deg, #ff7a95, var(--pink));
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 1px;
  padding: 2px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--line);
  transform: rotate(4deg);
}

/* ---------- Пустой результат поиска ---------- */
.empty {
  text-align: center;
  background: var(--panel-2);
  border: 4px dashed rgba(169,184,238,.4);
  border-radius: 22px;
  padding: 44px 20px;
}
.empty__icon { font-size: 44px; margin-bottom: 10px; }
.empty p { color: var(--muted); font-weight: 700; line-height: 1.6; }

/* ---------- Инфо-полоса ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.info-strip__item {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--line);
  padding: 16px 18px;
}
.info-strip__icon {
  font-size: 26px;
  width: 52px; height: 52px; flex: 0 0 52px;
  display: grid; place-items: center;
  background: var(--panel-3);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.info-strip__item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.info-strip__item span { color: var(--muted); font-weight: 700; font-size: 12.5px; }

/* ---------- Баннер игры (game.html) ---------- */
.game-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--panel-3), var(--panel-2));
  border: 4px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.game-hero__icon {
  width: 108px; height: 108px; flex: 0 0 108px;
  display: grid; place-items: center;
  font-size: 56px;
  border-radius: 30px;
  background: var(--c, var(--panel-2));
  border: 4px solid var(--line);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.25), 0 6px 0 var(--line);
  animation: heroIconFloat 3.4s ease-in-out infinite;
}
@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
.game-hero__info { flex: 1; min-width: 240px; }
.game-hero__info h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 6px; }
.game-hero__info p { color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.game-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.game-hero__rating {
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--line);
  padding: 14px 20px;
  text-align: center;
}

/* ---------- Раскладка страницы игры ---------- */
.game-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.order-side__body { display: grid; gap: 14px; }

/* ---------- Карточки-офферы (как в магазине Pro Pass) ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  background: var(--panel-3);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--line);
  padding: 18px 10px 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .12s ease;
}
.offer:hover { filter: brightness(1.14); transform: translateY(-2px); }
.offer.is-active {
  background: linear-gradient(180deg, #35b662, #1e8a45);
  border-color: var(--line);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--line), 0 0 0 4px rgba(56, 215, 106, .4);
}
.offer__tag {
  position: absolute;
  top: -11px; left: 50%;
  translate: -50% 0;
  background: linear-gradient(180deg, #8affc1, var(--green));
  color: #07351a;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .5px;
  padding: 2px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--line);
  white-space: nowrap;
  z-index: 1;
}
.offer__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: #1e8a45;
  font-weight: 900;
  font-size: 13px;
}
.offer.is-active .offer__check { display: grid; }
.offer__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 30px;
  background: rgba(0,0,0,.28);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25);
}
.offer__label { font-weight: 800; font-size: 14px; color: #fff; text-align: center; line-height: 1.2; }
.offer__price { font-family: var(--font-display); font-size: 18px; color: var(--yellow); }
.offer.is-active .offer__price { color: #fff; }

/* ---------- Мини-шаги ---------- */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.strip-step {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700; font-size: 12.5px; color: var(--muted);
  line-height: 1.35;
}
.strip-step b {
  font-family: var(--font-display);
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe082, var(--yellow-2));
  color: #4a2c00;
  border: 3px solid var(--line);
  font-size: 16px;
}

/* ---------- Похожие ---------- */
.similar { margin-top: 10px; }
.brands-grid--similar { grid-template-columns: repeat(6, 1fr); }

/* ---------- Адаптив внутренних ---------- */
@media (max-width: 1020px) {
  .brands-grid, .brands-grid--similar { grid-template-columns: repeat(4, 1fr); }
  .game-layout { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brands-grid, .brands-grid--similar { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .steps-strip { grid-template-columns: 1fr; }
  .game-hero__rating { width: 100%; }
}
@media (max-width: 480px) {
  .brands-grid, .brands-grid--similar { grid-template-columns: repeat(2, 1fr); }
  .ribbon-title h1 { padding: 12px 34px 12px 18px; }
}

/* ============================================================
   FX — анимации в духе Brawl Stars
   ============================================================ */

/* ---------- Желе-кнопки ---------- */
@keyframes btnJelly {
  0%   { transform: translateY(0) rotate(0) scale(1, 1); }
  35%  { transform: translateY(-3px) rotate(.8deg) scale(1.05, .94); }
  70%  { transform: translateY(0) rotate(-.5deg) scale(.97, 1.04); }
  100% { transform: translateY(-1px) rotate(-.4deg) scale(1); }
}

/* ---------- Блеск на кнопке оплаты ---------- */
.btn--pay { position: relative; overflow: hidden; }
.btn--pay::after {
  content: '';
  position: absolute;
  top: -45%; bottom: -45%;
  left: -45%;
  width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: payShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes payShine {
  0%, 55% { left: -45%; }
  100%    { left: 135%; }
}

/* ---------- Idle-анимация иконок (как персонажи в меню BS) ---------- */
.game-card__icon, .hot-card__icon, .offer__icon, .empty__icon {
  animation: idleBounce 3.2s ease-in-out infinite;
}
.game-card:nth-child(2n) .game-card__icon,
.hot-card:nth-child(2n) .hot-card__icon,
.offer:nth-child(2n) .offer__icon { animation-delay: .7s; }
.game-card:nth-child(3n) .game-card__icon,
.hot-card:nth-child(3n) .hot-card__icon,
.offer:nth-child(3n) .offer__icon { animation-delay: 1.3s; }
@keyframes idleBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  30%      { transform: translateY(-5px) rotate(-4deg); }
  60%      { transform: translateY(0) rotate(3deg); }
}

/* ---------- Вращение номера шага при ховере ---------- */
.step:hover .step__num { animation: numSpin .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes numSpin {
  0%   { transform: rotate(0) scale(1); }
  50%  { transform: rotate(-14deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}

/* ---------- Вход hero ---------- */
.hero__badges   { animation: heroPop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.hero__title    { animation: heroPop .65s cubic-bezier(.34, 1.56, .64, 1) .08s both; }
.hero__sub      { animation: heroPop .65s cubic-bezier(.34, 1.56, .64, 1) .16s both; }
.hero__features { animation: heroPop .65s cubic-bezier(.34, 1.56, .64, 1) .24s both; }
.hero__stats    { animation: heroPop .65s cubic-bezier(.34, 1.56, .64, 1) .32s both; }
.order          { animation: orderIn .7s cubic-bezier(.34, 1.56, .64, 1) .14s both; }
@keyframes heroPop {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orderIn {
  from { opacity: 0; transform: translateX(46px) rotate(1.6deg) scale(.95); }
  to   { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}

/* ---------- Reveal при скролле ---------- */
.reveal { opacity: 0; }
.reveal.is-in { animation: revealPop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes revealPop {
  from { opacity: 0; transform: translateY(26px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Pop при смене цифр ---------- */
.pop { animation: numPop .28s cubic-bezier(.34, 1.56, .64, 1); display: inline-block; }
@keyframes numPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.22) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* ---------- Live-лента заказов ---------- */
.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  background: rgba(8, 13, 38, .92);
  border-block: 3px solid var(--line);
  overflow: hidden;
}
.ticker__label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  background: linear-gradient(180deg, #ff7a95, var(--pink));
  color: #fff;
  border-right: 3px solid var(--line);
  -webkit-text-stroke: 1px rgba(10,18,51,.4);
  paint-order: stroke fill;
  white-space: nowrap;
  z-index: 2;
}
.ticker__label i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: liveBlink 1.1s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
.ticker__viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.ticker__item { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.ticker__item b { color: #fff; }
.ticker__item .amt { color: var(--yellow); font-weight: 800; }
.ticker__sep { color: rgba(255, 201, 60, .5); margin-left: 40px; }

/* ---------- Конфетти-звёзды ---------- */
.confetti {
  position: absolute;
  left: 50%; top: 34%;
  pointer-events: none;
  z-index: 6;
  animation: confettiBurst .95s cubic-bezier(.17, .89, .32, 1.28) forwards;
}
@keyframes confettiBurst {
  0%   { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 1; }
  75%  { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--rot));
    opacity: 0;
  }
}

/* ---------- Пружинный тост ---------- */
.toast { animation: toastIn .38s cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- Мелкие фиксы ---------- */
/* убираем стрелки у number-инпута */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

/* уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; }
  .ticker__track { animation: none; }
}

/* тикер на мобильных */
@media (max-width: 760px) {
  .ticker__label { font-size: 12px; padding: 9px 12px; }
  .ticker__track { gap: 28px; }
  .ticker__sep { margin-left: 28px; }
}
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav, .header__actions { display: none; }
  .burger { display: block; margin-left: auto; }
  .header.is-open .nav {
    display: grid;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(11,18,48,.98);
    border-bottom: 3px solid var(--line);
    padding: 14px 16px;
    gap: 6px;
  }
  .header.is-open .header__actions {
    display: flex;
    position: absolute;
    top: calc(68px + 190px); left: 0; right: 0;
    background: rgba(11,18,48,.98);
    padding: 0 16px 14px;
  }
  .hero { padding: 34px 0 50px; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 46px; margin-top: 34px; }
  .reviews { grid-template-columns: 1fr; }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .display { -webkit-text-stroke-width: 1.5px; }
}
@media (max-width: 420px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 8px; }
  .stat { flex: 1; min-width: 0; }
}
