/* Mini-game badges + themed competition cards (homepage grid + hero carousel) */

/* ── Shared interactive-game card shell ── */

.competition-card[class*="competition-card--game-"],
.hero-featured-card[class*="hero-featured-card--game-"] {
  --game-border: rgba(255, 255, 255, 0.2);
  --game-glow: rgba(255, 255, 255, 0.12);
  --game-surface: linear-gradient(165deg, rgba(40, 40, 48, 0.96) 0%, rgba(24, 24, 28, 1) 100%);
  --game-info-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --game-title: #ffffff;
  --game-tagline: rgba(255, 255, 255, 0.86);
  --game-tagline-bg: rgba(255, 255, 255, 0.08);
  --game-price: #ffffff;
  --game-progress: var(--primary);
  border-width: 2px;
  border-color: var(--game-border);
  background: var(--game-surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px var(--game-glow);
  overflow: hidden;
}

.competition-card[class*="competition-card--game-"]::before,
.competition-card[class*="competition-card--game-"]:hover::before,
.competition-card[class*="competition-card--game-"].touch-active::before,
.hero-featured-card[class*="hero-featured-card--game-"]::before,
.hero-featured-card[class*="hero-featured-card--game-"]:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 6;
  display: block;
  background: linear-gradient(90deg, var(--game-accent-deep), var(--game-accent), var(--game-accent-deep));
  pointer-events: none;
}

.competition-card[class*="competition-card--game-"]:hover:not(.sold-out),
.hero-featured-card[class*="hero-featured-card--game-"]:hover:not(.is-sold-out) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 40px var(--game-glow),
    0 0 28px color-mix(in srgb, var(--game-accent) 28%, transparent);
  transform: translateY(-2px);
}

.competition-card[class*="competition-card--game-"] .competition-info {
  background: var(--game-info-surface);
  border-top: 1px solid color-mix(in srgb, var(--game-accent) 22%, transparent);
}

.competition-card[class*="competition-card--game-"] .competition-title,
.hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__title {
  color: var(--game-title);
}

.competition-card[class*="competition-card--game-"] .ticket-price,
.competition-card[class*="competition-card--game-"] .ticket-price .price-text,
.competition-card[class*="competition-card--game-"] .discounted-price {
  color: var(--game-price);
}

.competition-card[class*="competition-card--game-"] .progress-bar {
  background: linear-gradient(90deg, var(--game-accent-deep), var(--game-accent));
}

.competition-card[class*="competition-card--game-"] .quick-add-minus,
.competition-card[class*="competition-card--game-"] .quick-add-plus,
.competition-card[class*="competition-card--game-"] .quick-add-btn,
.competition-card[class*="competition-card--game-"] .quick-add-cart > a.btn {
  background: linear-gradient(135deg, var(--game-accent-deep), var(--game-accent)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--game-accent) 35%, transparent);
}

.competition-card[class*="competition-card--game-"] .quick-add-minus:hover,
.competition-card[class*="competition-card--game-"] .quick-add-plus:hover,
.competition-card[class*="competition-card--game-"] .quick-add-btn:hover,
.competition-card[class*="competition-card--game-"] .quick-add-cart > a.btn:hover {
  background: linear-gradient(135deg, var(--game-accent), color-mix(in srgb, var(--game-accent) 72%, #fff)) !important;
  filter: brightness(1.04);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--game-accent) 42%, transparent);
}

.competition-card[class*="competition-card--game-"] .quick-add-minus:active,
.competition-card[class*="competition-card--game-"] .quick-add-plus:active,
.competition-card[class*="competition-card--game-"] .quick-add-btn:active,
.competition-card[class*="competition-card--game-"] .quick-add-cart > a.btn:active {
  filter: brightness(0.96);
}

.competition-card[class*="competition-card--game-"] .countdown-timer .time-value {
  color: var(--game-title);
}

.hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__body {
  background: var(--game-info-surface);
  border-top: 1px solid color-mix(in srgb, var(--game-accent) 24%, transparent);
}

.hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__cta {
  background: linear-gradient(90deg, var(--game-accent-deep), var(--game-accent));
  border: none;
  color: #fff;
  animation: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--game-accent) 40%, transparent);
}

.hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__cta i {
  color: #fff;
}

.hero-featured-card[class*="hero-featured-card--game-"]:hover .hero-featured-card__cta:not(.hero-featured-card__cta--disabled) {
  box-shadow: 0 6px 20px color-mix(in srgb, var(--game-accent) 50%, transparent);
}

.hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__media::after {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--game-accent-deep) 88%, #000) 0%,
    transparent 58%
  );
}

/* ── Per-game palettes (dark theme default) ── */
/* Use .competition-card.competition-card--game-* so vars beat the generic
   [class*="competition-card--game-"] shell (higher/equal specificity + later). */

.competition-card.competition-card--game-godig,
.hero-featured-card.hero-featured-card--game-godig {
  --game-accent: #fbbf24;
  --game-accent-deep: #b45309;
  --game-border: rgba(251, 191, 36, 0.48);
  --game-glow: rgba(180, 83, 9, 0.38);
  --game-surface: linear-gradient(165deg, rgba(180, 83, 9, 0.72) 0%, rgba(68, 36, 8, 0.92) 38%, rgba(36, 26, 14, 1) 100%);
  --game-info-surface: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(251, 191, 36, 0.04) 100%);
  --game-title: #fde68a;
  --game-tagline: #fcd34d;
  --game-tagline-bg: rgba(251, 191, 36, 0.18);
  --game-price: #fef3c7;
  --game-progress: #f59e0b;
}

.competition-card.competition-card--game-gopop,
.hero-featured-card.hero-featured-card--game-gopop {
  --game-accent: #f472b6;
  --game-accent-deep: #be185d;
  --game-border: rgba(244, 114, 182, 0.5);
  --game-glow: rgba(190, 24, 93, 0.38);
  --game-surface: linear-gradient(165deg, rgba(190, 24, 93, 0.68) 0%, rgba(76, 20, 48, 0.92) 38%, rgba(34, 16, 26, 1) 100%);
  --game-info-surface: linear-gradient(180deg, rgba(244, 114, 182, 0.16) 0%, rgba(244, 114, 182, 0.04) 100%);
  --game-title: #fbcfe8;
  --game-tagline: #f9a8d4;
  --game-tagline-bg: rgba(244, 114, 182, 0.2);
  --game-price: #fce7f3;
  --game-progress: #ec4899;
}

.competition-card.competition-card--game-gocollect,
.hero-featured-card.hero-featured-card--game-gocollect {
  --game-accent: #a78bfa;
  --game-accent-deep: #6d28d9;
  --game-border: rgba(167, 139, 250, 0.5);
  --game-glow: rgba(109, 40, 217, 0.4);
  --game-surface: linear-gradient(165deg, rgba(109, 40, 217, 0.68) 0%, rgba(49, 24, 96, 0.92) 38%, rgba(24, 16, 40, 1) 100%);
  --game-info-surface: linear-gradient(180deg, rgba(167, 139, 250, 0.16) 0%, rgba(167, 139, 250, 0.04) 100%);
  --game-title: #ddd6fe;
  --game-tagline: #c4b5fd;
  --game-tagline-bg: rgba(167, 139, 250, 0.2);
  --game-price: #ede9fe;
  --game-progress: #8b5cf6;
}

.competition-card.competition-card--game-gorace,
.hero-featured-card.hero-featured-card--game-gorace {
  --game-accent: #34d399;
  --game-accent-deep: #047857;
  --game-border: rgba(52, 211, 153, 0.5);
  --game-glow: rgba(4, 120, 87, 0.4);
  --game-surface: linear-gradient(165deg, rgba(4, 120, 87, 0.7) 0%, rgba(10, 56, 44, 0.92) 38%, rgba(12, 24, 20, 1) 100%);
  --game-info-surface: linear-gradient(180deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.04) 100%);
  --game-title: #a7f3d0;
  --game-tagline: #6ee7b7;
  --game-tagline-bg: rgba(52, 211, 153, 0.18);
  --game-price: #d1fae5;
  --game-progress: #10b981;
}

/* ── Dark theme: beat global .competition-card / .glass-card overrides ── */

.dark-theme .competition-card[class*="competition-card--game-"],
html.dark-theme .competition-card[class*="competition-card--game-"],
.dark-theme .hero-featured-card[class*="hero-featured-card--game-"],
html.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] {
  background-color: transparent !important;
  background-image: var(--game-surface) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border-color: var(--game-border) !important;
  color: var(--game-title);
}

.dark-theme .competition-card.glass-card[class*="competition-card--game-"],
html.dark-theme .competition-card.glass-card[class*="competition-card--game-"] {
  background-color: transparent !important;
  background-image: var(--game-surface) !important;
}

.dark-theme .competition-card[class*="competition-card--game-"]::before,
.dark-theme .competition-card[class*="competition-card--game-"]:hover::before,
.dark-theme .competition-card[class*="competition-card--game-"].touch-active::before,
html.dark-theme .competition-card[class*="competition-card--game-"]::before,
html.dark-theme .competition-card[class*="competition-card--game-"]:hover::before,
html.dark-theme .competition-card[class*="competition-card--game-"].touch-active::before {
  display: block !important;
  content: "" !important;
}

.dark-theme .competition-card[class*="competition-card--game-"]:hover,
.dark-theme .competition-card[class*="competition-card--game-"].touch-active,
html.dark-theme .competition-card[class*="competition-card--game-"]:hover,
html.dark-theme .competition-card[class*="competition-card--game-"].touch-active {
  background-color: transparent !important;
  background-image: var(--game-surface) !important;
  border-color: var(--game-border) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 40px var(--game-glow),
    0 0 28px color-mix(in srgb, var(--game-accent) 28%, transparent) !important;
  transform: translateY(-2px);
  animation: none;
}

.dark-theme .competition-card.glass-card[class*="competition-card--game-"]:hover,
html.dark-theme .competition-card.glass-card[class*="competition-card--game-"]:hover {
  background-color: transparent !important;
  background-image: var(--game-surface) !important;
}

.dark-theme .competition-card[class*="competition-card--game-"] .competition-title,
.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price,
.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price .price-text,
.dark-theme .competition-card[class*="competition-card--game-"] .discounted-price,
.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value,
html.dark-theme .competition-card[class*="competition-card--game-"] .competition-title,
html.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price,
html.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price .price-text,
html.dark-theme .competition-card[class*="competition-card--game-"] .discounted-price,
html.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value {
  color: var(--game-price);
  -webkit-text-fill-color: var(--game-price);
}

.dark-theme .competition-card[class*="competition-card--game-"] .competition-title,
.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value,
html.dark-theme .competition-card[class*="competition-card--game-"] .competition-title,
html.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value {
  color: var(--game-title);
  -webkit-text-fill-color: var(--game-title);
}

.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price .per-ticket,
.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-label,
.dark-theme .competition-card[class*="competition-card--game-"] .percentage-sold-overlay,
html.dark-theme .competition-card[class*="competition-card--game-"] .ticket-price .per-ticket,
html.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-label,
html.dark-theme .competition-card[class*="competition-card--game-"] .percentage-sold-overlay {
  color: color-mix(in srgb, var(--game-tagline) 88%, #ffffff);
  opacity: 1;
}

.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-unit:not(:last-child)::after,
html.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-unit:not(:last-child)::after {
  color: var(--game-accent);
}

.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer,
html.dark-theme .competition-card[class*="competition-card--game-"] .countdown-timer {
  background-color: color-mix(in srgb, var(--game-accent-deep) 22%, rgba(10, 10, 12, 0.92));
  border-color: color-mix(in srgb, var(--game-accent) 30%, transparent);
}

.dark-theme .competition-card[class*="competition-card--game-"] .progress,
html.dark-theme .competition-card[class*="competition-card--game-"] .progress {
  background-color: color-mix(in srgb, var(--game-accent-deep) 35%, rgba(255, 255, 255, 0.08));
}

.dark-theme .competition-card[class*="competition-card--game-"] .original-price,
html.dark-theme .competition-card[class*="competition-card--game-"] .original-price {
  color: color-mix(in srgb, var(--game-tagline) 55%, #9ca3af) !important;
}

.dark-theme .hero-featured-card[class*="hero-featured-card--game-"],
html.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] {
  background: var(--game-surface) !important;
  --hero-card-fill: transparent;
}

.dark-theme .hero-featured-card[class*="hero-featured-card--game-"]:hover:not(.is-sold-out),
html.dark-theme .hero-featured-card[class*="hero-featured-card--game-"]:hover:not(.is-sold-out) {
  background: var(--game-surface) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 40px var(--game-glow),
    0 0 28px color-mix(in srgb, var(--game-accent) 28%, transparent) !important;
}

.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__title,
html.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] .hero-featured-card__title {
  color: var(--game-title);
}

.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] .mini-game-tagline,
html.dark-theme .hero-featured-card[class*="hero-featured-card--game-"] .mini-game-tagline {
  color: var(--game-tagline);
  background: var(--game-tagline-bg);
  border-color: color-mix(in srgb, var(--game-accent) 28%, transparent);
}

/* ── Light theme variants ── */

.light-theme .competition-card[class*="competition-card--game-"]:hover,
.light-theme .competition-card[class*="competition-card--game-"].touch-active,
html.light-theme .competition-card[class*="competition-card--game-"]:hover,
html.light-theme .competition-card[class*="competition-card--game-"].touch-active {
  background: var(--game-surface) !important;
  border-color: var(--game-border) !important;
}

.light-theme .competition-card.glass-card[class*="competition-card--game-"]:hover,
html.light-theme .competition-card.glass-card[class*="competition-card--game-"]:hover {
  background: var(--game-surface) !important;
}

.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer,
html.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer {
  background-color: color-mix(in srgb, var(--game-accent) 14%, #ffffff);
  border-color: color-mix(in srgb, var(--game-accent) 24%, transparent);
}

.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value,
html.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-value {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--game-title) !important;
  -webkit-text-fill-color: var(--game-title) !important;
}

.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-label,
html.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-label {
  color: color-mix(in srgb, var(--game-tagline) 78%, #374151) !important;
  opacity: 1;
}

.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-unit:not(:last-child)::after,
html.light-theme .competition-card[class*="competition-card--game-"] .countdown-timer .time-unit:not(:last-child)::after {
  color: var(--game-accent) !important;
}

.light-theme .competition-card[class*="competition-card--game-"],
.light-theme .hero-featured-card[class*="hero-featured-card--game-"] {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 10px 28px var(--game-glow);
}

.light-theme .competition-card.competition-card--game-godig,
.light-theme .hero-featured-card.hero-featured-card--game-godig {
  --game-surface: linear-gradient(165deg, #fff7ed 0%, #ffedd5 52%, #fef3c7 100%);
  --game-info-surface: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
  --game-title: #92400e;
  --game-tagline: #b45309;
  --game-tagline-bg: rgba(251, 191, 36, 0.22);
  --game-price: #78350f;
}

.light-theme .competition-card.competition-card--game-gopop,
.light-theme .hero-featured-card.hero-featured-card--game-gopop {
  --game-surface: linear-gradient(165deg, #fdf2f8 0%, #fce7f3 52%, #fbcfe8 100%);
  --game-info-surface: linear-gradient(180deg, rgba(244, 114, 182, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
  --game-title: #9d174d;
  --game-tagline: #be185d;
  --game-tagline-bg: rgba(244, 114, 182, 0.18);
  --game-price: #831843;
}

.light-theme .competition-card.competition-card--game-gocollect,
.light-theme .hero-featured-card.hero-featured-card--game-gocollect {
  --game-surface: linear-gradient(165deg, #f5f3ff 0%, #ede9fe 52%, #ddd6fe 100%);
  --game-info-surface: linear-gradient(180deg, rgba(167, 139, 250, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
  --game-title: #5b21b6;
  --game-tagline: #6d28d9;
  --game-tagline-bg: rgba(167, 139, 250, 0.2);
  --game-price: #4c1d95;
}

.light-theme .competition-card.competition-card--game-gorace,
.light-theme .hero-featured-card.hero-featured-card--game-gorace {
  --game-surface: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 52%, #a7f3d0 100%);
  --game-info-surface: linear-gradient(180deg, rgba(52, 211, 153, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
  --game-title: #065f46;
  --game-tagline: #047857;
  --game-tagline-bg: rgba(52, 211, 153, 0.2);
  --game-price: #064e3b;
}

/* ── Badge pill ── */

.mini-game-card-banner {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.mini-game-card-banner__icon {
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.mini-game-card-banner__text {
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.mini-game-card-banner--godig {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
}

.mini-game-card-banner--gopop {
  background: linear-gradient(135deg, #f472b6 0%, #be185d 100%);
}

.mini-game-card-banner--gocollect {
  background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
}

.mini-game-card-banner--gorace {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
}

/* ── Tagline chip under title ── */

.mini-game-tagline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--game-tagline, rgba(255, 255, 255, 0.86));
  background: var(--game-tagline-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid color-mix(in srgb, var(--game-accent, #fff) 28%, transparent);
}

.competition-card[class*="competition-card--game-"] .mini-game-tagline {
  color: var(--game-tagline);
  background: var(--game-tagline-bg);
}

/* ── Layout tweaks ── */

.competition-card[class*="competition-card--game-"] .ticket-price {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  text-align: center;
}

.competition-card[class*="competition-card--game-"] .competition-title {
  text-align: center;
  width: 100%;
}

.competition-card[class*="competition-card--game-"] .mini-game-tagline {
  margin-left: auto;
  margin-right: auto;
}

.competition-image a:has(.mini-game-card-banner) .recently-listed-banner {
  top: 8px;
  right: 8px;
  left: auto;
}

.competition-image a:has(.mini-game-card-banner):has(.ending-today-banner) .recently-listed-banner {
  top: 42px;
}

.competition-image a:has(.recently-listed-banner) .competition-user-entries {
  top: 42px;
}

/* Themed entry badge on mini-game cards */
.competition-card[class*="competition-card--game-"] .competition-user-entries__icon {
  color: var(--game-accent);
}

.competition-card[class*="competition-card--game-"] .competition-user-entries-inner {
  border-color: color-mix(in srgb, var(--game-accent) 32%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 0 12px color-mix(in srgb, var(--game-accent) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.competition-card[class*="competition-card--game-"] .competition-user-entries-inner--active {
  border-color: color-mix(in srgb, var(--game-accent) 48%, rgba(255, 255, 255, 0.2));
}

.competition-card[class*="competition-card--game-"] .competition-user-entries-inner--active .competition-user-entries__count {
  background: linear-gradient(135deg, var(--game-accent-deep) 0%, var(--game-accent) 100%);
  box-shadow: 0 1px 6px color-mix(in srgb, var(--game-accent) 40%, transparent);
}

.hero-featured-card__media .mini-game-card-banner {
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
}

/* Status (Recently Listed, etc.) shares top-right — sit below game badge */
.hero-featured-card__media:has(.mini-game-card-banner) .hero-featured-card__status {
  top: 48px;
}

/* Hero: use game border instead of default gold when themed */
.hero-featured-card[class*="hero-featured-card--game-"] {
  border-color: var(--game-border);
}

@media (max-width: 767.98px) {
  .mini-game-card-banner {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    padding: 0.28rem 0.58rem;
  }

  .hero-featured-card__media .mini-game-card-banner {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
  }

  .hero-featured-card__media:has(.mini-game-card-banner) .hero-featured-card__status {
    top: 42px;
  }

  .competition-image a:has(.mini-game-card-banner) .recently-listed-banner {
    top: 6px;
    right: 6px;
    left: auto;
  }

  .competition-image a:has(.mini-game-card-banner):has(.ending-today-banner) .recently-listed-banner {
    top: 38px;
  }

  .competition-image a:has(.recently-listed-banner) .competition-user-entries {
    top: 38px;
  }

  .mini-game-tagline {
    font-size: 0.7rem;
    margin-bottom: 0.55rem;
  }

  .competition-card[class*="competition-card--game-"] .mini-game-tagline {
    font-size: 0.62rem;
    padding: 0.16rem 0.38rem;
    line-height: 1.15;
    margin-bottom: 0.45rem;
    letter-spacing: -0.015em;
    white-space: nowrap;
  }
}

/* 2-column homepage/competitions grid — narrow cards need a tighter chip */
@media (max-width: 991.98px) {
  .homepage-mobile-grid.grid-2-mobile .competition-card[class*="competition-card--game-"] .mini-game-tagline {
    font-size: 0.54rem;
    padding: 0.14rem 0.3rem;
    letter-spacing: -0.03em;
  }
}
