.smc {
  --smc-red: #e62429;
  --smc-red-hi: #ff4b52;
  --smc-red-deep: #8f0f16;
  --smc-ink: #eaf0f8;
  --smc-mut: #9fb0c4;
  --smc-card-w: 240px;
  --smc-rank: #3d4c63;
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 2rem 0 0.5rem;
}

.smc__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.smc__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.smc__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.smc__emblem {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, var(--smc-red-hi), var(--smc-red) 45%, var(--smc-red-deep));
  box-shadow: 0 6px 18px rgba(230, 36, 41, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.smc__emblem svg {
  width: 1.65rem;
  height: 1.65rem;
}

.smc__heading {
  min-width: 0;
}

.smc__eyebrow {
  margin-bottom: 0.32rem;
}

.smc__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd9da;
  background: rgba(230, 36, 41, 0.14);
  border: 1px solid rgba(230, 36, 41, 0.4);
}

.smc__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  background: linear-gradient(92deg, #fff 0%, #ffb9bb 55%, var(--smc-red-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.smc__subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: var(--smc-mut);
  max-width: 56ch;
}

.smc__stage {
  position: relative;
  overflow: visible;
}

.smc__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--smc-n, 3), minmax(11rem, 1fr) var(--smc-card-w));
  justify-content: center;
  align-items: center;
  column-gap: 0.45rem;
  overflow: visible;
}

.smc__item {
  display: contents;
}

.smc__rank {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  z-index: 0;
  color: var(--smc-rank);
  pointer-events: none;
  user-select: none;
  overflow: visible;
  transform: translateX(22%);
  transition: color 0.28s ease, opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) var(--delay, 0s);
}

.smc__grid .smc__item:nth-of-type(1) .smc__rank { --delay: 0s; }
.smc__grid .smc__item:nth-of-type(2) .smc__rank { --delay: 0.16s; }
.smc__grid .smc__item:nth-of-type(3) .smc__rank { --delay: 0.32s; }
.smc__grid .smc__item:nth-of-type(4) .smc__rank { --delay: 0.48s; }

.smc__rank-n {
  position: relative;
  z-index: 1;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-size: calc(var(--smc-card-w) * 1.32);
}

.smc__rank::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: calc(var(--smc-card-w) * 2.05);
  height: calc(var(--smc-card-w) * 2.05);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(230, 36, 41, 0.08) 38%, transparent 68%);
}

.smc__rank-web {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  width: calc(var(--smc-card-w) * 1.7);
  height: auto;
  color: #f3f6fb;
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(230, 36, 41, 0.28));
  transition: color 0.28s ease, opacity 0.28s ease;
}

.smc__rank-web svg,
.smc__rank-web {
  display: block;
}

.smc-card-wrap {
  position: relative;
  z-index: 2;
  width: var(--smc-card-w);
  min-width: var(--smc-card-w);
  isolation: isolate;
}

.smc .pkg-card {
  width: 100%;
  min-height: calc(var(--smc-card-w) * 1.72);
  background: linear-gradient(180deg, #161d2b 0%, #0e1420 56%, #080b12 100%);
  border: 1px solid rgba(230, 36, 41, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.smc .pkg-card__media {
  aspect-ratio: 2 / 3;
}

.smc .pkg-card__ribbon {
  background: linear-gradient(90deg, var(--smc-red-deep), var(--smc-red), var(--smc-red-deep));
  color: #fff;
}

.smc .pkg-card__tag {
  background: rgba(230, 36, 41, 0.16);
  border-color: rgba(230, 36, 41, 0.35);
  color: #ffd9da;
}

.smc .pkg-card__discount {
  color: var(--smc-red-hi);
}

.smc .pkg-card__title {
  font-size: 1.05rem;
}

.smc .pkg-card__price {
  font-size: 1.28rem;
}

.smc .pkg-card--grow:hover {
  transform: translateY(-5px) scale(1);
  border-color: rgba(255, 75, 82, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(230, 36, 41, 0.3);
}

.smc__item:has(.pkg-card:hover) .smc__rank {
  color: var(--smc-red-hi);
}

.smc__item:has(.pkg-card:hover) .smc__rank::before,
.smc__item:has(.pkg-card:hover) .smc__rank-web {
  opacity: 0.95;
  color: #fff;
}

.smc-card,
.smc-combo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--smc-card-w);
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: var(--smc-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.smc-card {
  background: linear-gradient(180deg, #161d2b 0%, #0e1420 56%, #080b12 100%);
  border: 1px solid rgba(230, 36, 41, 0.28);
}

.smc-combo {
  background: linear-gradient(180deg, #2a1218 0%, #1a0d12 54%, #0b0709 100%);
  border: 1px solid rgba(255, 75, 82, 0.5);
}

.smc-card__media,
.smc-combo__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0e16;
}

.smc-card__media img,
.smc-combo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.smc-card__media::before,
.smc-combo__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0) 40%, rgba(8, 11, 18, 0.55) 74%, #080b12 100%);
}

.smc-card__web {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 54%;
  max-width: 112px;
  color: #fff;
  opacity: 0.72;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.smc-card__web svg {
  display: block;
  width: 100%;
  height: auto;
}

.smc-card__web--tl { left: 0; }
.smc-card__web--tr {
  right: 0;
  transform: scaleX(-1);
}

.smc-card__ribbon,
.smc-combo__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--smc-red-deep), var(--smc-red), var(--smc-red-deep));
  padding: 0.34em 0.5em;
  pointer-events: none;
}

.smc-card__badge,
.smc-combo__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  padding: 0.2rem 0.42rem;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--smc-red-hi), var(--smc-red-deep));
  box-shadow: 0 4px 12px rgba(230, 36, 41, 0.5);
}

.smc-card__media:has(.smc-card__ribbon) .smc-card__badge,
.smc-combo__media:has(.smc-combo__ribbon) .smc-combo__badge {
  top: 1.65rem;
}

.smc-card__sold,
.smc-combo__sold {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.smc-card__body,
.smc-combo__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  padding: 1.9rem 0.7rem 0.8rem;
  margin-top: -1.7rem;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0) 0%, rgba(9, 12, 19, 0.72) 42%, #080b12 100%);
}

.smc-card__title,
.smc-combo__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.smc-card__pricing,
.smc-combo__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.smc-card__compare,
.smc-combo__compare {
  font-size: 0.72rem;
  color: var(--smc-mut);
  text-decoration: line-through;
  text-decoration-color: rgba(230, 36, 41, 0.7);
}

.smc-card__price,
.smc-combo__price {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.smc-combo__price {
  color: #ffd0d2;
}

.smc-card__pix,
.smc-combo__pix {
  margin: 0;
  font-size: 0.68rem;
  color: var(--smc-mut);
}

.smc-card__meta,
.smc-combo__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.04rem;
}

.smc-card__key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--smc-mut);
}

.smc-card__key-ic {
  width: 0.88rem;
  height: 0.88rem;
  color: var(--smc-red-hi);
}

.smc-card__steam {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #9fb0c4;
  opacity: 0.9;
}

.smc-card__steam svg {
  width: 100%;
  height: 100%;
}

.smc__item:has(.smc-card:hover) .smc__rank,
.smc__item:has(.smc-combo:hover) .smc__rank {
  color: var(--smc-red-hi);
}

.smc__item:has(.smc-card:hover) .smc__rank-web,
.smc__item:has(.smc-combo:hover) .smc__rank-web {
  color: #fff;
  opacity: 0.95;
}

@media (hover: hover) {
  .smc-card:hover,
  .smc-combo:hover {
    z-index: 3;
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 75, 82, 0.28), 0 10px 30px rgba(230, 36, 41, 0.3);
  }

  .smc-card:hover { border-color: rgba(255, 75, 82, 0.6); }
  .smc-combo:hover { border-color: rgba(255, 95, 101, 0.85); }

  .smc-card:hover .smc-card__media img,
  .smc-combo:hover .smc-combo__media img {
    transform: scale(1.06);
  }
}

@media (max-width: 1399px) {
  .smc { --smc-card-w: 210px; }
}

@media (max-width: 1099px) {
  .smc { padding-top: 1.4rem; --smc-card-w: 248px; }
  .smc__rank { display: none; }
  .smc__grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 0.5rem;
    justify-content: flex-start;
  }
  .smc__grid::-webkit-scrollbar { display: none; }
  .smc-card,
  .smc-combo,
  .smc-card-wrap {
    flex: 0 0 min(64vw, var(--smc-card-w));
    width: auto;
    min-width: min(64vw, var(--smc-card-w));
    scroll-snap-align: start;
  }
}

@media (max-width: 639px) {
  .smc { --smc-card-w: 256px; }
  .smc-card,
  .smc-combo,
  .smc-card-wrap {
    flex-basis: min(84vw, var(--smc-card-w));
    min-width: min(84vw, var(--smc-card-w));
  }
  .smc-card__title,
  .smc-combo__title { font-size: 0.72rem; }
  .smc-card__compare,
  .smc-combo__compare { font-size: 0.75rem; }
  .smc-card__price,
  .smc-combo__price { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .smc-card,
  .smc-combo,
  .smc-card__media img,
  .smc-combo__media img,
  .smc__rank,
  .smc__rank-web {
    transition: none;
  }
}
