/* Shared styles for section pages (Share/TR/UA) */
:root {
  --section-page-bg: #f0f4f8;
  --section-surface: #ffffff;
  --section-surface-muted: #f8fafc;
  --section-border: #e7ebf0;
  --section-border-strong: #d1d9e4;
  --section-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  --section-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.09);
  --section-primary: #2563eb;
  --section-primary-light: rgba(37, 99, 235, 0.08);
}

body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; background: var(--section-page-bg); color: #0f172a; }
.container { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
a { color: #2563eb; text-decoration: none; }

.topbar--sticky {
  background: rgba(240, 244, 248, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
}

.topbar.scrolled {
  background: rgba(240, 244, 248, 0.94);
}

/* Top bar */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search { flex: 1; position: relative; }
.search input { width: 100%; height: 40px; border: 1px solid rgba(15,23,42,.06); border-radius: 12px; background: var(--section-surface); color: #0f172a; padding: 0 40px 0 42px; font-size: 16px; outline: none; box-shadow: var(--section-shadow); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.45; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--section-surface); border: 1px solid rgba(15,23,42,.06); display: inline-flex; align-items: center; justify-content: center; color: #475569; box-shadow: var(--section-shadow); transition: background .15s, box-shadow .15s; }
.icon-btn:active { box-shadow: none; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; background: var(--section-primary); color: #fff; font-weight: 700; font-size: 10.5px; padding: 1px 5px; border-radius: 999px; min-width: 16px; text-align: center; line-height: 1.4; }
.icon-btn.cart { position: relative; }

/* Carousel */
.carousel { position: relative; height: 50vh; margin-bottom: 40px; }
.carousel-viewport { height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 12px 0; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; align-items: center; height: 100%; gap: 12px; padding: 0 12px; }
.carousel-slide { flex: 0 0 auto; width: calc(50vh * 0.75); height: 100%; display: block; position: relative; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; scroll-snap-align: center; transform: scale(0.88); transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 0 0 rgba(0,0,0,0); }
.carousel-slide.active { transform: scale(1); box-shadow: none; }
.carousel-slide .label { position: absolute; left: 12px; bottom: 10px; background: rgba(0,0,0,0.4); padding: 4px 10px; border-radius: 8px; font-size: 12px; }

h1 { margin: 16px 0 8px; font-size: 22px; }
.section-note { margin: 6px 0 20px; color: #c5c5c5; font-size: 13px; }

/* Games grid: 2 per row */
.games-list {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 232px;
  transition: transform 0.12s ease-in-out, background 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 0;
}
.game-card:hover { background: #f2f4f7; box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.game-card:active { transform: scale(0.98); }

.game-thumb {
  display: block;
  width: 100%;
  height: 120px; /* фиксированная высота изображения */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  -webkit-clip-path: inset(0 round 12px 12px 0 0);
  clip-path: inset(0 round 12px 12px 0 0);
}

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 10px 12px;
  gap: 6px;
  flex: 1;
}

.game-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.game-price {
  font-size: 14px;
  color: #ffb400;
  font-weight: 600;
  margin: 0;
}
/* Прижимаем цену к низу карточки сетки */
.game-info .game-price { margin-top: auto; }

.game-description {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* ограничить описание 2 строками */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loading, .empty-list { text-align: center; padding: 20px 0; color: #6b7280; }
.loading-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(0,0,0,0.2); border-radius: 50%; border-top-color: #009cf7; animation: spin 1s ease-in-out infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Subscription blocks ===== */
.section-stack-item + .section-stack-item {
  margin-top: 28px;
}

.subscription-category-block {
  margin-bottom: 28px;
}

.subscription-category-block:last-child {
  margin-bottom: 0;
}

/* Region switcher — iOS segmented control */
.subscription-region-toggle {
  display: flex;
  gap: 4px;
  margin: 4px 0 24px;
  background: #edf1f5;
  border: none;
  border-radius: 14px;
  padding: 4px;
}

.subscription-region-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 11px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.subscription-region-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.subscription-region-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Category header */
.subscription-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.subscription-category-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Period toggle */
.subscription-period-toggle {
  display: flex;
  background: #edf1f5;
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
}

.subscription-period-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-weight: 600;
}

.subscription-period-btn:hover {
  color: #334155;
}

.subscription-period-btn.active {
  background: #ffffff;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Cards */
.subscription-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Subscription card — product feel */
.subscription-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px;
  cursor: default;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.subscription-card:hover {
  border-color: #d5dce6;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

/* Card image */
.subscription-card-image-container {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-right: 12px;
  background: transparent;
}

.subscription-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* Card content — title, desc, price */
.subscription-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  justify-content: center;
}

.subscription-card-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #EEF2FF;
  color: #4F46E5;
  margin-bottom: 4px;
  line-height: 1.3;
  align-self: flex-start;
}

.subscription-card-badge--best {
  background: #ECFDF5;
  color: #059669;
}

.subscription-card-badge--deluxe {
  background: #FEF3C7;
  color: #B45309;
}

.subscription-card-badge--deal {
  background: #FEE2E2;
  color: #DC2626;
}

.subscription-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.subscription-card-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subscription-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 0;
  line-height: 1.3;
}

.subscription-discount-badge {
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
}

/* Add-to-cart CTA */
.subscription-add-to-cart-btn {
  margin-left: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subscription-add-to-cart-btn.added {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.subscription-add-to-cart-btn:disabled {
  cursor: default;
  transform: none;
  opacity: 1;
}

.subscription-add-to-cart-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.subscription-add-to-cart-btn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.subscription-add-to-cart-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Calculator promo banner ===== */
.calc-promo-card {
  display: block;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(114, 167, 255, 0.18), transparent 22%),
    radial-gradient(circle at 90% 78%, rgba(190, 220, 255, 0.2), transparent 28%),
    linear-gradient(104deg, #ffffff 0%, #f7fbff 44%, #eef5ff 72%, #e8f0ff 100%);
  border: 1px solid rgba(187, 209, 247, 0.95);
  border-radius: 20px;
  padding: 16px 16px 16px 18px;
  text-decoration: none;
  color: #111827;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
  box-shadow: 0 10px 24px rgba(136, 173, 236, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.calc-promo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(136, 173, 236, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.calc-promo-card:active {
  transform: translateY(0);
}

.calc-promo-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-promo-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 0%;
}

.calc-promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5d9cff 0%, #3478f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.calc-promo-icon svg {
  width: 26px;
  height: 26px;
}

.calc-promo-copy {
  min-width: 0;
  flex: 1 1 0%;
}

.calc-promo-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.calc-promo-title span {
  color: #3b82f6;
}

.calc-promo-subtitle {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.3;
  margin-bottom: 8px;
}

.calc-promo-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.calc-promo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(218, 228, 246, 0.98);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(194, 214, 246, 0.15);
  white-space: nowrap;
}

.calc-promo-chip--round {
  width: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}

.calc-promo-chip-result {
  color: #2563eb;
}

.calc-promo-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.calc-promo-scene {
  position: relative;
  height: 56px;
  width: 140px;
}

.calc-promo-orbit {
  position: absolute;
  border-radius: 999px;
  border: 3px solid rgba(114, 164, 255, 0.22);
}

.calc-promo-orbit--one {
  width: 80px;
  height: 46px;
  right: 20px;
  top: 4px;
  border-left-color: transparent;
  border-right-color: transparent;
  transform: rotate(-18deg);
}

.calc-promo-orbit--two {
  width: 88px;
  height: 50px;
  right: 0;
  top: 8px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(10deg);
}

.calc-promo-coin {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #63a2ff 0%, #307ef7 100%);
  border: 2px solid rgba(255, 255, 255, 0.84);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.calc-promo-coin::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.calc-promo-coin--usd {
  top: 0;
  left: 20px;
  transform: rotate(-18deg);
}

.calc-promo-coin--rub {
  top: 2px;
  right: 6px;
  transform: rotate(12deg);
}

.calc-promo-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(116, 177, 255, 0.95);
  transform: rotate(45deg);
}

.calc-promo-spark--one {
  top: 6px;
  left: 8px;
}

.calc-promo-spark--two {
  top: 40px;
  left: 0;
  width: 4px;
  height: 4px;
}

.calc-promo-spark--three {
  top: 8px;
  right: 0;
  width: 5px;
  height: 5px;
}

.calc-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  white-space: nowrap;
  background: linear-gradient(180deg, #4e92ff 0%, #2d7df8 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.2);
  transition: background 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-promo-card:hover .calc-promo-cta {
  background: linear-gradient(180deg, #4589fb 0%, #1d70f2 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(59, 130, 246, 0.24);
}

/* Mobile */
@media (max-width: 520px) {
  .section-stack-item + .section-stack-item {
    margin-top: 24px;
  }

  .subscription-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .subscription-period-toggle {
    width: 100%;
    justify-content: center;
  }

  .subscription-period-btn {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
  }

  .subscription-card {
    padding: 12px;
  }

  .subscription-card-image-container {
    width: 46px;
    height: 46px;
    margin-right: 10px;
    border-radius: 10px;
  }

  .subscription-card-title {
    font-size: 14px;
  }

  .subscription-card-desc {
    font-size: 12px;
  }

  .subscription-card-price {
    font-size: 15px;
  }

  .subscription-add-to-cart-btn {
    width: 38px;
    height: 38px;
    margin-left: 10px;
    border-radius: 11px;
  }

  .calc-promo-card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .calc-promo-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .calc-promo-main {
    gap: 10px;
  }

  .calc-promo-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .calc-promo-icon svg {
    width: 22px;
    height: 22px;
  }

  .calc-promo-title {
    font-size: 17px;
    margin-bottom: 3px;
  }

  .calc-promo-subtitle {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .calc-promo-chips {
    gap: 5px;
  }

  .calc-promo-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .calc-promo-chip--round {
    width: 26px;
    padding: 0;
    font-size: 14px;
  }

  .calc-promo-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .calc-promo-scene {
    width: 110px;
    height: 44px;
  }

  .calc-promo-orbit--one {
    width: 64px;
    height: 36px;
    right: 16px;
    top: 4px;
  }

  .calc-promo-orbit--two {
    width: 72px;
    height: 40px;
    right: 0;
    top: 6px;
  }

  .calc-promo-coin {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .calc-promo-coin--usd {
    left: 16px;
  }

  .calc-promo-coin--rub {
    right: 4px;
  }

  .calc-promo-cta {
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
    padding: 0 14px;
    flex-shrink: 0;
  }
}

/* ========================= Collections horizontal shelves ========================= */
.collections-container {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.collection {
  margin-bottom: 0;
  background: var(--section-surface);
  border: 1px solid var(--section-border);
  border-radius: 24px;
  padding: 18px 16px 18px;
  box-shadow: var(--section-shadow);
  position: relative;
  overflow: hidden;
}

.collection::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0));
  pointer-events: none;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.collection-title { margin: 0; font-size: 18px; font-weight: 700; color: #111111; flex: 1; min-width: 0; }
.collection-title a { color: inherit; text-decoration: none; display: block; }
.collection-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.collection-count { font-size: 13px; color: #6b7280; font-weight: 600; white-space: nowrap; }
.collection-show-all { font-size: 13px; color: var(--section-primary); font-weight: 600; white-space: nowrap; }

.collection-games { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; margin: 0 -2px; z-index: 1; overscroll-behavior-x: contain; }
.collection-games::-webkit-scrollbar { display: none; }
.collection-games-track { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 14px; padding: 2px 12px 12px; -webkit-overflow-scrolling: touch; }
.collection-games-loading { padding: 8px 4px 12px; color: #94a3b8; font-size: 13px; }

/* ─── Game Cards ─── */
.collection-game-card {
  flex: 0 0 auto;
  width: 200px;
  position: relative;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  display: flex;
}

.collection-game-button {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid #e7ebf0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collection-game-media {
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  background: transparent;
}

.collection-game-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.collection-game-content {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.collection-game-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -0.01em;
}

.collection-game-meta {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 0;
  font-weight: 500;
  line-height: 1.3;
}

.collection-game-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.collection-game-price {
  font-size: 15px;
  color: #0891b2;
  margin: 0;
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 1px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.collection-game-price-current { color: #0891b2; font-weight: 800; white-space: nowrap; }
.collection-game-price-before {
  font-size: 11px;
  color: #b0b8c4;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.collection-game-platform { font-size: 11px; color: #6b7280; font-weight: 600; order: 10; flex-basis: 100%; }

.collection-game-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Price row: price + buy button */
.collection-game-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}
.collection-game-price-row .collection-game-price { margin-top: 0; flex: 1; min-width: 0; }

.collection-game-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.collection-game-buy-btn svg { flex-shrink: 0; width: 14px; height: 14px; }
.collection-game-card:hover .collection-game-buy-btn {
  background: #2563eb;
}

@media (max-width: 520px) {
  .collection {
    border-radius: 20px;
    padding: 16px 14px 16px;
  }

  .collection-meta {
    gap: 10px;
  }

  .collection-game-card { width: 170px; }
  .collection-game-title { font-size: 13px; margin-top: 8px; }
  .collection-game-meta { font-size: 11px; }
  .collection-game-price { font-size: 13px; }
  .collection-game-price-before { font-size: 10px; }
  .collection-game-buy-btn { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
  .collection-game-buy-btn svg { width: 12px; height: 12px; }
  .collection-game-discount-badge {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .collection-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .collection-meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }
}
