/* =====================================================================
   Rummy Paisa - rummypaisagame.com
   Layout, radii, type scale and component anatomy follow the Appyn
   reference 1:1 (measured, not read off the theme CSS). The palette is
   the brand's own: the logo is an electric-violet app icon, so the
   reference's magenta accent is replaced by that violet everywhere.
   Download green and Telegram blue stay as the reference sets them.
   ===================================================================== */

:root {
  /* accent - sampled from the Rummy Paisa app icon */
  --ac:        #6A0DD3;
  --ac-dk:     #4E089C;
  --ac-lt:     #A32BF5;
  --ac-tint:   #F3EAFE;
  --ac-tint-2: #E5D2FB;

  /* surfaces - reference-fixed */
  --ink:    #1d222d;
  --ink-d:  #13161d;
  --page:   #e6e9ef;
  --card:   #ffffff;
  --card-2: #f7f8fa;
  --sh:     2px 2px 2px 0 #e3e3e3;

  /* text - reference-fixed */
  --tx:     #4c4c4c;
  --tx-t:   #444444;
  --meta:   #6f6f6f;   /* reference uses #a7a7a7 (2.41:1 on white); C10 needs 4.5:1 */
  --box-t:  #747474;   /* reference uses #ababab (2.30:1 on white); C10 needs 4.5:1 */
  --line:   #eaeaea;
  --line-2: #f2f2f2;

  /* fixed button colours from the reference */
  --dl: #5edd1f;
  --tg: #006fa7;

  --r:    20px;   /* cards, boxes, widgets, buttons, chips, tables */
  --r-p:  50px;   /* pills: search, view more, pagination */
  --r-ic: 25px;   /* single-page app icon */

  --wrap: 1220px;
  --side: 300px;
  --gap:  20px;

  --t: 200ms cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  line-height: 25px;
  color: var(--tx);
  background: var(--page);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a   { color: var(--ac); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--ac-dk); }
a, button, summary, [role="button"], input[type="submit"] { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ac-lt);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 10px; top: -60px; z-index: 200;
  background: var(--ac); color: #fff; padding: 10px 18px; border-radius: var(--r);
  font-weight: 700; transition: top var(--t);
}
.skip:focus { top: 10px; color: #fff; }

.ic { width: 24px; height: 24px; flex: 0 0 auto; display: block; }

/* ------------------------------------------------------------------
   One measure for header, content, footer and the disclaimer band
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}
.container.is-block { display: block; }

/* ------------------------------------------------------------------
   Header - dark 60px bar, logo left, nav right
   ------------------------------------------------------------------ */
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 60px;
  background: var(--ink);
  border-bottom: 2px solid var(--ac);
}
#header .container { height: 60px; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.logo-t { font-size: 17px; font-weight: 800; letter-spacing: -.2px; color: #fff; white-space: nowrap; }
.logo:hover .logo-t { color: var(--ac-lt); }

#header nav .menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
#header nav .menu > li > a {
  display: block; padding: 0 15px; line-height: 35px;
  font-size: 13px; font-weight: 600; color: #fff; position: relative;
}
#header nav .menu > li > a::before {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: -2px;
  height: 2px; background: var(--ac-lt); transform: scaleX(0);
  transition: transform var(--t);
}
#header nav .menu > li > a:hover { color: #fff; }
#header nav .menu > li > a:hover::before,
#header nav .menu > li > a.active::before { transform: scaleX(1); }
#header nav .menu > li > a.active { color: #fff; }

.nav-cta > a {
  background: var(--ac); border-radius: var(--r);
  margin-left: 8px; padding: 0 18px !important;
}
.nav-cta > a:hover { background: var(--ac-dk); }
.nav-cta > a::before { display: none; }

.menu-open {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; padding: 0;
}

/* ------------------------------------------------------------------
   Homepage hero band
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 90px 0 40px;
  background: #000;
  overflow: hidden;
  text-align: center;
}
.imgbg { position: absolute; inset: 0; overflow: hidden; }
.imgbg img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 120%; max-width: none; height: auto; opacity: .3; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 45%, rgba(0,0,0,.25), rgba(0,0,0,.78));
}
.subcontainer {
  position: relative; z-index: 2;
  width: 730px; max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  color: #fff;
}
.subcontainer h1 {
  font-size: 40px; font-weight: 300; line-height: 46px;
  color: #fff; margin: 0; padding: 0 0 20px;
}
.subcontainer h2 {
  font-size: 16px; font-weight: 300; line-height: 30px;
  color: #fff; margin: 0;
}

/* search box - 600px pill + 70x44 accent button */
.sb_wrap { display: flex; justify-content: center; margin: 22px 0 0; }
.sb_form { display: flex; width: 600px; max-width: 100%; }
.sb_search {
  flex: 1 1 auto; min-width: 0; height: 44px;
  border: 0; border-radius: var(--r-p);
  background: #f2f2f2; color: #43454b;
  font: 400 16px/44px 'Open Sans', Arial, sans-serif;
  padding: 0 110px 0 20px; margin: 0 -70px 0 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}
.sb_search::placeholder { color: #7b7d84; opacity: 1; }
.sb_submit {
  width: 70px; height: 44px; flex: 0 0 70px;
  border: 0; border-radius: var(--r-p);
  background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.sb_submit:hover { background: var(--ac-dk); }

/* category icon row - 40x40 round, one brand colour each */
.cats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center;
        gap: 18px; margin: 26px 0 0; list-style: none; padding: 0; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; }
.cats i {
  width: 40px; height: 40px; border-radius: 50%; opacity: .5;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: opacity var(--t), transform var(--t);
}
.cats a:hover i { opacity: 1; transform: translateY(-2px); }
.cats a:hover { color: #fff; }
.cats span { font-size: 12px; line-height: 16px; }
.cats .c-rummy      i { background: #6A0DD3; }
.cats .c-teen-patti i { background: #0F9B8E; }
.cats .c-spin       i { background: #E0611A; }
.cats .c-yono       i { background: #2F57C9; }
.cats .c-all        i { background: #A32BF5; }

/* ------------------------------------------------------------------
   Sections and catalogue grid
   ------------------------------------------------------------------ */
.sections { flex: 1 1 auto; min-width: 0; padding: 20px 0 0; }
.container.is-block .sections { padding-top: 0; }

.section { margin: 0 0 30px; }

.title-section {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 3px 10px 10px; padding: 0 0 10px;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}
.title-section h2 {
  font-size: 22px; font-weight: 400; line-height: 31px;
  color: var(--tx); margin: 0;
}
.ts-more { font-size: 13px; font-weight: 600; white-space: nowrap; }

.baps { display: flex; flex-wrap: wrap; }

/* 6-up grid tile */
.baps .bav1 { width: calc(100% / 6); padding: 10px; text-align: center; }
.bav1 > a {
  display: block; background: var(--card); border-radius: var(--r);
  padding: 15px; box-shadow: var(--sh);
  border-bottom: 2px solid var(--ac);
  color: var(--tx-t);
  transition: transform var(--t), box-shadow var(--t);
}
.bav1 > a:hover { transform: translateY(-3px); box-shadow: 2px 6px 14px 0 #dcdfe6; }
.bav1 .bloque-imagen {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--card-2);
}
.bav1 .bloque-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bav1 .title {
  display: block; margin: 10px 0 0; height: 20px; line-height: 20px;
  font-size: 14px; font-weight: 600; color: var(--tx-t);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav1 .developer, .bav1 .version {
  display: block; margin: 2px 0 0; height: 18px; line-height: 18px;
  font-size: 12px; color: var(--meta);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav1 .px-postmeta {
  display: block; margin: 10px -15px -15px; padding: 0 6px 10px;
  height: 25px; line-height: 25px; font-size: 12px; font-weight: 600;
  color: var(--ac); border-radius: 0 0 var(--r) var(--r);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav1 > a:hover .title { color: var(--ac); }

/* 3-up wide tile */
.baps-w { display: flex; flex-wrap: wrap; margin: 20px 0 0; }
.baps-w .bav2 { width: calc(100% / 3); padding: 0 10px 20px; }
.bav2 > a {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: var(--r); padding: 12px;
  box-shadow: var(--sh); border-bottom: 2px solid var(--ac);
  min-height: 100px; color: var(--tx-t);
  transition: transform var(--t), box-shadow var(--t);
}
.bav2 > a:hover { transform: translateY(-3px); box-shadow: 2px 6px 14px 0 #dcdfe6; }
.bav2 .w75 { width: 75px; height: 75px; flex: 0 0 75px; border-radius: var(--r); overflow: hidden; }
.bav2 .w75 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bav2 .bap-c { min-width: 0; }
.bav2 .title { display: block; font-size: 14px; font-weight: 600; color: var(--tx-t);
               line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bav2 .developer { display: block; font-size: 12px; color: var(--meta); line-height: 18px; }
.bav2 .version {
  display: block; font-size: 12px; color: var(--meta); line-height: 17px;
  margin: 2px 0 0; max-height: 34px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bav2 > a:hover .title { color: var(--ac); }

/* VIEW MORE pill */
.more-wrap { text-align: center; padding: 10px 0 0; }
a.more {
  display: inline-block; width: 225px; max-width: 100%;
  line-height: 40px; border-radius: var(--r-p);
  background: var(--ac); color: #fff;
  font-size: 14px; font-weight: 600; text-transform: uppercase; text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.3);
  transition: background var(--t), transform var(--t);
}
a.more:hover { background: var(--ac-dk); color: #fff; transform: translateY(-2px); }

.empty-note {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  padding: 30px 25px; margin: 10px; text-align: center; font-size: 14px;
}

/* ------------------------------------------------------------------
   Sidebar - 300px, sticky so it never leaves a gutter beside a long column
   ------------------------------------------------------------------ */
.hdt {
  width: var(--side); flex: 0 0 var(--side);
  position: sticky; top: 80px; align-self: flex-start;
  padding: 20px 0 0;
}
.widget {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  margin: 0 0 20px; padding: 0 10px; overflow: hidden;
}
.widget-title {
  margin: 0 -10px; padding: 10px; border-bottom: 1px solid var(--line-2);
}
.widget-title h2 {
  margin: 0; font-size: 16px; font-weight: 600; line-height: 23px;
  text-transform: uppercase; color: var(--tx);
}
.widget-c { padding: 12px 0; }

.w-search { display: flex; gap: 6px; }
.w-search input {
  flex: 1 1 auto; min-width: 0; height: 38px; border: 1px solid var(--line);
  border-radius: var(--r-p); padding: 0 14px; font: 400 13px/38px 'Open Sans', Arial, sans-serif;
  color: var(--tx); background: #fff;
}
.w-search input::placeholder { color: #8a8d94; opacity: 1; }
.w-search button {
  width: 42px; height: 38px; flex: 0 0 42px; border: 0; border-radius: var(--r-p);
  background: var(--ac); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.w-search button:hover { background: var(--ac-dk); }

.w-list, .w-cats { list-style: none; margin: 0; padding: 0; }
.w-list li { border-bottom: 1px solid var(--line-2); }
.w-list li:last-child { border-bottom: 0; }
.w-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--tx); }
.w-list img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; object-fit: cover; }
.w-list span { min-width: 0; display: block; }
.w-list b { display: block; font-size: 13px; font-weight: 600; line-height: 18px;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-list i { display: block; font-style: normal; font-size: 12px; color: var(--meta); line-height: 16px; }
.w-list a:hover b { color: var(--ac); }

.w-cats li { border-bottom: 1px solid var(--line-2); }
.w-cats li:last-child { border-bottom: 0; }
.w-cats a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; color: var(--tx); font-size: 13px;
}
.w-cats a span {
  min-width: 26px; text-align: center; border-radius: var(--r-p);
  background: var(--ac-tint); color: var(--ac-dk); font-size: 11px; font-weight: 700;
  line-height: 20px; padding: 0 8px;
}
.w-cats a:hover { color: var(--ac); }

/* ------------------------------------------------------------------
   Inner-page search band + boxes
   ------------------------------------------------------------------ */
#subheader {
  background: var(--card); border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--sh);
  padding: 75px 25px 15px; margin: 0 0 20px;
  display: flex; justify-content: center;
}
#subheader .sb_form { width: 600px; }
#subheader .sb_search { background: var(--card-2); }

.box {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  padding: 20px 25px; margin: 0 0 20px;
}
.box-title {
  position: relative;
  margin: -20px 0 15px; padding: 15px 0;
  font-size: 17px; font-weight: 700; line-height: 23px;
  text-transform: uppercase; color: var(--box-t);
}
.box-title::after {
  content: ""; position: absolute; left: 0; bottom: 6px;
  width: 34px; height: 3px; background: var(--ac); border-radius: var(--r);
}

#breadcrumbs { font-size: 13px; color: #6f6f6f; margin: 0 0 4px; }
#breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#breadcrumbs a { color: #5f6672; }
#breadcrumbs a:hover { color: var(--ac); }

/* ------------------------------------------------------------------
   APK single page - title block before the icon column in the DOM,
   icon floated left with order:-1 (D5.3)
   ------------------------------------------------------------------ */
/* The reference emits the title block before the icon column and floats the icon
   left, so the H1 precedes the download button for screen readers and crawlers.
   Reproduced with order:-1. The right-hand blocks share one .s2col flex child so
   they keep a single left edge instead of wrapping back to the box padding. */
.app-head { display: flex; flex-wrap: nowrap; align-items: flex-start; }
.app-head .s1 { order: -1; width: 150px; flex: 0 0 150px; margin: 0 20px 0 0; }
.app-head .s2col { flex: 1 1 auto; min-width: 0; }
.app-head .s2 { width: 100%; }

.app-ic {
  width: 150px; height: 150px; border-radius: var(--r-ic); overflow: hidden;
  background: var(--card-2); display: block;
}
.app-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1.main-box-title {
  font-size: 38px; font-weight: 700; line-height: 48px;
  color: var(--tx); margin: 0 7px 0 0;
}
.src-tag { font-size: 12px; color: var(--meta); }

/* Detail-page badge. `position: static` on purpose (C7): absolute floats it out
   of the title block. Grid-card badges may stay absolute inside their own card. */
.b-type {
  position: static;
  display: inline-block; vertical-align: middle;
  margin: 0 0 0 8px; padding: 2px 12px;
  border-radius: var(--r);
  background: var(--ac-tint); color: var(--ac-dk);
  font-size: 11px; font-weight: 700; line-height: 20px; text-transform: uppercase;
}
.meta-cats { display: inline-block; margin: 10px 0 6px; }
.meta-cats a, .tags a {
  display: inline-block; background: var(--ac); color: #fff;
  border-radius: var(--r); font-size: 13px; font-weight: 600;
  padding: 3px 10px; margin: 0 8px 8px 0; line-height: 18px;
}
.meta-cats a:hover, .tags a:hover { background: var(--ac-dk); color: #fff; }
.app-sd { font-size: 14px; line-height: 25px; margin: 6px 0 0; }

/* info table - 3 cells per row */
.box-data-app { display: flex; flex-wrap: wrap; margin: 6px 0 0; }
.da-s {
  width: 33.333%; padding: 0 10px 0 0; margin: 8px 0 0;
  border-bottom: 1px solid var(--line-2); padding-bottom: 8px;
}
.da-s b { display: block; font-size: 13px; font-weight: 700; color: var(--tx); line-height: 18px; }
.da-s span { display: block; font-size: 13px; color: var(--meta); line-height: 18px; }

/* download + telegram buttons */
.buttond {
  position: relative; display: block; width: 100%;
  min-height: 33px; border-radius: var(--r);
  font-size: 12px; font-weight: 700; line-height: 17px;
  text-transform: uppercase; text-align: center; color: #fff;
  padding: 8px 5px 8px 38px; margin: 10px 0 0;
  transition: filter var(--t), transform var(--t);
}
.buttond:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.buttond .b-ic {
  position: absolute; left: 0; top: 0; bottom: 0; width: 30px;
  background: rgba(0,0,0,.1);
  border-radius: var(--r) 0 0 var(--r);
  display: flex; align-items: center; justify-content: center;
}
.buttond .b-ic .ic { width: 16px; height: 16px; }
/* reference puts a white label on #5edd1f (1.77:1). The download button is one of the
   four things D5 lets this build customise, so the label goes dark instead. */
.buttond.dl { background: var(--dl); color: #0d2b06; }
.buttond.dl:hover { color: #0d2b06; }
.buttond.tg { background: var(--tg); }

.link-report {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  margin: 12px 0 0; font-size: 12px; color: var(--meta);
}
.link-report .ic { width: 15px; height: 15px; }

/* share row - 104px each */
.botones_sociales { display: flex; flex-wrap: wrap; margin: 14px -5px 0; padding: 0; list-style: none; }
.botones_sociales li { padding: 0 5px 8px; }
.botones_sociales a {
  display: flex; align-items: center; gap: 6px;
  width: 104px; min-height: 31px; border-radius: var(--r);
  font-size: 11px; font-weight: 600; color: #fff; padding: 0 10px;
  transition: filter var(--t);
}
.botones_sociales a:hover { filter: brightness(1.12); color: #fff; }
.botones_sociales .ic { width: 14px; height: 14px; }
.botones_sociales .facebook  { background: #4864a0; }
.botones_sociales .twitter   { background: #1d2124; }
.botones_sociales .pinterest { background: #bd081c; }
.botones_sociales .telegram  { background: #2a9fd8; }
.botones_sociales .whatsapp  { background: #25a862; }

/* ------------------------------------------------------------------
   Article body - verbatim, on a white surface
   ------------------------------------------------------------------ */
.entry { font-size: 14px; line-height: 25px; color: var(--tx); }
.entry > :first-child { margin-top: 0; }
.entry h2 {
  font-size: 21px; font-weight: 700; line-height: 28px;
  color: var(--tx); margin: 24px 0 12px; text-align: start;
  scroll-margin-top: 76px;
}
.entry h3 { font-size: 16.4px; font-weight: 700; line-height: 25px; color: var(--tx); margin: 18px 0 6px; }
.entry h4 { font-size: 14px; font-weight: 700; line-height: 25px; color: var(--tx); margin: 16px 0 6px; }
.entry p  { margin: 0 0 15px; }
.entry ul { margin: 0 0 20px 15px; padding: 0 0 0 18px; }
.entry li { margin: 0 0 5px; }
.entry a  { color: var(--ac); text-decoration: underline; text-underline-offset: 2px; }

/* FAQ accordion - native <details>, answers stay in the DOM when collapsed */
.faq { margin: 4px 0 20px; }
.faq-i {
  background: var(--card-2); border: 1px solid #e8e6ef; border-radius: var(--r);
  margin: 0 0 10px; overflow: hidden;
}
.faq-i > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; list-style: none;
  transition: background var(--t);
}
.faq-i > summary::-webkit-details-marker { display: none; }
.faq-i > summary::marker { content: ""; }
.faq-i > summary:hover { background: var(--ac-tint); }
.faq-i > summary h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 22px; color: var(--tx); }
.faq-c { color: var(--ac); display: flex; transition: transform var(--t); }
.faq-c .ic { width: 18px; height: 18px; }
.faq-i[open] .faq-c { transform: rotate(90deg); }
.faq-a { padding: 0 16px 6px; }
.faq-a p:last-child { margin-bottom: 12px; }

/* related row - fills the full measure (5 items -> 20% each) */
.rlat .baps .bav1 { width: 20%; }

/* ------------------------------------------------------------------
   Homepage editorial - white surface, tinted cards (C11)
   ------------------------------------------------------------------ */
.ed { margin: 0 0 20px; }
.ed-lede { margin: 0 0 6px; }
.ed-lede h1 {
  font-size: 32px; font-weight: 700; line-height: 42px; color: var(--tx); margin: 0 0 14px;
}
.ed-lede p { font-size: 15px; line-height: 27px; margin: 0 0 14px; }

.ed-s { margin: 26px 0 0; }
.ed-h { margin: 0 0 12px; }
.ed-h h2 {
  font-size: 21px; font-weight: 700; line-height: 29px; color: var(--tx);
  margin: 0 0 8px; text-align: start; scroll-margin-top: 76px;
}
.ed-rule { display: block; width: 46px; height: 3px; border-radius: var(--r); background: var(--ac); }
.ed-s > p { font-size: 14px; line-height: 25px; margin: 0 0 14px; }

.ed-grid { display: grid; gap: 14px; margin: 14px 0 0; }
.ed-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ed-card {
  background: var(--card-2); border: 1px solid #e8e6ef; border-radius: var(--r);
  border-bottom: 2px solid var(--ac);
  padding: 16px 16px 6px;
  transition: transform var(--t), box-shadow var(--t);
}
.ed-card:hover { transform: translateY(-3px); box-shadow: 2px 6px 14px 0 #dcdfe6; }
.ed-ic {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ac-tint); color: var(--ac-dk); margin: 0 0 10px;
}
.ed-ic .ic { width: 20px; height: 20px; }
.ed-card h3 { font-size: 15px; font-weight: 700; line-height: 22px; color: var(--tx); margin: 0 0 7px; }
.ed-card p  { font-size: 13px; line-height: 23px; margin: 0 0 10px; }

/* CTA band */
.ed-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r); margin: 30px 0 6px;
  background: var(--ink-d) url("/assets/img/brand/cta-band.jpg") center / cover no-repeat;
}
.ed-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 50% 40%, rgba(106,13,211,.42), rgba(10,12,18,.9));
}
.ed-cta-in { position: relative; z-index: 2; padding: 34px 26px; text-align: center; color: #fff; }
/* .entry h2 sets colour and `text-align: start`, and out-specifies a single
   class, so the CTA heading is scoped to beat it. Without this it renders
   dark grey and left-aligned on the dark band. */
.entry .ed-cta-h, .ed-cta .ed-cta-h, h2.ed-cta-h {
  text-align: center;
  font-size: 23px; font-weight: 700; line-height: 32px; color: #fff; margin: 0 0 10px;
}
.entry .ed-cta-in p, .ed-cta-in p {
  font-size: 14px; line-height: 25px; color: rgba(255,255,255,.92);
  margin: 0 0 12px; text-align: center;
}
.ed-cta-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 0; }

/* scoped so .entry a / .ed-cta-in a cannot win and paint the label invisible */
.entry .hx-btn, .ed-cta-in .hx-btn, a.hx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-p);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.entry .hx-btn .ic, .ed-cta-in .hx-btn .ic, a.hx-btn .ic { width: 18px; height: 18px; }
.entry .hx-btn-p, .ed-cta-in .hx-btn-p, a.hx-btn-p { background: var(--ac); color: #fff; border: 2px solid var(--ac); }
.entry .hx-btn-p:hover, .ed-cta-in .hx-btn-p:hover, a.hx-btn-p:hover { background: var(--ac-dk); border-color: var(--ac-dk); color: #fff; transform: translateY(-2px); }
.entry .hx-btn-g, .ed-cta-in .hx-btn-g, a.hx-btn-g { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.entry .hx-btn-g:hover, .ed-cta-in .hx-btn-g:hover, a.hx-btn-g:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
#footer { background: var(--ink-d); border-top: 2px solid var(--ac); color: rgba(255,255,255,.72); margin: 20px 0 0; }
#footer .container.is-block { padding-top: 34px; padding-bottom: 10px; }

.f-promo {
  background: var(--ink); border-radius: var(--r); border-bottom: 2px solid var(--ac);
  padding: 20px 22px; margin: 0 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.f-promo-t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.f-promo-t img { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; object-fit: contain; }
.f-promo-t strong { display: block; color: #fff; font-size: 16px; line-height: 24px; }
.f-promo-t p { margin: 2px 0 0; font-size: 13px; line-height: 21px; color: #a8aeb9; }
.f-promo-b { display: flex; flex-wrap: wrap; gap: 10px; }
.f-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 18px; border-radius: var(--r-p);
  background: var(--ac); color: #fff; font-size: 13px; font-weight: 700;
  border: 1px solid var(--ac); transition: background var(--t), transform var(--t);
}
.f-btn .ic { width: 17px; height: 17px; }
.f-btn:hover { background: var(--ac-dk); border-color: var(--ac-dk); color: #fff; transform: translateY(-2px); }
.f-btn-g { background: transparent; border-color: rgba(255,255,255,.28); }
.f-btn-g:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.f-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.f-col h2 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: #fff; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0 0 6px; }
.f-col a { font-size: 13px; line-height: 21px; color: #b6bcc6; }
.f-col a:hover { color: var(--ac-lt); }

.f-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.1);
}
.f-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 20px; color: #a8aeb9;
}
.f-trust .ic { width: 16px; height: 16px; color: var(--ac-lt); }

.footer-bottom { background: var(--ink-d); border-top: 1px solid rgba(255,255,255,.08); padding: 15px 0; }
.copy { color: #9aa0ab; font-size: 12px; line-height: 22px; }
.copy p { margin: 0 0 4px; }

.disc { background: var(--ink); border-top: 1px solid rgba(255,255,255,.07); padding: 14px 0 86px; }
.disc p { display: flex; align-items: flex-start; gap: 10px; margin: 0;
          font-size: 12px; line-height: 20px; color: #9aa0ab; }
.disc .ic { width: 18px; height: 18px; flex: 0 0 18px; color: #e8b33a; margin-top: 1px; }
.disc strong { color: rgba(255,255,255,.8); }

/* floating gradient CTA pill */
.tg-center-btn {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-p);
  background: linear-gradient(135deg, #00c6ff, #0072ff, #8e2de2, #ff0080);
  background-size: 300% 300%;
  color: #fff; font-size: 15px; font-weight: 800; line-height: 20px;
  box-shadow: 0 10px 30px 0 rgba(106,13,211,.45);
  animation: ctaShift 9s ease infinite;
}
.tg-center-btn:hover { color: #fff; }
.tg-center-btn .ic { width: 20px; height: 20px; }
@keyframes ctaShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

#backtotop {
  position: fixed; right: 18px; bottom: 86px; z-index: 90;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
#backtotop.on { opacity: 1; visibility: visible; transform: none; }
#backtotop:hover { background: var(--ac-dk); }

/* ------------------------------------------------------------------
   Games index - client-side filter
   ------------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 10px 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 15px; border-radius: var(--r-p);
  background: var(--card); color: var(--tx); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; box-shadow: var(--sh);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.chip:hover { border-color: var(--ac); color: var(--ac); }
.chip.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.chip.on:hover { color: #fff; }

/* card fade-in */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   404
   ------------------------------------------------------------------ */
.e404 { text-align: center; padding: 40px 20px; }
.e404 h1 { font-size: 38px; font-weight: 700; line-height: 48px; color: var(--tx); margin: 0 0 8px; }
.e404 p { font-size: 14px; margin: 0 0 20px; }

/* ------------------------------------------------------------------
   Responsive - 1440 / 1024 / 768 / 375
   ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .container { flex-wrap: wrap; }
  .hdt {
    width: 100%; flex: 0 0 100%;
    position: static; top: auto;
  }
  .baps .bav1 { width: 25%; }
  .baps-w .bav2 { width: 50%; }
  .ed-grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rlat .baps .bav1 { width: 25%; }
}

@media (max-width: 860px) {
  #header nav {
    position: fixed; inset: 60px 0 auto 0;
    background: var(--ink-d); border-bottom: 2px solid var(--ac);
    max-height: 0; overflow: hidden; transition: max-height var(--t);
  }
  #header nav.open { max-height: 80vh; overflow-y: auto; }
  #header nav .menu { flex-direction: column; align-items: stretch; }
  #header nav .menu > li > a {
    padding: 12px 15px; line-height: 22px; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  #header nav .menu > li > a::before { display: none; }
  #header nav .menu > li > a.active { color: var(--ac-lt); }
  .nav-cta > a { margin: 10px 15px; border-radius: var(--r); text-align: center; }
  .menu-open { display: flex; }
  .logo-t { font-size: 15px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; line-height: 26px; }
  .subcontainer h1 { font-size: 28px; line-height: 36px; }
  .subcontainer h2 { font-size: 16px; line-height: 26px; }
  .hero { padding: 84px 0 32px; }
  .baps .bav1 { width: 33.333%; }
  .baps-w .bav2 { width: 100%; }
  .rlat .baps .bav1 { width: 33.333%; }
  .ed-grid.c3, .ed-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box, #subheader { padding-left: 16px; padding-right: 16px; }
  #subheader { padding-top: 70px; }
  .sb_form { width: 100%; }
  .sb_search { padding: 0 86px 0 16px; font-size: 16px; }
  .app-head .s1 { width: 110px; flex: 0 0 110px; margin-right: 14px; }
  .app-ic { width: 110px; height: 110px; }
  h1.main-box-title { font-size: 26px; line-height: 34px; }
  .da-s { width: 50%; }
  .entry { font-size: 16px; line-height: 27px; }
  .entry h2 { font-size: 20px; line-height: 28px; }
  .ed-lede h1 { font-size: 26px; line-height: 35px; }
  .ed-lede p, .ed-s > p, .ed-card p { font-size: 16px; line-height: 27px; }
  .faq-i > summary h3 { font-size: 16px; }
  .tg-center-btn { font-size: 14px; padding: 11px 18px; }
}

@media (max-width: 519px) {
  .baps .bav1, .rlat .baps .bav1 { width: 50%; }
  .ed-grid.c3, .ed-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .f-map { grid-template-columns: minmax(0, 1fr); }
  .app-head { flex-wrap: wrap; }
  .app-head .s1, .app-head .s2col { width: 100%; flex: 0 0 100%; margin: 0; }
  .app-head .s1 { order: 0; margin: 0 0 14px; }
  .app-ic { width: 130px; height: 130px; margin: 0 auto; }
  .buttond { max-width: 260px; margin-left: auto; margin-right: auto; }
  .da-s { width: 100%; }
  .botones_sociales a { width: 100%; }
  .botones_sociales li { width: 50%; }
  .f-promo { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
