/* Kolabtopup package picker (every game): storefront/game/_package-group + _package-card.
   Loaded last. Tokens: primary #FF2D91, hover #E91E80, light #FF80BC, background #FFF8FC, surface #FFFFFF,
   selected #FFF0F7, border #FFD6E7, text #2C1826, muted #806A79. */
.kl-pkg-group + .kl-pkg-group { margin-top: 22px; }

/* centred category pill between two thin lines */
.kl-pkg-divider {
  display: flex !important; align-items: center; gap: 12px; margin: 2px 0 14px !important; padding: 0 !important;
  font-size: 13px !important; font-weight: 800 !important; line-height: 1.2; color: #FF2D91 !important; text-align: center;
}
.kl-pkg-divider::before, .kl-pkg-divider::after { content: ""; flex: 1; height: 1px; background: #FFD6E7; }
.kl-pkg-divider > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: #FFF0F7; border: 1px solid #FFC6DF; color: #E91E80; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis;
}
.kl-pkg-divider .bi { font-size: 13px; color: #FF2D91; }

/* grid: 2 columns on phones, 4 on tablets, up to 5 on desktop */
.kl-pkg-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
@media (min-width: 768px) { .kl-pkg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px !important; } }
@media (min-width: 1024px) { .kl-pkg-grid { gap: 16px !important; } }

/* card */
html.kl-site body[data-page="game.show"] .kl-pkg,
.kl-pkg {
  position: relative; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important;
  gap: 8px !important; min-height: 145px !important; padding: 12px 8px 10px !important; margin: 0;
  border-radius: 14px !important; border: 1px solid #FFD6E7 !important; background: #FFFFFF !important; color: #2C1826;
  text-align: center !important; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(255, 45, 145, .05) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease !important;
}
@media (min-width: 1024px) {
  html.kl-site body[data-page="game.show"] .kl-pkg, .kl-pkg { min-height: 156px !important; padding: 12px !important; border-radius: 16px !important; }
}
@media (max-width: 359.98px) {
  html.kl-site body[data-page="game.show"] .kl-pkg, .kl-pkg { padding: 10px 6px 8px !important; gap: 6px !important; }
}
.kl-pkg-media {
  order: 0 !important; display: grid !important; place-items: center; flex: none;
  width: 56px !important; height: 56px !important; border-radius: 14px !important; background: #FFF0F7 !important;
}
.kl-pkg-media img { width: 42px !important; height: 42px !important; object-fit: contain; display: block; }
@media (min-width: 1024px) {
  .kl-pkg-media { width: 64px !important; height: 64px !important; border-radius: 16px !important; }
  .kl-pkg-media img { width: 48px !important; height: 48px !important; }
}
.kl-pkg-text { display: flex !important; flex: 1 !important; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; text-align: center !important; }
.kl-pkg-name {
  margin: 0 !important; width: 100%; font-size: 12px !important; font-weight: 600 !important; line-height: 1.3 !important; color: #2C1826 !important;
  text-align: center !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
@media (min-width: 1024px) { .kl-pkg-name { font-size: 12.5px !important; } }
.kl-pkg-price {
  display: flex !important; align-items: center; justify-content: center !important; gap: 4px; flex-wrap: wrap;
  width: 100%; min-height: 30px; margin: 0 !important; padding: 4px 6px !important; border-radius: 10px;
  background: #FFF0F7 !important; border: 1px solid #FFD6E7 !important; color: #E91E80 !important;
  font-size: 13px !important; font-weight: 800 !important; line-height: 1.1; white-space: nowrap;
}
@media (min-width: 1024px) { .kl-pkg-price { font-size: 14px !important; } }
.kl-pkg-price .price-strikethrough { font-size: 10.5px; color: #806A79; text-decoration: line-through; font-weight: 600; }
.kl-pkg-tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #FF2D91, #FF80BC); color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.kl-pkg .aj-pick { display: none !important; }
.kl-pkg-check {
  position: absolute; top: -8px; right: -8px; z-index: 4; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px;
  background: #FF2D91; color: #fff; font-size: 13px; box-shadow: 0 4px 10px -3px rgba(255, 45, 145, .7);
  opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none;
}
.kl-pkg-check .bi { -webkit-text-stroke: .8px currentColor; }
html.kl-site body[data-page="game.show"] button.kl-pkg.selected::after { content: none !important; display: none !important; }

/* hover / press / focus */
@media (hover: hover) {
  html.kl-site body[data-page="game.show"] button.kl-pkg:not(.selected):hover {
    transform: translateY(-3px); border-color: #FFC6DF !important; box-shadow: 0 10px 22px -14px rgba(255, 45, 145, .5) !important; background: #FFFFFF !important;
  }
}
html.kl-site body[data-page="game.show"] button.kl-pkg:active { transform: scale(.97); }
html.kl-site body[data-page="game.show"] button.kl-pkg:focus-visible { outline: 3px solid #FF80BC !important; outline-offset: 2px; }

/* selected: bright pink border, pale pink background, check mark, slight scale */
html.kl-site:not([data-theme="dark"]) body[data-page="game.show"] button.kl-pkg.selected {
  background: #FFF0F7 !important; border: 2px solid #FF2D91 !important; transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(255, 45, 145, .12), 0 10px 22px -14px rgba(255, 45, 145, .6) !important;
}
html.kl-site body[data-page="game.show"] button.kl-pkg.selected .kl-pkg-check { opacity: 1; transform: scale(1); }
html.kl-site body[data-page="game.show"] button.kl-pkg.selected .kl-pkg-price { background: linear-gradient(135deg, #FF2D91, #FF80BC) !important; border-color: transparent !important; color: #fff !important; }
html.kl-site body[data-page="game.show"] button.kl-pkg.selected .kl-pkg-price .price-strikethrough { color: rgba(255, 255, 255, .75); }

.kl-pkg.is-soon { cursor: not-allowed; opacity: .6; border-style: dashed !important; }
.kl-pkg.is-soon .kl-pkg-tag { background: #806A79; }

@media (prefers-reduced-motion: reduce) {
  .kl-pkg, .kl-pkg-check { transition: none !important; }
  html.kl-site body[data-page="game.show"] button.kl-pkg.selected { transform: none; }
}
