/* Кнопки (vAll-meta-button, button_1) и карточки гейм-центра (gc-*) */

/* ---------- детальные кнопки ---------- */
/* Тема отдаёт инлайновые --button-bg-color, поэтому задаём background напрямую. */

html body .vAll-meta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--sa-r-md);
  background: linear-gradient(180deg, #3BEF2A 0%, var(--sa-accent) 100%);
  color: var(--sa-accent-ink);
  border: 1px solid rgba(45, 224, 28, 0.5);
  box-shadow: 0 6px 18px rgba(45, 224, 28, 0.18), inset 0 1px rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: transform var(--sa-fast) var(--sa-ease),
              box-shadow var(--sa-mid) var(--sa-ease),
              filter var(--sa-fast) var(--sa-ease);
}

html body .vAll-meta-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(45, 224, 28, 0.26), inset 0 1px rgba(255, 255, 255, 0.3);
}

html body .vAll-meta-button:active { transform: scale(0.975); }

html body .vAll-meta-button__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

html body .vAll-meta-button__text-main {
  font-weight: 700;
  font-size: 15px;
  color: var(--sa-accent-ink);
}

html body .vAll-meta-button__text-secondary {
  font-size: 12px;
  font-weight: 500;
  color: rgba(14, 32, 45, 0.72);
}

html body .vAll-meta-button svg { color: var(--sa-accent-ink); flex: none; }

/* вторичная кнопка в шапке: приглушённая, чтобы главный CTA был один */
html body .vAll-meta-button_header:nth-of-type(2),
html body .vAll-meta-button.is-secondary {
  background: var(--sa-surface);
  border-color: var(--sa-line-strong);
  box-shadow: none;
}

html body .vAll-meta-button_header:nth-of-type(2) .vAll-meta-button__text-main,
html body .vAll-meta-button.is-secondary .vAll-meta-button__text-main { color: var(--sa-text); }

html body .vAll-meta-button_header:nth-of-type(2) .vAll-meta-button__text-secondary,
html body .vAll-meta-button.is-secondary .vAll-meta-button__text-secondary { color: var(--sa-text-dim); }

html body .vAll-meta-button_header:nth-of-type(2) svg,
html body .vAll-meta-button.is-secondary svg { color: var(--sa-accent); }

/* ---------- обычные кнопки темы ---------- */

html body .button_1,
html body a.button_1,
html body button.button_1 {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--sa-r-md);
  background: linear-gradient(180deg, #3BEF2A 0%, var(--sa-accent) 100%);
  color: var(--sa-accent-ink);
  font-weight: 700;
  border: 1px solid rgba(45, 224, 28, 0.5);
  transition: filter var(--sa-fast) var(--sa-ease), transform var(--sa-fast) var(--sa-ease);
}

html body .button_1:hover { filter: brightness(1.06); }
html body .button_1:active { transform: scale(0.975); }

/* ---------- гейм-центр: карточки игр ---------- */

html body .gc-section__heading { margin-bottom: var(--sa-s-3); }

html body .gc-section__title {
  color: var(--sa-text);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
}

html body .gc-section__title-icon { color: var(--sa-accent); }

html body .gc-card {
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-r-md);
  overflow: hidden;
  transition: transform var(--sa-mid) var(--sa-ease),
              border-color var(--sa-mid) var(--sa-ease),
              box-shadow var(--sa-mid) var(--sa-ease);
}

html body .gc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 224, 28, 0.3);
  box-shadow: var(--sa-e3);
}

html body .gc-card__image-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sa-surface);
}

html body .gc-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sa-mid) var(--sa-ease);
}

html body .gc-card:hover .gc-card__image { transform: scale(1.04); }

html body .gc-card__title {
  color: var(--sa-text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px 0;
}

html body .gc-card__buttons {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
}

html body .gc-card__button {
  flex: 1;
  min-height: 40px;
  border-radius: var(--sa-r-sm);
  background: var(--sa-accent);
  color: var(--sa-accent-ink);
  font-weight: 700;
  font-size: 13px;
  border: 0;
  transition: filter var(--sa-fast) var(--sa-ease);
}

html body .gc-card__button:hover { filter: brightness(1.08); }

html body .gc-card__button_secondary {
  background: transparent;
  border: 1px solid var(--sa-line-strong);
  color: var(--sa-text-muted);
}

html body .gc-card__button_secondary:hover {
  border-color: var(--sa-accent);
  color: var(--sa-text);
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html body .gc-card:hover { transform: none; }
  html body .gc-card:hover .gc-card__image { transform: none; }
  html body .vAll-meta-button:active,
  html body .button_1:active { transform: none; }
}

/* Вторичная кнопка: вторая в паре (шапка и hero). Один главный CTA на экран. */
html body .vAll-meta-button_header-secondary,
html body .v1-heroscreen__card-buttons > *:nth-child(2) .vAll-meta-button,
html body .v1-heroscreen__card-buttons > a.vAll-meta-button:nth-child(2) {
  background: var(--sa-surface);
  border-color: var(--sa-line-strong);
  box-shadow: none;
}

html body .vAll-meta-button_header-secondary .vAll-meta-button__text-main,
html body .v1-heroscreen__card-buttons > *:nth-child(2) .vAll-meta-button__text-main,
html body .v1-heroscreen__card-buttons > a.vAll-meta-button:nth-child(2) .vAll-meta-button__text-main {
  color: var(--sa-text);
}

html body .vAll-meta-button_header-secondary .vAll-meta-button__text-secondary,
html body .v1-heroscreen__card-buttons > *:nth-child(2) .vAll-meta-button__text-secondary,
html body .v1-heroscreen__card-buttons > a.vAll-meta-button:nth-child(2) .vAll-meta-button__text-secondary {
  color: var(--sa-text-dim);
}

html body .vAll-meta-button_header-secondary svg,
html body .v1-heroscreen__card-buttons > *:nth-child(2) svg,
html body .v1-heroscreen__card-buttons > a.vAll-meta-button:nth-child(2) svg {
  color: var(--sa-accent);
}
