.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 174px;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.game-cover {
  position: relative;
  width: 174px;
  height: 13.9375rem;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: #171a22;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.cover-badge--deadline {
  color: var(--gold-bright);
}

.game-sub-float {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px 5px 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 0 13px 0;
  background: rgba(0, 0, 0, 0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-sub-float img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(0.95); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes heartGlowPulse {
  0%, 100% {
    filter:
      drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8))
      drop-shadow(0 0 8px rgba(255, 90, 90, 0.5))
      drop-shadow(0 0 16px rgba(255, 60, 60, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8))
      drop-shadow(0 0 12px rgba(255, 90, 90, 0.7))
      drop-shadow(0 0 22px rgba(255, 60, 60, 0.4));
  }
}

.game-favorite {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.25s ease, filter 0.25s ease;
  z-index: 3;
  animation: heartFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  -webkit-tap-highlight-color: transparent;
}

.game-favorite:hover {
  color: #fff;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 10px rgba(255, 90, 90, 0.5))
    drop-shadow(0 0 20px rgba(255, 60, 60, 0.3));
}

.game-favorite.active {
  color: var(--red-bright);
  animation: heartFloat 3s ease-in-out infinite, heartGlowPulse 2s ease-in-out infinite;
  filter:
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 10px rgba(255, 90, 90, 0.6))
    drop-shadow(0 0 20px rgba(255, 60, 60, 0.35));
}

.game-favorite.active:hover {
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 14px rgba(255, 90, 90, 0.75))
    drop-shadow(0 0 28px rgba(255, 60, 60, 0.45));
}

.game-favorite svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-favorite.active svg {
  fill: currentColor;
}

.game-favorite.just-toggled svg {
  animation: heartPulse 0.5s ease-out;
}

.game-platform-badges {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.game-platform-badge {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.game-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 1px;
}

.game-name {
  margin-bottom: 1px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-edition {
  min-height: 14px;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-prices {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Как в TMA: дисконт идёт ПЕРЕД ценой (по порядку в HTML), без reorder. */
.game-prices .game-price-current { order: unset; }
.game-prices .game-discount-inline { order: unset; }

.game-discount-inline {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f5cd8 0%, #6a91ff 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(74, 124, 255, 0.3);
}

.game-price-current {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
}

.psplus-price-line,
.game-deadline-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.psplus-price-line {
  gap: 6px !important;
  margin-top: 1px !important;
  margin-bottom: 2px;
  transform: translateX(1px);
}

.psplus-price-line img {
  display: none !important;
}

.psplus-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.15);
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.psplus-price {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.psplus-discount {
  margin-left: 2px;
  padding: 2.5px 5px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.4);
  background: rgba(212, 175, 106, 0.2);
  color: var(--gold-bright);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}

.game-deadline-inline {
  align-self: flex-start;
  margin-top: 3px;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}

.psplus-price-line + .game-deadline-inline {
  margin-top: 2px;
}

/* ── EA Play price line ─────────────────────────────────── */
.ea-price-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  margin-bottom: 2px;
  transform: translateX(1px);
}

.ea-price-line img {
  display: none !important;
}

.ea-price {
  color: #FF6B6B;
  font-size: 11px;
  font-weight: 700;
}

.ea-discount {
  padding: 2.5px 3px;
  border-radius: 4px;
  border: 1px solid rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.12);
  color: #FF6B6B;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

.psplus-price-line + .ea-price-line {
  margin-top: 2px;
}

.ea-price-line + .game-deadline-inline {
  margin-top: 2px;
}
/* ──────────────────────────────────────────────────────── */

.game-deadline-inline svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
  flex-shrink: 0;
  animation: pulse-icon-shared 2s ease-in-out infinite;
}

@keyframes pulse-icon-shared {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.game-price-current,
.psplus-price,
.ea-price {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.game-price-current .sep,
.psplus-price .sep,
.ea-price .sep {
  display: inline-block;
  width: 0.2em;
}

.game-price-current .currency,
.psplus-price .currency,
.ea-price .currency {
  color: inherit;
  margin-left: 0.15em;
}
