/* Kolabtopup v3 (23 Nov 2026): Delyka-style layout with Kolabtopup branding.
   Loaded after kolab-theme.css. Brand tokens from the owner's spec. */
:root,
html[data-theme],
html[data-theme="light"] {
  --primary: #FF2D91;
  --primary-hover: #E91E80;
  --primary-light: #FF80BC;
  --primary-pastel: #FFC6DF;
  --background: #FFF8FC;
  --surface: #FFFFFF;
  --surface-soft: #FFF0F7;
  --text-primary: #2C1826;
  --text-secondary: #806A79;
  --border: #F6DCE8;
  --shadow-pink: rgba(255, 45, 145, .12);
  --kl-pink: #FF2D91;
  --kl-pink-dark: #E91E80;
  --kl-pink-text: #C8146F;          /* pink for small text on white (contrast) */
  --kl-pink-light: #FF80BC;
  --kl-pink-soft: #FFF0F7;
  --kl-line: #F6DCE8;
  --kl-line-strong: #FFC6DF;
  --ds-primary: #FF2D91;
  --ds-primary-hover: #E91E80;
  --ds-primary-soft: #FFF0F7;
  --ds-primary-border: #FFC6DF;
  --ds-bg-subtle: #FFF8FC;
  --ds-border: #F6DCE8;
  --ds-text: #2C1826;
  --ds-text-muted: #806A79;
  --ds-link: #C8146F;
  --ds-link-strong: #C8146F;
  --kl-hdr-h: 66px;
}
html.kl-site, html.kl-site[data-theme] { background: #FFF8FC !important; }
body { color: #2C1826; }
.kl-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .kl-wrap { padding-inline: 24px; } }

/* page entrance */
@media (prefers-reduced-motion: no-preference) {
  main#main-content > * { animation: kl-fade-in .45s ease-out both; }
}
@keyframes kl-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────────── Header ───────────── */
.ds-site-nav {
  background: #FFFCFE !important;
  border-bottom: 1px solid #F6DCE8 !important;
  box-shadow: 0 5px 22px rgba(255, 75, 155, .13) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: box-shadow .25s ease;
}
body.navbar-sticky-active .ds-site-nav { box-shadow: 0 8px 28px rgba(255, 75, 155, .2) !important; }
.ds-site-nav::after {                         /* thin animated highlight under the header */
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #FFC6DF 20%, #FF80BC 50%, #FFC6DF 80%, transparent 100%);
  background-size: 200% 100%; opacity: .7; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ds-site-nav::after { animation: kl-hdr-line 6s linear infinite; }
}
@keyframes kl-hdr-line { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* phones/tablets: [menu] [logo centred] [search]; the grid keeps the logo truly centred */
.kl-hdr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--kl-hdr-h);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px !important;
}
.kl-hdr-left { grid-column: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.kl-hdr-center { grid-column: 2; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.kl-hdr-left .kl-hdr-brand { display: none; }
.kl-hdr-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
/* desktop: [menu + logo] ... [search + login], like the reference */
@media (min-width: 1024px) {
  .kl-hdr { padding-inline: 24px !important; }
  .kl-hdr-left .kl-hdr-brand { display: flex; }
  .kl-hdr-center { visibility: hidden; pointer-events: none; }
}

/* hamburger (3 lines → X while the drawer is open) */
.kl-hdr-menu {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px;
  border: 0; border-radius: 12px; background: transparent; color: #3A2A35; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease;
}
.kl-hdr-menu:hover { background: #FFF0F7; }
.kl-hdr-menu:focus-visible { outline: 2px solid #FF80BC; outline-offset: 2px; }
.kl-burger { position: relative; display: block; width: 22px; height: 16px; }
.kl-burger span { position: absolute; left: 0; width: 100%; height: 2.2px; border-radius: 2px; background: currentColor; transition: transform .28s ease, opacity .2s ease, top .28s ease; }
.kl-burger span:nth-child(1) { top: 0; }
.kl-burger span:nth-child(2) { top: 7px; }
.kl-burger span:nth-child(3) { top: 14px; }
.kl-hdr-menu[aria-expanded="true"] .kl-burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.kl-hdr-menu[aria-expanded="true"] .kl-burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.kl-hdr-menu[aria-expanded="true"] .kl-burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.kl-hdr-search {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid #FFB6D5; background: transparent; color: #FF2D91; font-size: 17px; text-decoration: none;
  transition: background-color .2s;
}
.kl-hdr-search:hover { background: #FFF0F7; }
.kl-hdr-login {
  display: none; align-items: center; height: 40px; padding: 0 22px; border-radius: 999px;
  background: linear-gradient(135deg, #FF2D91, #FF80BC); color: #fff !important; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px -8px rgba(255, 45, 145, .8); transition: transform .2s, box-shadow .2s;
}
.kl-hdr-login:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(255, 45, 145, .4); }
.kl-hdr-account { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid #F6DCE8; color: #2C1826; font-size: 14px; font-weight: 600; }
.kl-hdr-account img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
@media (min-width: 1024px) { .kl-hdr-login, .kl-hdr-account { display: inline-flex; } }

/* ───────────── Brand: mascot + bubble wordmark ───────────── */
.kl-brand { display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.kl-brand-mark { position: relative; display: block; flex: none; width: 48px; height: 42px; }
.kl-brand-mascot { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(255, 45, 145, .22)); }
.kl-brand-name {
  position: relative; display: inline-block; font-family: "Fredoka", "Inter", system-ui, sans-serif;
  font-weight: 700; font-size: 25px; letter-spacing: .01em; white-space: nowrap; padding: 2px 3px 4px;
  transition: transform .25s ease, filter .25s ease;
}
.kl-brand-name::before {                      /* white body + light rose outline behind the letters */
  content: attr(data-text); position: absolute; left: 3px; top: 2px; color: #fff; z-index: 0;
  -webkit-text-stroke: 5px #FFD3E7; paint-order: stroke fill;
  filter: drop-shadow(0 2px 0 #FFB0D2) drop-shadow(0 3px 6px rgba(255, 45, 145, .18));
}
.kl-brand-fill {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #FFB1D4 0%, #FF85BF 40%, #FF4FA3 78%, #FF2D91 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kl-brand-name::after {                       /* glossy highlight on the upper half */
  content: attr(data-text); position: absolute; left: 3px; top: 2px; z-index: 2; color: transparent; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .2) 40%, transparent 42%);
  -webkit-background-clip: text; background-clip: text;
}
a:hover .kl-brand-name, a:focus-visible .kl-brand-name { transform: scale(1.03); filter: drop-shadow(0 0 8px rgba(255, 45, 145, .35)); }
@media (max-width: 359.98px) { .kl-brand-name { font-size: 21px; } .kl-brand-mark { width: 42px; height: 37px; } }
@media (min-width: 1024px) { .kl-brand-name { font-size: 27px; } .kl-brand-mark { width: 52px; height: 46px; } }
@media (prefers-reduced-motion: no-preference) {
  .kl-hdr .kl-brand-mark { animation: kl-in-fade .45s ease-out both, kl-float 3s ease-in-out .5s infinite alternate; }
  .kl-hdr .kl-brand-name { animation: kl-in-rise .5s ease-out .08s both; }
}
@keyframes kl-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kl-in-rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes kl-float { from { transform: translateY(1.5px); } to { transform: translateY(-1.5px); } }
.ds-drawer-brand .kl-brand-name, .au-brand .kl-brand-name { font-size: 22px; }

/* ───────────── Drawer ───────────── */
.ds-drawer { border-radius: 0 20px 20px 0; }
.ds-drawer-link { border-radius: 14px !important; font-weight: 600 !important; }
.ds-drawer-link.is-active { background: #FFF0F7 !important; color: #C8146F !important; }
.ds-drawer-link.is-active > .bi { color: #FF2D91 !important; }
.ds-drawer-anim { transition-duration: .27s !important; }
@media (prefers-reduced-motion: no-preference) {
  .ds-drawer-in .ds-drawer-link { animation: kl-drawer-item .32s ease-out both; }
  .ds-drawer-in .ds-drawer-link:nth-child(2) { animation-delay: .03s; }
  .ds-drawer-in .ds-drawer-link:nth-child(3) { animation-delay: .06s; }
  .ds-drawer-in .ds-drawer-link:nth-child(4) { animation-delay: .09s; }
  .ds-drawer-in .ds-drawer-link:nth-child(5) { animation-delay: .12s; }
  .ds-drawer-in .ds-drawer-link:nth-child(n+6) { animation-delay: .15s; }
}
@keyframes kl-drawer-item { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ───────────── Announcement (marquee) ───────────── */
.kl-announce { overflow: hidden; background: linear-gradient(90deg, #FF2D91, #FF80BC); color: #fff; }
.kl-marquee { display: flex; width: max-content; min-height: 34px; align-items: center; }
.kl-marquee-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 32px; white-space: nowrap; color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .kl-marquee.is-moving { animation: kl-marquee var(--kl-marquee-s, 24s) linear infinite; }
  .kl-announce:hover .kl-marquee.is-moving, .kl-announce:focus-within .kl-marquee.is-moving { animation-play-state: paused; }
}
@keyframes kl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
main.kl-main { padding-top: var(--kl-hdr-h) !important; }
body.kl-has-announce main.kl-main { padding-top: calc(var(--kl-hdr-h) + 34px) !important; }

/* ───────────── Home ───────────── */
.kl-home { padding-top: 16px; padding-bottom: 32px; }
@media (min-width: 768px) { .kl-home { padding-top: 24px; } }
.kl-hero {
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1600 / 500;
  background: linear-gradient(135deg, #FFE3F0, #FFF0F7); box-shadow: 0 16px 36px -26px rgba(255, 45, 145, .55);
}
@media (min-width: 768px) { .kl-hero { border-radius: 24px; } }
.kl-hero .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kl-hero-link { display: block; height: 100%; }
.kl-hero-dots { position: absolute; left: 0 !important; right: 0; bottom: 10px !important; z-index: 5; display: flex; justify-content: center; gap: 6px; }
.kl-hero-dots .swiper-pagination-bullet { width: 7px !important; height: 7px; margin: 0 !important; background: rgba(255, 255, 255, .8) !important; opacity: 1 !important; transition: width .3s ease, background-color .3s ease; }
.kl-hero-dots .swiper-pagination-bullet-active { width: 22px !important; border-radius: 4px !important; background: #FF2D91 !important; }

.kl-section { margin-top: 28px; }
@media (min-width: 768px) { .kl-section { margin-top: 40px; } }
.kl-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kl-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 8px; font-size: 17px; font-weight: 800; letter-spacing: .01em; color: #2C1826; }
.kl-title::after { width: 28px !important; height: 2.5px !important; left: 44px !important; background: linear-gradient(90deg, #FF2D91, #FFC6DF) !important; }
.kl-title-lg { font-size: 19px; font-weight: 900; padding-bottom: 0; }
.kl-title-lg::after { display: none !important; }
.kl-title-lg > .kl-title-star { display: inline !important; width: auto !important; height: auto !important; background: none !important; color: #FF2D91 !important; font-size: 20px !important; }
.kl-title-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #FFF0F7; color: #FF2D91; font-size: 16px; }
@media (min-width: 768px) { .kl-title { font-size: 19px; } .kl-title-lg { font-size: 22px; } }

/* events / popular items */
/* arrows: top-right of the heading, 38px circles, white with a light pink border */
.kl-ev-nav { display: flex; gap: 8px; flex: none; }
.kl-ev-nav button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid #FFC6DF;
  background: #FFFFFF; color: #FF2D91; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(255, 45, 145, .12);
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, opacity .2s;
}
.kl-ev-nav button .bi { font-size: 18px; line-height: 1; -webkit-text-stroke: .6px currentColor; }
.kl-ev-nav button:hover { background: #FF2D91; border-color: #FF2D91; color: #fff; }
.kl-ev-nav button:active { transform: scale(.92); }
.kl-ev-nav button:focus-visible { outline: 2px solid #FF80BC; outline-offset: 2px; }
.kl-ev-nav button.swiper-button-disabled { opacity: .35; cursor: default; background: #fff; color: #FF2D91; border-color: #F6DCE8; }
.kl-ev-nav button.kl-nav-locked { display: none; }
/* the track: Swiper sets each card's width from slidesPerView (kolab-carousels.js); slides stretch to equal height */
.kl-ev-swiper { overflow: hidden; padding: 4px 2px 10px; margin: -4px -2px 0; touch-action: pan-y; }
.kl-ev-swiper:focus-visible { outline: 2px solid #FF80BC; outline-offset: 4px; border-radius: 18px; }
.kl-ev-swiper .swiper-wrapper { align-items: stretch; }
.kl-ev-swiper .swiper-slide { height: auto; }
.kl-ev-swiper.swiper-initialized .kl-ev-card { user-select: none; -webkit-user-drag: none; }
.kl-ev-swiper .kl-ev-card img { -webkit-user-drag: none; pointer-events: none; }
.kl-ev-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 118px;
  padding: 14px 14px 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #FFD3E6;
  text-decoration: none; color: #2C1826; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.kl-ev-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(255, 45, 145, .45); background: #FFFAFD; }
.kl-ev-card:active { transform: scale(.98); }
.kl-ev-card-img { padding: 0; overflow: hidden; }
.kl-ev-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kl-ev-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.kl-ev-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.kl-ev-game { font-size: 12px; color: #806A79; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-ev-price { padding: 2px 10px; border-radius: 999px; border: 1px solid #FFC6DF; background: #FFF0F7; color: #C8146F; font-size: 12px; font-weight: 800; }
.kl-ev-buy { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #FF2D91, #FF80BC); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .03em; box-shadow: 0 4px 10px -4px rgba(255, 45, 145, .6); }
.kl-ev-img { flex: none; width: 76px; height: 76px; border-radius: 999px; overflow: hidden; background: #FFF0F7; box-shadow: 0 8px 18px -8px rgba(44, 24, 38, .45); }
.kl-ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kl-ev-card:hover .kl-ev-img img { transform: scale(1.08); }

/* game grid: 3 (phone) / 4 (tablet) / 5 (desktop), like the reference */
.kl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
@media (min-width: 768px) { .kl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; } }
@media (min-width: 1024px) { .kl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 18px !important; } }
.kl-card { border-radius: 16px !important; border: 1px solid #F6DCE8 !important; background: #fff !important; box-shadow: 0 1px 3px rgba(255, 45, 145, .05) !important; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important; }
.kl-card-media {
  border-radius: 15px 15px 0 0; aspect-ratio: 1 / 1;
  background: linear-gradient(100deg, #FFF0F7 30%, #FFE3F0 50%, #FFF0F7 70%) !important; background-size: 220% 100% !important;
}
@media (prefers-reduced-motion: no-preference) { .kl-card-media { animation: kl-skeleton 1.4s ease-in-out infinite; } }
@keyframes kl-skeleton { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.kl-card-body { align-items: flex-start !important; text-align: left !important; gap: 6px !important; padding: 9px 10px 11px !important; }
.kl-card-name { font-size: 12.5px !important; font-weight: 800 !important; min-height: 0 !important; -webkit-line-clamp: 1 !important; color: #2C1826 !important; }
.kl-pill { padding: 3px 10px !important; border-radius: 8px !important; font-size: 10.5px !important; font-weight: 800 !important; background: linear-gradient(135deg, #FF2D91, #FF80BC) !important; box-shadow: 0 3px 8px -3px rgba(255, 45, 145, .55) !important; }
@media (min-width: 768px) { .kl-card-name { font-size: 14px !important; } .kl-card-body { padding: 11px 12px 13px !important; } .kl-pill { font-size: 11.5px !important; padding: 4px 12px !important; } }
@media (hover: hover) {
  a.kl-card:hover { transform: translateY(-4px) !important; border-color: #FFC6DF !important; box-shadow: 0 12px 26px -16px rgba(255, 45, 145, .55) !important; }
  a.kl-card:hover .kl-card-media img { transform: scale(1.05) !important; }
}
a.kl-card:active { transform: scale(.97) !important; transition-duration: .08s !important; }
.kl-card-badge { display: none; }

/* ───────────── Footer (single row) ───────────── */
.kl-footer { margin-top: 48px !important; padding: 26px 0 calc(22px + env(safe-area-inset-bottom, 0px)) !important; background: linear-gradient(180deg, var(--background, #FFF8FC) 0%, var(--surface-soft, #FFF0F7) 100%) !important; border-top: 1px solid var(--border, #F6DCE8) !important; }
.kl-footer-row { display: grid; gap: 20px; align-items: center; text-align: center; justify-items: center; }
@media (min-width: 900px) { .kl-footer-row { grid-template-columns: 1fr auto 1fr; text-align: left; justify-items: stretch; } .kl-footer-legal { text-align: right; } }
.kl-footer-heading { margin: 0 0 10px !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important; color: #2C1826; }
.kl-footer-contact .kl-socials { justify-content: center; }
@media (min-width: 900px) { .kl-footer-contact .kl-socials { justify-content: flex-start; } }
/* "We accept" row: one soft pink pill that belongs to the footer (no separate white boxes). The ABA and KHQR marks are
   official artwork (same 28×16 rounded badge each), shown unfiltered at one height. */
.kl-footer-pay { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary, #806A79); font-size: 14px; flex-wrap: wrap; justify-content: center;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: linear-gradient(135deg, #FFF5FA 0%, #FCE7F3 100%); border: 1px solid var(--border, #F6DCE8); box-shadow: 0 6px 18px -12px var(--shadow-pink, rgba(255, 45, 145, .12)); }
.kl-footer-pay > span:first-child { line-height: 1.6; }
.kl-footer-pay .kl-pay { width: auto; height: auto; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 6px; line-height: 0; }
.kl-footer-pay .kl-pay img { display: block; width: 49px; height: 28px; max-width: none; max-height: none; border-radius: 5px; box-shadow: 0 2px 6px -3px rgba(44, 24, 38, .35); }
html[data-theme="dark"] .kl-footer-pay { color: #E9D5E3; background: linear-gradient(135deg, #140D18 0%, #211526 100%); border-color: #47243C; box-shadow: 0 0 0 1px rgba(244, 114, 182, .08), 0 8px 22px -14px rgba(244, 114, 182, .45); }
.kl-footer .kl-footer-links { margin: 0 0 6px; font-size: 13px; color: #806A79; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
@media (min-width: 900px) { .kl-footer .kl-footer-links { justify-content: flex-end; } }
.kl-footer .kl-footer-links a { color: #2C1826; text-decoration: none; font-weight: 600; font-size: 13px; }
.kl-footer .kl-footer-links a:hover { color: #C8146F; }
.kl-footer-copy { margin: 0; font-size: 12.5px; color: #806A79; }
.kl-social { width: 40px !important; height: 40px !important; background: #FFF0F7 !important; border-color: #FFC6DF !important; color: #FF2D91 !important; }
@media (max-width: 1023.98px) { body:not([data-page="game.show"]) .kl-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; } }

/* ───────────── Bottom tab bar ───────────── */
.kl-tabbar { background: #FFFFFF !important; border-top: 1px solid #F6DCE8 !important; box-shadow: 0 -6px 22px -14px rgba(255, 45, 145, .35) !important; padding-top: 4px !important; }
.kl-tab { color: #9C8A96 !important; font-weight: 600 !important; font-size: 10.5px !important; background: none !important; transition: color .2s ease; }
.kl-tab .bi { font-size: 21px !important; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.kl-tab.is-active { color: #FF2D91 !important; }
.kl-tab.is-active .bi { transform: scale(1.12); }
.kl-tab:active .bi { transform: scale(.9); }

@media (prefers-reduced-motion: reduce) {
  .kl-ev-card, .kl-card, .kl-tab .bi, .kl-brand-name, .kl-hdr-search { transition: none !important; animation: none !important; }
}

/* short announcement: no duplicate, centred */
.kl-marquee:not(.is-moving) { width: 100%; justify-content: center; }
.kl-marquee:not(.is-moving) .kl-marquee-item + .kl-marquee-item { display: none; }
@media (prefers-reduced-motion: reduce) { .kl-marquee { width: 100%; justify-content: center; } .kl-marquee-item + .kl-marquee-item { display: none; } .kl-marquee-item { white-space: normal; text-align: center; } }


/* ═════════════ Game page (reference layout) ═════════════
   Desktop: game banner + info card pinned on the left, steps 1-4 + total on the right.
   Phones: one column. Only layout/look changes; every ID and script hook is unchanged. */
body[data-page="game.show"] .min-h-screen.bg-\[var\(--bg-page\)\] { background: transparent !important; }
@media (min-width: 1024px) {
  body[data-page="game.show"] .lg\:max-w-5xl { max-width: 1240px !important; }
  body[data-page="game.show"] .aj-gp.lg\:grid-cols-12 { grid-template-columns: 380px minmax(0, 1fr) !important; column-gap: 24px !important; }
  /* block (not flex): a Swiper inside a flex column grows without limit */
  body[data-page="game.show"] .aj-gp > .lg\:col-span-4 {
    grid-column: 1 !important; grid-row: 1 / span 2 !important; display: block !important;
    width: 380px; min-width: 0; max-width: 380px; overflow: hidden;
    position: sticky; top: calc(var(--kl-hdr-h) + 20px); align-self: start;
  }
  body[data-page="game.show"] .aj-gp > .lg\:col-span-4 > * + * { margin-top: 12px !important; }
  body[data-page="game.show"] .aj-gp-main { grid-column: 2 !important; grid-row: 1 !important; }
  body[data-page="game.show"] .aj-gp-side { grid-column: 2 !important; grid-row: 2 !important; position: static !important; }
  body[data-page="game.show"] .aj-gp-side .grid.sm\:grid-cols-2 { grid-template-columns: minmax(0, 1fr) !important; }
}
/* step cards */
body[data-page="game.show"] #orderForm :is(.aj-gp-main, .aj-gp-side) > .rounded-xl {
  background: #fff !important; border: 1px solid #F6DCE8 !important; border-radius: 20px !important;
  box-shadow: 0 2px 12px -8px rgba(255, 45, 145, .25) !important;
}
body[data-page="game.show"] #orderForm :is(.aj-gp-main, .aj-gp-side) > .rounded-xl > .border-b { border-bottom: 0 !important; padding-bottom: 4px !important; }
body[data-page="game.show"] [data-marker="true"] svg { color: #FF2D91 !important; }
body[data-page="game.show"] #orderForm h3 { color: #2C1826 !important; font-weight: 800 !important; }
/* inputs like the reference: soft fill, rounded */
html.kl-site body[data-page="game.show"] #orderForm :is(input[type="text"], input[type="number"], input[type="tel"], input:not([type]), select) {
  background: #FFFAFD !important; border: 1px solid #F6DCE8 !important; border-radius: 14px !important; min-height: 48px; font-size: 15px !important;
}
/* package category label: centred pill between two lines */
body[data-page="game.show"] .aj-gp-main .space-y-4 > div > h3 {
  display: flex !important; align-items: center; gap: 10px !important; justify-content: center; margin: 4px 0 12px !important;
  font-size: 14px !important; font-weight: 800 !important; color: #E91E80 !important;
}
body[data-page="game.show"] .aj-gp-main .space-y-4 > div > h3::before,
body[data-page="game.show"] .aj-gp-main .space-y-4 > div > h3::after { content: ""; flex: 1; height: 1px; background: #F6DCE8; }
body[data-page="game.show"] .aj-gp-main .space-y-4 > div > h3 > .bi { color: #FF2D91 !important; font-size: 14px !important; }
/* package grid: 3 (phone) / 4 (tablet) / 5 (wide) */
body[data-page="game.show"] .aj-gp-main .grid[id*="Grid"], body[data-page="game.show"] .aj-gp-main .space-y-4 > div > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important;
}
@media (min-width: 640px) { body[data-page="game.show"] .aj-gp-main .space-y-4 > div > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 1280px) { body[data-page="game.show"] .aj-gp-main .space-y-4 > div > .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; } }
/* package tile: picture on top, name, price pill */
html.kl-site body[data-page="game.show"] button.product-card {
  flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important;
  padding: 14px 8px 12px !important; min-height: 0 !important; text-align: center !important;
  border-radius: 18px !important; border: 1px solid #F6DCE8 !important; background: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease !important;
}
html.kl-site body[data-page="game.show"] button.product-card > .flex-shrink-0 {
  order: -1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #FFF0F7;
}
html.kl-site body[data-page="game.show"] button.product-card > .flex-shrink-0 img { width: 40px !important; height: 40px !important; }
html.kl-site body[data-page="game.show"] button.product-card > .flex-1 { text-align: center !important; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
html.kl-site body[data-page="game.show"] button.product-card .product-name { font-size: 12.5px !important; font-weight: 600 !important; color: #2C1826 !important; text-align: center; }
html.kl-site body[data-page="game.show"] button.product-card .product-price {
  justify-content: center; width: 100%; margin: 0 !important; padding: 5px 6px; border-radius: 12px;
  background: #FFF0F7 !important; border: 1px solid #FFD3E6; color: #E91E80 !important; font-size: 13px !important; font-weight: 800 !important;
}
html.kl-site body[data-page="game.show"] button.product-card .aj-pick { display: none !important; }
@media (hover: hover) {
  html.kl-site body[data-page="game.show"] button.product-card:not(.selected):hover { transform: translateY(-3px); border-color: #FFC6DF !important; box-shadow: 0 10px 22px -14px rgba(255, 45, 145, .5) !important; background: #fff !important; }
}
html.kl-site body[data-page="game.show"] button.product-card:active { transform: scale(.97); }
html.kl-site:not([data-theme="dark"]) body[data-page="game.show"] button.product-card.selected {
  background: #FFF0F7 !important; border: 2px solid #FF2D91 !important; 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.product-card.selected .product-price { background: linear-gradient(135deg, #FF2D91, #FF80BC) !important; color: #fff !important; border-color: transparent; }
html.kl-site body[data-page="game.show"] button.product-card.selected::after {
  content: "\2713" !important; display: grid !important; place-items: center; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  border-radius: 999px; background: #FF2D91; color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 4px 10px -3px rgba(255, 45, 145, .7);
}
@media (prefers-reduced-motion: no-preference) {
  html.kl-site body[data-page="game.show"] button.product-card.selected::after { animation: kl-pop .28s cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes kl-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
/* total + pay now (reference: TOTAL AMOUNT + Pay Now pill) */
body[data-page="game.show"] #totalDisplay { color: #FF2D91 !important; font-size: 24px !important; font-weight: 900 !important; }

/* game page fixes: centred name/price, wide banner ratio in the left column */
html.kl-site body[data-page="game.show"] button.product-card .product-name { text-align: center !important; width: 100%; }
html.kl-site body[data-page="game.show"] button.product-card .product-price { justify-content: center !important; text-align: center !important; }
body[data-page="game.show"] .aj-gp > .lg\:col-span-4 .aspect-video { aspect-ratio: 1600 / 500 !important; }
body[data-page="game.show"] .aj-gp > .lg\:col-span-4 > :first-child { border-radius: 18px !important; overflow: hidden; }
body[data-page="game.show"] .aj-gp > .lg\:col-span-4 > .relative.z-10 { border-radius: 20px !important; border: 1px solid #F6DCE8 !important; background: #fff !important; box-shadow: 0 2px 12px -8px rgba(255, 45, 145, .25) !important; }

.ds-drawer-seg-btn.is-current { background: #FFF0F7 !important; color: #C8146F !important; border-color: #FF2D91 !important; }
.ds-drawer-account-icon { background: #FFF0F7 !important; color: #FF2D91 !important; }
.ds-drawer-account { border-color: #F6DCE8 !important; }

/* Game page SEO guide: on phones it was a full-bleed white strip; make it a card like the rest of the page. */
html.kl-site .seo-guide-in { width: calc(100% - 24px) !important; background: linear-gradient(180deg, #FFFFFF 0%, #FFF5FA 100%) !important; border: 1px solid var(--border, #F6DCE8) !important; border-radius: 18px !important; box-shadow: 0 10px 28px -22px var(--shadow-pink, rgba(255, 45, 145, .12)); }
@media (min-width: 640px) { html.kl-site .seo-guide-in { width: calc(100% - 2rem) !important; } }
html.kl-site .seo-guide a { color: var(--kl-pink-text, #C8146F); }
