/* =====================================================================
   Diwa Rich - diwarichslot.com
   Layout, type and component anatomy cloned 1:1 from the ALL DIWA GAME
   (Appyn) reference, measured via getComputedStyle at 1440.
   Palette is this site's own: the reference's #cc1ca8 is replaced by
   --accent everywhere it appeared.
   ===================================================================== */

:root {
    /* brand */
    --accent:        #173ae8;
    --accent-d:      #132caa;   /* hover + accent text on the grey ground */
    --accent-l:      #4360ef;
    --accent-soft:   #ebeefc;
    --gold:          #f2a81d;   /* stars + ornament, always with ink text */
    --gold-soft:     #fff6e3;

    /* surfaces (reference values) */
    --ink:           #1d222d;
    --ink-d:         #13161d;
    --page:          #e6e9ef;
    --card:          #ffffff;
    --tint:          #f7f8fa;   /* cards inside a white box */
    --line:          #eaeaea;
    --line-2:        #e3e7ee;
    --shadow:        2px 2px 2px 0 #e3e3e3;

    /* text */
    --text:          #4c4c4c;
    --text-2:        #444444;
    --muted:         #a7a7a7;
    --muted-2:       #ababab;

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

    --radius:        20px;
    --radius-pill:   50px;
    --radius-icon:   25px;
    --measure:       1220px;
    --sidebar:       300px;
    --gap:           20px;
    --t:             .2s cubic-bezier(.16,1,.3,1);
}

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

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

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

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-d); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- the one shared measure ---------------------------------- */
/* Header, hero, content, footer and the disclaimer band all use this, so
   every page has one vertical edge from the logo down to the footer. */
.container {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}
#main-site .container { display: flex; align-items: flex-start; }
#main-site .container.is-block { display: block; }

.clear::after { content: ''; display: table; clear: both; }

/* ================= HEADER ========================================== */
#header {
    background: var(--ink);
    border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 60;
}
#header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
#header .logo a { display: flex; align-items: center; }
#header .logo img {
    height: 44px; width: auto; object-fit: contain; display: block;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav .menu { display: flex; align-items: center; list-style: none; gap: 2px; }
.main-nav .menu a {
    display: block; padding: 8px 12px; color: #d7dbe4; font-size: 13px;
    font-weight: 600; border-radius: var(--radius-pill); transition: color var(--t), background var(--t);
}
.main-nav .menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .menu li.current > a { color: #fff; background: var(--accent); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    margin-left: 8px; padding: 0 18px; height: 36px;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; border-radius: var(--radius-pill);
    transition: background var(--t), transform var(--t);
}
.nav-cta:hover { background: var(--accent-l); color: #fff; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

.menu-open {
    display: none; background: transparent; border: 0; color: #fff;
    padding: 6px; border-radius: 8px;
}
.menu-open:hover { background: rgba(255,255,255,.1); }

#menu-mobile {
    position: fixed; inset: 0 auto 0 0; width: min(82vw, 320px); z-index: 120;
    background: var(--ink-d); padding: 64px 18px 24px;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
}
#menu-mobile[hidden] { display: block; }
body.nav-open #menu-mobile { transform: translateX(0); }
body.nav-open { overflow: hidden; }
#menu-mobile .menu { list-style: none; }
#menu-mobile .menu a {
    display: block; padding: 13px 14px; color: #d7dbe4; font-size: 15px;
    font-weight: 600; border-radius: 12px;
}
#menu-mobile .menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
#menu-mobile .menu li.current > a { background: var(--accent); color: #fff; }
.mm-close {
    position: absolute; top: 14px; right: 14px; background: transparent;
    border: 0; color: #fff; padding: 6px; border-radius: 8px;
}
.nav-scrim {
    position: fixed; inset: 0; background: rgba(10,12,18,.55); z-index: 110;
    opacity: 0; pointer-events: none; transition: opacity var(--t);
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

/* ================= HERO (home) ===================================== */
#subheader {
    position: relative; overflow: hidden;
    background: #0a0c12;
    border-bottom: 2px solid var(--accent);
    padding: 90px 0 40px;
    margin: 0 0 20px;
    text-align: center;
    color: #fff;
}
.imgbg { position: absolute; inset: 0; overflow: hidden; }
.imgbg img {
    width: 120%; height: 100%; object-fit: cover; opacity: .3;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    max-width: none;
}
#subheader::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(90% 70% at 50% 42%, rgba(10,12,18,.82) 0%, rgba(10,12,18,.62) 45%, rgba(10,12,18,.9) 100%);
}
.subcontainer {
    position: relative; z-index: 2;
    width: 100%; max-width: 730px; margin: 0 auto; text-align: center;
}
.subcontainer h1, .subcontainer .hero-title {
    font-size: 40px; font-weight: 300; line-height: 46px;
    padding: 0 0 20px; margin: 0; color: #fff;
}
.subcontainer h2, .subcontainer .hero-sub {
    font-size: 16px; font-weight: 300; line-height: 30px; margin: 0; color: #fff;
}

/* search */
#searchBox { width: 100%; max-width: 600px; margin: 30px auto 0; position: relative; }
#searchBox form { display: flex; }
#sbinput {
    width: 100%; height: 44px; border: 0; border-radius: var(--radius-pill);
    background: #f2f2f2; color: #43454b; font-size: 16px; font-family: inherit;
    padding: 0 86px 0 20px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}
#sbinput::placeholder { color: #6f7378; }
.sb_submit {
    position: absolute; right: 0; top: 0;
    width: 70px; height: 44px; border: 0; border-radius: var(--radius-pill);
    background: var(--accent); color: #fff; display: grid; place-items: center;
    transition: background var(--t);
}
.sb_submit:hover { background: var(--accent-l); }

/* live results */
.sb-results {
    position: absolute; left: 0; right: 0; top: 52px; z-index: 40;
    background: #fff; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(10,12,18,.28);
    overflow: hidden; text-align: left; display: none;
}
.sb-results.open { display: block; }
.sb-results a {
    display: flex; align-items: center; gap: 10px; padding: 9px 14px;
    color: var(--text); border-bottom: 1px solid var(--line);
}
.sb-results a:last-child { border-bottom: 0; }
.sb-results a:hover { background: var(--accent-soft); color: var(--accent-d); }
.sb-results img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.sb-results .sb-empty { padding: 12px 14px; color: var(--muted); }

/* category icon row */
.cats {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
    margin: 26px auto 0; list-style: none; max-width: 730px;
}
.cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; }
.cat-ic {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    opacity: .5; transition: opacity var(--t), transform var(--t); color: #fff;
}
.cats a:hover .cat-ic { opacity: 1; transform: translateY(-2px); }
.cats span.cat-l { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }

/* compact search band on inner pages */
#subheader.sub-compact {
    padding: 28px 25px 22px; background: var(--card); color: var(--text);
    border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0;
    box-shadow: var(--shadow); text-align: left;
}
#subheader.sub-compact::after { display: none; }
#subheader.sub-compact .subcontainer { max-width: var(--measure); }
#subheader.sub-compact #searchBox { margin: 0 auto; }

/* ================= SECTIONS / GRID ================================= */
#main-site { display: block; padding-bottom: 10px; }
.sections { flex: 1 1 auto; min-width: 0; }
.section { margin: 0 0 30px; }

.title-section {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin: 3px 10px 10px; padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
}
.title-section h1, .title-section h2 { font-size: 22px; font-weight: 400; color: var(--text); line-height: 31px; }
.ts-more { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

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

.bav { padding: 10px; }
.bav1 { width: 16.6666%; text-align: center; }
.bav1 > a {
    display: block; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border-bottom: 2px solid var(--accent);
    padding: 15px; color: inherit; transition: transform var(--t), box-shadow var(--t);
}
.bav1 > a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(29,34,45,.14); }
.bav1 .bloque-imagen {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--tint);
}
.bav1 .bloque-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bav1 .title {
    font-size: 14px; font-weight: 600; color: var(--text-2); height: 20px; line-height: 20px;
    margin: 10px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav1 .px-postmeta {
    margin: 6px -15px 0; padding: 0 12px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.bav1 .pm-line {
    display: flex; align-items: baseline; justify-content: center; gap: 5px;
    height: 18px; line-height: 18px; overflow: hidden;
}
.bav1 .developer, .bav1 .version {
    font-size: 12px; line-height: 18px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.bav1 .pm-sep { font-size: 12px; line-height: 18px; color: var(--muted); opacity: .6; }
.bav-cta {
    display: block; margin: 8px -15px -15px; padding: 7px 4px; font-size: 10px; line-height: 16px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
    color: var(--accent-d); background: var(--accent-soft);
    border-radius: 0 0 var(--radius) var(--radius); transition: background var(--t), color var(--t);
}
.bav1 > a:hover .bav-cta { background: var(--accent); color: #fff; }
/* the meta block sits above the CTA now, so it no longer hugs the card edge */


/* wide tile */
.bav2 { width: 33.3333%; }
.bav2 > a {
    display: flex; align-items: center; gap: 10px; background: var(--card);
    border-radius: var(--radius); box-shadow: var(--shadow);
    border-bottom: 2px solid var(--accent); padding: 12px; color: inherit;
    transition: transform var(--t), box-shadow var(--t);
}
.bav2 > a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(29,34,45,.14); }
.bav2 .bloque-imagen {
    width: 75px; height: 75px; flex: 0 0 75px; border-radius: var(--radius);
    overflow: hidden; background: var(--tint);
}
.bav2 .bloque-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bap-c { min-width: 0; }
.bav2 .title {
    font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 20px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav2 .developer { font-size: 12px; line-height: 18px; color: var(--muted); }

/* stars */
.box-rating { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 2px 0 0; }
.bav1 .box-rating { margin: 1px 0 0; }
.bav2 .box-rating { justify-content: flex-start; }
.stars-bg {
    position: relative; display: inline-block; width: 68px; height: 13px;
    background: linear-gradient(90deg, #d7dbe2 0 100%);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='13' viewBox='0 0 68 13'><g fill='black'><path d='M6.5 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6L1.3 4.8l3.6-.5z'/><path d='M20.1 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M33.7 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M47.3 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M60.9 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/></g></svg>") no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='13' viewBox='0 0 68 13'><g fill='black'><path d='M6.5 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6L1.3 4.8l3.6-.5z'/><path d='M20.1 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M33.7 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M47.3 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/><path d='M60.9 1l1.6 3.3 3.6.5-2.6 2.5.6 3.6-3.2-1.7-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z'/></g></svg>") no-repeat;
}
.stars { position: absolute; inset: 0 auto 0 0; background: var(--gold); display: block; }
.rating-average { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rating-average b { color: var(--text-2); font-weight: 700; }

/* VIEW MORE */
.more-wrap { text-align: center; margin: 6px 0 0; }
.more {
    display: inline-block; width: 225px; max-width: 100%; line-height: 40px;
    border-radius: var(--radius-pill); background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid rgba(0,0,0,.3); padding: 0 20px;
    transition: background var(--t), transform var(--t);
}
.more:hover { background: var(--accent-l); color: #fff; transform: translateY(-1px); }

/* ================= SIDEBAR ========================================= */
#sidebar {
    width: var(--sidebar); flex: 0 0 var(--sidebar); margin-left: var(--gap);
    position: sticky; top: 80px; align-self: flex-start;
}
.widget {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    border-bottom: 2px solid var(--accent); padding: 18px 18px 16px; margin: 0 0 20px;
}
.widget-title {
    font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-2); margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; }
.w-apps li { margin: 0 0 10px; }
.w-apps a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.w-apps a:hover { color: var(--accent-d); }
.w-apps img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 44px; background: var(--tint); }
.w-apps .wa-n { font-size: 13px; font-weight: 600; line-height: 18px; }
.w-apps .wa-m { font-size: 11px; line-height: 16px; color: var(--muted); }
.w-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.w-cats a {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px;
    border-radius: var(--radius-pill); background: var(--accent-soft);
    color: var(--accent-d); font-size: 12px; font-weight: 600;
}
.w-cats a:hover { background: var(--accent); color: #fff; }
.widget .sb-side { position: relative; }
.widget .sb-side input {
    width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-pill);
    background: #f7f8fa; font-family: inherit; font-size: 14px; color: var(--text); padding: 0 42px 0 16px;
}
.widget .sb-side button {
    position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0;
    border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
}
.w-note { font-size: 12px; line-height: 20px; color: var(--muted); }

/* ================= BOX / SINGLE PAGE =============================== */
.app-s { flex: 1 1 auto; min-width: 0; }
.box {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 25px; margin: 0 0 20px; position: relative;
}
.box-title {
    font-size: 17px; font-weight: 700; text-transform: uppercase; color: var(--muted-2);
    padding: 15px 0; margin: -20px 0 15px; position: relative;
}
.box-title::after {
    content: ''; position: absolute; left: 0; bottom: 8px; width: 34px; height: 3px;
    background: var(--accent); border-radius: 2px;
}

#breadcrumbs { font-size: 13px; color: #c6c6c6; margin: 0 0 4px; }
#breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
#breadcrumbs a { color: var(--muted); }
#breadcrumbs a:hover { color: var(--accent-d); }

h1.main-box-title {
    font-size: 38px; font-weight: 700; line-height: 48px; color: var(--text);
    margin: 0 7px 0 0; display: inline-block;
}
.app-s .version-tag { font-size: 20px; font-weight: 600; color: #bbb; display: inline-block; }

.meta-cats { margin: 10px 0 0; }
.meta-cats ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-cats a, .tag-chip {
    display: inline-block; font-size: 12px; font-weight: 600; color: #fff;
    background: var(--accent); border-radius: var(--radius); padding: 2px 10px 3px;
}
.tag-chip { background: var(--ink); }
.meta-cats a:hover { background: var(--accent-d); color: #fff; }

.descripcion { font-size: 13px; line-height: 21px; text-align: justify; margin: 14px 0 6px; }

/* badge: static on the detail page (C7) */
.badge {
    position: static; display: inline-block; vertical-align: middle;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 12px; border-radius: var(--radius-pill); margin: 0 0 0 4px;
}
.badge-new { background: var(--gold-soft); color: #7a5300; }
.badge-hot { background: var(--accent-soft); color: var(--accent-d); }
/* grid-card badges may stay absolute inside their card */
.bav1 .badge { position: absolute; top: 20px; right: 20px; }
.bav1 > a { position: relative; }

/* icon column + title block: the reference emits the title first and floats
   the icon column left, so the H1 precedes the download button in the DOM. */
.app-icb.s1 { float: left; width: 150px; margin: 0 20px 0 0; }
.app-spe.s2 { float: right; width: 100%; padding-left: 170px; margin-left: -170px; }
.image-single {
    width: 150px; height: 150px; border-radius: var(--radius-icon); overflow: hidden;
    background: var(--tint);
}
.image-single img { width: 100%; height: 100%; object-fit: cover; display: block; }

.buttond {
    display: flex; align-items: center; justify-content: center; position: relative;
    min-height: 33px; border-radius: var(--radius); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; padding: 8px 5px 8px 38px;
    margin: 10px 0 0; text-align: center; transition: filter var(--t), transform var(--t);
}
.buttond:hover { filter: brightness(1.06); transform: translateY(-1px); }
.buttond .bi {
    position: absolute; left: 0; top: 0; bottom: 0; width: 30px;
    display: grid; place-items: center; background: rgba(0,0,0,.1);
    border-radius: var(--radius) 0 0 var(--radius);
}
/* The reference prints white on #5edd1f (1.8:1). Ink keeps the reference's
   green while clearing WCAG AA at 9:1. */
.downloadAPK { background: var(--dl-green); color: #11240a; }
.downloadAPK:hover { color: #11240a; }
.buttond.t { background: var(--tg-blue); color: #fff; }
.buttond.t:hover { color: #fff; }

.link-report {
    margin: 10px 0 0; font-size: 12px; color: var(--muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.link-report:hover { color: var(--accent-d); }

/* info table */
.box-data-app { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.data-app { display: flex; flex-wrap: wrap; }
.da-s { width: 33.3333%; padding: 0 10px 0 0; margin: 8px 0 0; font-size: 13px; line-height: 21px; }
.da-s b { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* share row */
.box-social { margin: 16px 0 0; }
.botones_sociales { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.botones_sociales li { flex: 0 0 104px; }
.botones_sociales a {
    display: flex; align-items: center; gap: 6px; width: 100%; min-height: 31px;
    border-radius: var(--radius); font-size: 11px; font-weight: 600; color: #fff;
    padding: 0 10px; transition: filter var(--t), transform var(--t);
}
.botones_sociales a:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.botones_sociales .facebook  { background: #4864a0; }
.botones_sociales .twitter   { background: #111418; }
.botones_sociales .pinterest { background: #bd081c; }
.botones_sociales .telegram  { background: #229ed9; }
.botones_sociales .whatsapp  { background: #1faf54; }

/* ================= ARTICLE BODY ==================================== */
.entry { font-size: 14px; line-height: 25px; color: var(--text); }
.entry h2 {
    font-size: 21px; font-weight: 700; line-height: 30px; margin: 20px 0;
    text-align: start; color: var(--text);
}
.entry h3 { font-size: 17px; font-weight: 700; line-height: 26px; margin: 18px 0 8px; color: var(--text); }
.entry h4 { font-size: 15px; font-weight: 700; line-height: 24px; margin: 16px 0 6px; color: var(--text); }
.entry p { margin: 0 0 15px; }
.entry ul { margin: 0 0 15px; padding-left: 0; list-style: none; }
.entry li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.entry li::before {
    content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px;
    border-radius: 50%; background: var(--accent);
}
.entry a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 2px; }
.entry a:hover { color: var(--accent); }

/* ================= EDITORIAL LAYOUT ENGINE (C11) =================== */
.ed-lede { margin: 0 0 6px; }
.entry .ed-lede h1, .ed-lede h1 { font-size: 30px; font-weight: 700; line-height: 40px; margin: 0 0 14px; color: var(--text); }
.ed-lede p { font-size: 15px; line-height: 27px; margin: 0 0 14px; }

.ed-sec { margin: 26px 0 0; }
.entry .ed-h, h2.ed-h {
    font-size: 21px; font-weight: 700; line-height: 30px; text-align: start;
    color: var(--text); margin: 0 0 6px; padding: 0 0 10px; position: relative;
}
.ed-h::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.ed-intro { margin: 14px 0 0; }
.ed-intro p { margin: 0 0 14px; }

.ed-grid { display: grid; gap: 16px; margin: 18px 0 0; }
.ed-grid-1 { grid-template-columns: 1fr; }
.ed-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ed-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ed-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* tinted, not white: the editorial column is already a white .box */
.ed-card {
    background: var(--tint); border: 1px solid var(--line-2); border-bottom: 2px solid var(--accent);
    border-radius: var(--radius); padding: 18px 18px 6px;
    transition: transform var(--t), box-shadow var(--t);
}
.ed-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,34,45,.1); }
.ed-ic {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent-d); margin: 0 0 12px;
}
.ed-ic-lg { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 44px; }
.entry .ed-card-h, h3.ed-card-h { font-size: 16px; font-weight: 700; line-height: 24px; margin: 0 0 8px; color: var(--text); }
.ed-card-b p { margin: 0 0 12px; }
.ed-card-b h4 { font-size: 14px; margin: 12px 0 6px; }

.ed-panel {
    display: flex; gap: 16px; align-items: flex-start; margin: 16px 0 0;
    background: var(--tint); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
    border-radius: var(--radius); padding: 18px 20px 6px;
}
.ed-panel-b { min-width: 0; }
.ed-panel-b p { margin: 0 0 12px; }

/* CTA band */
.ed-cta {
    margin: 30px 0 0; background: var(--ink); color: #e4e7ee;
    border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden;
    text-align: center;
}
.ed-cta::before {
    content: ''; position: absolute; inset: -40% -10% auto -10%; height: 170%;
    background: radial-gradient(50% 55% at 50% 0%, rgba(23,58,232,.42) 0%, rgba(23,58,232,0) 70%);
    pointer-events: none;
}
.ed-cta > * { position: relative; z-index: 1; }
/* .entry h2 sets text-align:start, so the band's centring is not inherited */
.entry .ed-cta-h, .ed-cta .ed-cta-h, h2.ed-cta-h {
    text-align: center; font-size: 22px; font-weight: 700; line-height: 32px;
    color: #fff; margin: 0 0 14px; padding: 0;
}
.entry .ed-cta-h::after, .ed-cta .ed-cta-h::after { display: none; }
.ed-cta-b p { margin: 0 0 12px; color: #c9cfdb; }
.ed-cta-b a { color: #fff; }
.ed-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 0; }

/* scoped so .entry a does not win and render accent-on-accent */
.entry .hx-btn, .ed-cta .hx-btn, a.hx-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 0 22px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
    transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.entry .hx-btn-primary, .ed-cta .hx-btn-primary, a.hx-btn-primary {
    background: var(--accent); color: #fff; border: 2px solid var(--accent);
}
.entry .hx-btn-primary:hover, .ed-cta .hx-btn-primary:hover, a.hx-btn-primary:hover {
    background: var(--accent-l); border-color: var(--accent-l); color: #fff; transform: translateY(-1px);
}
.entry .hx-btn-ghost, .ed-cta .hx-btn-ghost, a.hx-btn-ghost {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
}
.entry .hx-btn-ghost:hover, .ed-cta .hx-btn-ghost:hover, a.hx-btn-ghost:hover {
    background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-1px);
}

/* FAQ accordion */
.faq { margin: 18px 0 0; }
.faq-item {
    background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--radius);
    margin: 0 0 10px; overflow: hidden;
}
.faq-item > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px; cursor: pointer; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-item > summary:hover { background: var(--accent-soft); }
.faq-item summary h3 { font-size: 15px; font-weight: 700; line-height: 24px; margin: 0; color: var(--text); }
.faq-chev {
    flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--card); color: var(--accent-d);
    transition: transform var(--t);
}
.faq-item[open] .faq-chev { transform: rotate(90deg); }
.faq-item[open] > summary { background: var(--accent-soft); }
.faq-a { padding: 2px 18px 4px; border-top: 1px solid var(--line-2); }
.faq-a p { margin: 12px 0; }

/* ================= RELATED ========================================= */
.related { margin: 0; }
.related .baps .bav1 { width: 20%; }

/* responsible gaming */
.rg-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--gold-soft); border: 1px solid #f3dca6; border-radius: var(--radius);
    padding: 16px 18px; margin: 0 0 20px; font-size: 13px; line-height: 22px; color: #5e4506;
}
.rg-note .rg-i { color: #8a6400; flex: 0 0 auto; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.rg-chips span {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border-radius: var(--radius-pill); background: #fff; font-size: 12px; font-weight: 600; color: #7a5300;
}

/* trust bar */
.trust-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px;
}
.trust-bar .tb {
    display: flex; align-items: center; gap: 10px; background: var(--card);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px;
    border-bottom: 2px solid var(--accent);
}
.trust-bar .tb svg { color: var(--accent-d); flex: 0 0 auto; }
.trust-bar .tb b { display: block; font-size: 13px; color: var(--text-2); line-height: 18px; }
.trust-bar .tb span { font-size: 11px; color: var(--muted); line-height: 16px; }

/* ================= FOOTER ========================================== */
#footer {
    background: var(--ink); border-top: 2px solid var(--accent); color: #c9cfdb;
    margin-top: 10px;
}
#footer .container { display: block; padding-top: 34px; padding-bottom: 20px; }
#footer a { color: #c9cfdb; }
#footer a:hover { color: #fff; }

.footer-promo {
    display: flex; gap: 20px; align-items: center; background: var(--ink-d);
    border-radius: var(--radius); padding: 22px 24px; border-bottom: 2px solid var(--accent);
}
.fp-logo img { width: 74px; height: 74px; border-radius: 18px; object-fit: contain; display: block; }
.fp-body h2 { font-size: 20px; color: #fff; margin: 0 0 6px; }
.fp-body p { margin: 0; font-size: 13px; line-height: 22px; max-width: none; }
.fp-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.fp-links a {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px;
    border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.22);
    font-size: 12px; font-weight: 600; transition: background var(--t), border-color var(--t);
}
.fp-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-cols {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 26px 0 0;
}
.fc h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff;
    margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.fc ul { list-style: none; }
.fc li { margin: 0 0 6px; font-size: 13px; line-height: 21px; }

.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
}
.trust { display: flex; flex-wrap: wrap; gap: 16px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; color: #9aa3b4; }

.disclaimer { background: var(--ink-d); color: #8e97a8; padding: 16px 0 20px; }
.disclaimer .container { padding-top: 0; padding-bottom: 0; }
.disclaimer p { margin: 0; font-size: 12px; line-height: 21px; }
.disclaimer strong { color: #c9cfdb; }

/* floating CTA */
.tg-center-btn {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80;
    display: flex; align-items: center; gap: 9px; padding: 13px 22px;
    border-radius: var(--radius-pill); color: #fff; font-size: 14px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 38%, var(--gold) 100%);
    background-size: 220% 220%;
    box-shadow: 0 10px 30px rgba(23,58,232,.45);
    animation: tgshift 9s ease-in-out infinite;
}
.tg-center-btn span { white-space: nowrap; }
.tg-center-btn:hover { color: #fff; filter: brightness(1.06); }
@keyframes tgshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

#backtotop {
    position: fixed; right: 18px; bottom: 18px; z-index: 80;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--ink); color: #fff; display: grid; place-items: center;
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity var(--t), transform var(--t), background var(--t);
}
#backtotop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backtotop:hover { background: var(--accent); }

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

/* ================= 404 ============================================= */
.nf { text-align: center; padding: 30px 0 10px; }
.nf h1 { font-size: 72px; line-height: 1; color: var(--accent); margin: 0 0 8px; }
.nf p { font-size: 15px; margin: 0 0 18px; }

/* ================= RESPONSIVE ====================================== */
@media (max-width: 1240px) {
    .bav1 { width: 20%; }
    .related .baps .bav1 { width: 20%; }
}
@media (max-width: 1100px) {
    .bav1 { width: 25%; }
    .bav2 { width: 50%; }
}
@media (max-width: 1023px) {
    #main-site .container { display: block; }
    #sidebar {
        width: 100%; flex: none; margin: 10px 0 0; position: static;
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start;
    }
    .widget { margin: 0; }
    .bav1 { width: 25%; }
    .related .baps .bav1 { width: 25%; }
    .ed-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .subcontainer h1 { font-size: 34px; line-height: 42px; }
    .box-app { display: flex; flex-direction: column; }
    .app-icb.s1 { float: none; width: 150px; margin: 0 auto 14px; order: -1; }
    .app-spe.s2 { float: none; width: auto; padding-left: 0; margin-left: 0; }
    .image-single { margin: 0 auto; }
    .buttond { max-width: 280px; margin-left: auto; margin-right: auto; }
    h1.main-box-title { font-size: 30px; line-height: 40px; }
}
@media (max-width: 767px) {
    body { font-size: 16px; line-height: 27px; }
    .entry, .ed-lede p, .ed-card-b, .ed-panel-b { font-size: 16px; line-height: 27px; }
    .descripcion { font-size: 15px; line-height: 25px; text-align: left; }
    .main-nav .menu, .nav-cta { display: none; }
    .menu-open { display: grid; place-items: center; }
    #subheader { padding: 48px 0 30px; }
    .subcontainer h1 { font-size: 27px; line-height: 36px; padding-bottom: 14px; }
    .subcontainer h2 { font-size: 15px; line-height: 26px; }
    .bav1 { width: 33.3333%; }
    .related .baps .bav1 { width: 33.3333%; }
    .bav2 { width: 100%; }
    .ed-grid-3, .ed-grid-4 { grid-template-columns: repeat(2, 1fr); }
    #sidebar { grid-template-columns: 1fr; }
    .box { padding: 18px 16px; }
    .da-s { width: 50%; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-promo { flex-direction: column; align-items: flex-start; }
    .ed-cta { padding: 24px 18px; }
    .tg-center-btn { font-size: 13px; padding: 11px 18px; bottom: 12px; }
    #backtotop { bottom: 70px; }
    .bav1 .title, .bav1 .developer, .bav1 .version, .bav1 .pm-sep { font-size: 13px; }
}
@media (max-width: 519px) {
    .bav1 { width: 50%; }
    .related .baps .bav1 { width: 50%; }
    .ed-grid-2, .ed-grid-3, .ed-grid-4 { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .da-s { width: 100%; }
    .subcontainer h1 { font-size: 24px; line-height: 33px; }
    h1.main-box-title { font-size: 25px; line-height: 34px; }
    .ed-lede h1 { font-size: 24px; line-height: 33px; }
    .botones_sociales li { flex: 1 1 calc(50% - 4px); }
}

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

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

/* single-page extras */
.single-rating { margin: 8px 0 0; }
.single-rating .box-rating { justify-content: center; }
.da-s .gio { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.box.related .baps { margin: 0 -10px; }

/* archive */
.bc-top { margin: 0 10px 10px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 10px 6px; }
.cat-filter .cf {
    display: inline-flex; align-items: center; padding: 6px 16px; border-radius: var(--radius-pill);
    background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 600;
    color: var(--text); transition: background var(--t), color var(--t);
}
.cat-filter .cf:hover { background: var(--accent-soft); color: var(--accent-d); }
.cat-filter .cf.on { background: var(--accent); color: #fff; }
.empty-note {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 24px; margin: 10px; font-size: 14px;
}

/* static page hero */
#subheader.sub-page { padding: 56px 0 40px; text-align: left; }
#subheader.sub-page .subcontainer { max-width: var(--measure); margin: 0; text-align: left; }
#subheader.sub-page h1 { font-size: 36px; font-weight: 700; line-height: 46px; padding: 6px 0 0; }
#subheader.sub-page #breadcrumbs { color: rgba(255,255,255,.72); }
#subheader.sub-page #breadcrumbs a { color: rgba(255,255,255,.82); }
#subheader.sub-page #breadcrumbs a:hover { color: #fff; }
@media (max-width: 767px) {
    #subheader.sub-page { padding: 34px 0 28px; }
    #subheader.sub-page h1 { font-size: 26px; line-height: 35px; }
}

.nf .hx-btn-primary { margin-top: 6px; }
.baps.related .bav1 { width: 20%; }

/* locale mirror */
.hi-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 0; }
.locale-hi .baps { margin: 0 -10px; }

.sb-results a small { color: var(--muted); font-size: 11px; }
