/* ===========================================================================
   Pak Rummy - pakrummyslot.com
   Layout, radii and metrics are a 1:1 clone of the ALL DIWA GAME reference
   (measured by computed style, not by reading its CSS). The palette and the
   two type families are this site's own.
   =========================================================================== */

:root {
    /* palette */
    --accent:       #c8102e;
    --accent-dark:  #a30d25;
    --accent-soft:  #e8536a;
    --accent-tint:  #fdeaed;

    --chrome:       #1b1016;
    --chrome-deep:  #110a0e;
    --chrome-line:  #2e1f26;

    --page:         #e6e9ef;
    --card:         #ffffff;
    --tint:         #f7f8fa;
    --tint-line:    #e4e7ec;

    --ink:          #4c4c4c;
    --ink-strong:   #444444;
    /* the reference uses #a7a7a7 / #ababab / #c6c6c6 here; those fail 4.5:1 on
       white, and every one of these labels carries information, so they are
       darkened to the lightest grey that clears AA */
    --muted:        #767676;
    --muted-2:      #767676;
    --muted-3:      #767676;
    --line:         #eaeaea;

    --dl-bg:        #5edd1f;   /* reference download green */
    --dl-ink:       #123102;   /* dark ink: 8.1:1 on the green (white was 1.8:1) */
    --tg-bg:        #006fa7;

    --shadow:       2px 2px 2px 0 #e3e3e3;

    /* radius system */
    --r-card:       20px;
    --r-pill:       50px;
    --r-icon:       25px;

    /* type */
    --ff-body:   'Yantramanav', 'Helvetica Neue', Arial, sans-serif;
    --ff-display:'Gantari', 'Yantramanav', Arial, sans-serif;
    --ff-urdu:   'Gulzar', 'Noto Nastaliq Urdu', serif;

    /* shared measure: 1220px box + 10px gutters = a 1200px content column */
    --measure:   1220px;
    --gutter:    10px;
    --aside:     300px;
    --aside-gap: 20px;
}

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

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

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: 13px;
    line-height: 25px;
    overflow-x: hidden;
}

img { border-style: none; }

a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

button, [role="button"], summary, label[for] { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
#subheader :focus-visible, #header :focus-visible, #footer :focus-visible {
    outline-color: #fff;
}

.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: 50%; top: -60px; transform: translateX(-50%);
    z-index: 200; background: #fff; color: var(--accent); font-weight: 700;
    padding: 10px 18px; border-radius: 0 0 var(--r-card) var(--r-card);
    transition: top .18s ease;
}
.skip:focus { top: 0; }

/* ---------------------------------------------------------------- measure --
   Header, content, footer and the disclaimer band all share this box, so the
   logo, the content column and the footer columns line up on one edge.      */
.container {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ header */
#header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 60px;
    z-index: 100;
    background: var(--chrome);
    border-bottom: 2px solid var(--accent);
}
#header .container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.logo { display: flex; align-items: center; }
.logo img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}
#nav-main { display: flex; align-items: center; }
#nav-main ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#nav-main a {
    display: block;
    padding: 0 11px;
    line-height: 35px;
    font-size: 13px;
    color: #d7d2d4;
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
#nav-main a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
#nav-main a[aria-current="page"] { background: var(--accent); color: #fff; }
#nav-main .nav-cta a {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
}
#nav-main .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
#nav-main .nav-cta a[aria-current="page"] { background: var(--accent-dark); }

.nav-tog {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 0; color: #fff; padding: 0;
    border-radius: var(--r-pill);
}
.nav-tog:hover { background: rgba(255, 255, 255, .1); }

/* ------------------------------------------------------------------- hero */
#subheader {
    position: relative;
    padding: 90px 0 40px;
    margin: 0 0 20px;
    background: #000;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid var(--accent);
    overflow: hidden;
}
.imgbg { position: absolute; inset: 0; overflow: hidden; }
.imgbg img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: auto;
    opacity: .3;
    object-fit: cover;
}
/* scrim: keeps the headline zone readable over any generated art */
.imgbg::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0, 0, 0, .72), rgba(0, 0, 0, .18) 70%, transparent),
        linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .7));
}
.subcontainer {
    position: relative;
    width: 730px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    text-align: center;
}
.subcontainer h1 {
    font-family: var(--ff-display);
    font-size: 40px;
    line-height: 46px;
    font-weight: 300;
    color: #fff;
    margin: 0;
    padding: 0 0 20px;
}
.subcontainer h2 {
    font-size: 16px;
    line-height: 30px;
    font-weight: 300;
    color: #fff;
    margin: 0;
}

/* --------------------------------------------------------------- searchbox */
#searchBox {
    position: relative;
    width: 600px;
    max-width: 100%;
    margin: 30px auto 0;
    text-align: center;
}
.sb-f { display: flex; align-items: center; margin: 0; }
#sbinput {
    flex: 1 1 auto;
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 0 86px 0 20px;
    margin: 0 -70px 0 0;
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 44px;
    color: #43454b;
    background: #f2f2f2;
    border: 0;
    border-radius: var(--r-pill);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
    appearance: none;
}
#sbinput::placeholder { color: #80848e; opacity: 1; }
.sb_submit {
    flex: 0 0 70px;
    width: 70px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    transition: background .18s ease;
}
.sb_submit:hover { background: var(--accent-dark); }
.sb-res {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
    background: #fff;
    border-radius: var(--r-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 6px;
}
.sb-res a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 14px;
    color: var(--ink);
    font-size: 13px;
}
.sb-res a:hover, .sb-res a.is-on { background: var(--accent-tint); color: var(--accent-dark); text-decoration: none; }
.sb-res img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; }
.sb-res .sr-b { margin-left: auto; font-size: 12px; color: var(--muted); }
.sb-res .sb-none { padding: 12px; color: var(--muted); font-size: 13px; }

/* ----------------------------------------------------------- category icons */
.cat-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 26px auto 0;
    padding: 0;
    list-style: none;
}
.cat-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #fff;
}
.cat-row a:hover { text-decoration: none; }
.cat-row .ci {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}
.cat-row a:hover .ci, .cat-row a:focus-visible .ci { opacity: 1; transform: translateY(-2px); }
.cat-row li:nth-child(1) .ci { background: #c8102e; }
.cat-row li:nth-child(2) .ci { background: #1f7a8c; }
.cat-row li:nth-child(3) .ci { background: #c9772b; }
.cat-row li:nth-child(4) .ci { background: #4a5d8f; }
.cat-row li:nth-child(5) .ci { background: #3f7a4e; }
.cat-row li:nth-child(6) .ci { background: #7a3f6b; }
.cat-row .cl { opacity: .85; }

/* ------------------------------------------------------------- main layout */
#main-site { padding-bottom: 30px; }

/* the flex row: content column + sidebar */
#main-site .container.is-flex {
    display: flex;
    align-items: flex-start;
    position: relative;
}
/* and the full-width continuation below it, on the same measure */
#main-site .container.is-block { display: block; }

.sections, .app-s {
    flex: 1 1 auto;
    min-width: 0;
}
#sidebar {
    flex: 0 0 var(--aside);
    width: var(--aside);
    margin-left: var(--aside-gap);
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.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 h2 {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
}
.title-section .ts-more { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------- 6-up card grid */
.grid6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bav1 {
    padding: 10px;
    text-align: center;
}
.bav1 .bav-l {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 15px 15px 14px;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
/* The accent rule is a bar clipped by the card's radius. A border-bottom on a
   20px-radius box curves up at both ends and reads as a stray red hook. */
.bav1 .bav-l::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
}
.bav1 .bav-l:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 4px 6px 14px rgba(0, 0, 0, .14);
}
.bav1 .bloque-imagen {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--r-card);
    overflow: hidden;
}
.bav1 .bloque-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bav1 .title {
    display: block;
    height: 20px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--ink-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bav1 .px-postmeta {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    text-align: center;
}
.bav1 .px-postmeta span {
    display: block;
    height: 18px;
    min-height: 18px;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------- 3-up featured tiles */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bav2 { padding: 10px; }
.bav2 > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    overflow: hidden;
    padding: 12px 15px 14px;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bav2 > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
}
.bav2 > a:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 4px 6px 14px rgba(0, 0, 0, .14);
}
.bav2 .bloque-imagen {
    flex: 0 0 75px;
    width: 75px; height: 75px;
    border-radius: var(--r-card);
    overflow: hidden;
}
.bav2 .bloque-imagen img { width: 75px; height: 75px; object-fit: cover; display: block; }
.bav2-txt { min-width: 0; }
.bav2 .title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--ink-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bav2 .developer, .bav2 .version {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bav2 .version { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- VIEW MORE */
.more-wrap { text-align: center; padding: 6px 10px 0; }
.more {
    display: inline-block;
    width: 225px;
    max-width: 100%;
    line-height: 40px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    border-bottom: 1px solid rgba(0, 0, 0, .3);
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: background .18s ease;
}
.more:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------ sidebar */
.widget {
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    margin: 0 0 20px;
    padding: 15px;
}
.widget .wt {
    font-family: var(--ff-display);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.widget .wt::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 34px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.widget #searchBox { width: 100%; margin: 0; }
.widget #sbinput { font-size: 14px; padding-right: 80px; }
.w-list { margin: 0; padding: 0; list-style: none; }
.w-list li + li { border-top: 1px solid var(--line); }
.w-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ink);
    font-size: 13px;
}
.w-list a:hover { color: var(--accent); text-decoration: none; }
.w-list img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 40px; }
.w-list .wl-t { font-weight: 600; display: block; line-height: 18px; }
.w-list .wl-m { display: block; font-size: 12px; color: var(--muted); line-height: 16px; }
.w-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-cats a {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--r-card);
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 600;
}
.w-cats a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ------------------------------------------------------- editorial engine */
.box {
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 20px 25px;
    margin: 0 0 20px;
}
.box-title {
    position: relative;
    display: block;
    font-family: var(--ff-display);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: -20px 0 15px;
    padding: 15px 0;
}
.box-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 6px;
    width: 34px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.entry { font-size: 14px; line-height: 25px; color: var(--ink); }
.entry > h2, .ed-head h2, .ed-sec h2 {
    font-family: var(--ff-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 25px;
    text-align: start;
    color: var(--ink);
    margin: 20px 0;
}
.entry h3, .ed-card-t {
    font-family: var(--ff-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 24px;
    color: var(--ink-strong);
    margin: 18px 0 6px;
}
.entry h4 { font-family: var(--ff-display); font-size: 15px; font-weight: 700; margin: 14px 0 4px; }
.entry p { margin: 0 0 15px; }
.entry ul { margin: 0 0 20px 15px; padding: 0 0 0 10px; }
.entry li { margin: 0 0 5px; }
.entry li::marker { color: var(--accent); }
.entry a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.ed-lede { font-size: 15px; line-height: 27px; }
.ed-lede p { margin: 0 0 15px; }
.ed-sec { margin: 0 0 6px; }
.ed-head { display: flex; flex-direction: column; margin: 26px 0 12px; }
.ed-head h2 { margin: 0 0 8px; }
.ed-rule { display: block; width: 54px; height: 3px; background: var(--accent); border-radius: 2px; }
.ed-intro p { margin: 0 0 15px; }

.ed-grid { display: grid; gap: 14px; margin: 14px 0 24px; }
.ed-grid.c1 { grid-template-columns: minmax(0, 1fr); }
.ed-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-card {
    /* tinted, not white: the editorial column it sits in is already white */
    background: var(--tint);
    outline: 1px solid var(--tint-line);
    border-radius: var(--r-card);
    padding: 16px 18px 6px;
}
.ed-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--accent);
    margin: 0 0 8px;
}
.ed-card-t { margin: 0 0 6px; font-size: 16px; line-height: 23px; }
.ed-card-b p { margin: 0 0 12px; }
.ed-card-b ul { margin: 0 0 12px 15px; }

/* CTA band */
.ed-cta {
    position: relative;
    overflow: hidden;
    margin: 28px 0 10px;
    padding: 30px 28px;
    border-radius: var(--r-card);
    background: var(--chrome);
    color: #e9e3e5;
    text-align: center;
}
.ed-cta::before {
    content: "";
    position: absolute;
    left: 50%; top: -120px;
    width: 420px; height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(200, 16, 46, .55), transparent 70%);
    pointer-events: none;
}
.ed-cta-h {
    position: relative;
    font-family: var(--ff-display);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #fff;
    /* .entry h2 forces text-align:start, so centre this one explicitly */
    text-align: center;
    margin: 0 0 12px;
}
.ed-cta-b { position: relative; max-width: none; }
.ed-cta-b p { margin: 0 0 14px; color: #cfc7ca; }
.cta-center { justify-content: center; }
.ed-cta-r {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}
/* scoped so .entry a cannot win and render accent-on-accent */
.entry .hx-btn, .ed-cta .hx-btn, a.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.entry .hx-btn-p, .ed-cta .hx-btn-p, a.hx-btn-p { background: var(--accent); color: #fff; }
.entry .hx-btn-p:hover, .ed-cta .hx-btn-p:hover, a.hx-btn-p:hover {
    background: #e2294a; color: #fff; text-decoration: none; transform: translateY(-1px);
}
.entry .hx-btn-g, .ed-cta .hx-btn-g, a.hx-btn-g {
    background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.entry .hx-btn-g:hover, .ed-cta .hx-btn-g:hover, a.hx-btn-g:hover {
    background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none;
}

/* ------------------------------------------------------------ FAQ accordion */
.faq { margin: 10px 0 24px; }
.faq-i {
    background: var(--tint);
    outline: 1px solid var(--tint-line);
    border-radius: var(--r-card);
    margin: 0 0 10px;
    overflow: hidden;
}
.faq-i > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    list-style: none;
}
.faq-i > summary::-webkit-details-marker { display: none; }
.faq-i > summary::marker { content: ""; }
.faq-i > summary h3 {
    flex: 1 1 auto;
    margin: 0;
    font-family: var(--ff-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 23px;
    color: var(--ink-strong);
}
.faq-cv {
    flex: 0 0 20px;
    color: var(--accent);
    transition: transform .22s ease;
}
.faq-i[open] > summary .faq-cv { transform: rotate(180deg); }
.faq-i[open] > summary { background: var(--accent-tint); }
.faq-a { padding: 14px 18px 2px; }
.faq-a p { margin: 0 0 14px; }
.faq-a ul { margin: 0 0 14px 15px; }

/* --------------------------------------------------- APK single page parts */
.sub-s {
    position: relative;
    display: block;
    padding: 75px 25px 15px;
    margin: 0 0 20px;
    background: var(--card);
    border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: var(--shadow);
}
.sub-s #searchBox { width: 100%; max-width: none; margin: 0; }

#breadcrumbs {
    display: block;
    font-size: 13px;
    color: var(--muted-3);
    margin: 0 0 6px;
}
#breadcrumbs a { color: var(--muted); font-weight: 400; }
#breadcrumbs a:hover { color: var(--accent); }

.app-top { display: flex; align-items: flex-start; gap: 20px; }
/* the reference emits the title block before the icon column and floats the
   icon left; order:-1 reproduces that visual while keeping H1 first in DOM */
.app-icb.s1 {
    flex: 0 0 150px;
    width: 150px;
    order: -1;
}
.image-single {
    display: block;
    width: 150px; height: 150px;
    border-radius: var(--r-icon);
    overflow: hidden;
    background: var(--tint);
}
.image-single img { width: 150px; height: 150px; object-fit: cover; display: block; }
.app-spe.s2 { flex: 1 1 auto; min-width: 0; }

.main-box-title {
    font-family: var(--ff-display);
    font-size: 38px;
    line-height: 48px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 7px 0 0;
    display: inline-block;
}
.src-tag { font-size: 13px; color: var(--muted); }

.meta-cats { margin: 8px 0 0; }
.meta-cats a, .tags a {
    display: inline-block;
    border-radius: var(--r-card);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    /* out-specifies .entry a, which would otherwise underline these chips */
    text-decoration: none;
}
.meta-cats a { font-size: 12px; line-height: 17px; padding: 2px 10px 3px; }
.meta-cats a:hover, .tags a:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.tags { margin: 4px 0 0; }
.tags a { font-size: 13px; line-height: 18px; padding: 3px 10px; margin: 8px 8px 0 0; }

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

/* info table: 3 cells per row */
.da-wrap { display: flex; flex-wrap: wrap; margin: 6px 0 0; }
.da-s {
    flex: 0 0 33.333%;
    width: 33.333%;
    padding: 0 10px 0 0;
    margin: 8px 0 0;
}
.da-s .dk { display: block; font-size: 12px; color: var(--muted); line-height: 18px; }
.da-s .dv { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 18px; }

.botones_sociales {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.botones_sociales li {
    /* the li is the flex item, so it carries the width: a percentage set on the
       anchor would resolve against a content-sized parent and collapse */
    flex: 0 0 104px;
    display: block;
}
.botones_sociales a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 31px;
    padding: 0 10px;
    border-radius: var(--r-card);
    color: #fff;
    font-size: 11px;
    transition: filter .18s ease;
}
.botones_sociales a:hover { filter: brightness(1.14); color: #fff; text-decoration: none; }
.bs-fb { background: #4864a0; }
.bs-tw { background: #1b1f23; }
.bs-pi { background: #bd081c; }
.bs-tg { background: #0088cc; }
.bs-wa { background: #25824b; }

.buttond {
    position: relative;
    display: block;
    width: 150px;
    min-height: 33px;
    margin: 10px 0 0;
    padding: 8px 5px 8px 38px;
    border-radius: var(--r-card);
    font-size: 12px;
    line-height: 17px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transition: filter .18s ease, transform .18s ease;
}
.buttond:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.buttond .bi {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .1);
    border-radius: var(--r-card) 0 0 var(--r-card);
}
.buttond.downloadAPK { background: var(--dl-bg); color: var(--dl-ink); }
.buttond.downloadAPK:hover { color: var(--dl-ink); }
.buttond.t { background: var(--tg-bg); color: #fff; }
.buttond.t:hover { color: #fff; }

.badge-row { margin: 12px 0 0; }
.badge {
    /* static, never absolute: an absolute badge floats off the detail page */
    position: static;
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-card);
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-new { background: var(--accent-tint); color: var(--accent-dark); }
.badge-hot { background: #fff1e3; color: #9a4a08; }

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

.warn {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--r-card);
    background: var(--accent-tint);
    color: #7c0d20;
    font-size: 13px;
    line-height: 21px;
}
.warn svg { flex: 0 0 24px; color: var(--accent); }
.warn p { margin: 0; }

/* related row fills the full measure: 5 across */
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ----------------------------------------------------------- static pages */
.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 90px 25px 28px;
    border-radius: 0 0 var(--r-card) var(--r-card);
    background: var(--chrome);
    color: #fff;
    box-shadow: var(--shadow);
}
.page-hero .ph-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px);
    transform: scale(1.12);
    opacity: .33;
}
.page-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(27, 16, 22, .82), rgba(27, 16, 22, .55));
}
.page-hero > * { position: relative; }
.page-hero h1 {
    font-family: var(--ff-display);
    font-size: 38px;
    line-height: 46px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.page-hero #breadcrumbs { color: rgba(255, 255, 255, .75); margin: 0 0 10px; }
.page-hero #breadcrumbs a { color: rgba(255, 255, 255, .85); }
.page-hero #breadcrumbs a:hover { color: #fff; }

/* -------------------------------------------------------------- footer */
#footer {
    background: var(--chrome);
    border-top: 2px solid var(--accent);
    color: #e9e3e5;
    padding: 30px 0 0;
}
.f-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: var(--r-card);
    background: var(--chrome-deep);
}
.f-promo img { height: 48px; width: auto; object-fit: contain; }
.f-promo .fp-t {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.f-promo .fp-s { margin: 0; color: #bdb3b7; font-size: 13px; }
.f-promo-txt { flex: 1 1 260px; min-width: 0; }
.f-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.f-btns a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background .18s ease;
}
.f-btns a:hover { background: var(--accent); color: #fff; text-decoration: none; }

.f-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 10px;
}
.f-cols h3 {
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin: 0 0 12px;
}
.f-cols ul { margin: 0; padding: 0; list-style: none; }
.f-cols li { margin: 0 0 7px; }
.f-cols a { color: #bdb3b7; font-size: 13px; }
.f-cols a:hover { color: #fff; }
.f-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.f-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    color: #cfc7ca;
}
.f-trust svg { color: var(--accent-soft); }

.f-dis {
    background: var(--chrome-deep);
    border-top: 1px solid var(--chrome-line);
    padding: 16px 0;
    margin-top: 14px;
}
.f-dis p { margin: 0 0 8px; font-size: 12px; line-height: 20px; color: #a79ca0; }
.f-dis p:last-child { margin: 0; }
.f-dis strong { color: #d8ced2; }

.f-bot {
    background: var(--chrome-deep);
    border-top: 1px solid var(--chrome-line);
    padding: 12px 0;
}
.f-bot .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.f-bot p { margin: 0; font-size: 12px; color: #a79ca0; }
.f-bot .fb-l { display: flex; gap: 14px; }
.f-bot .fb-l a { color: #a79ca0; font-size: 12px; }
.f-bot .fb-l a:hover { color: #fff; }

/* ------------------------------------------------- floating CTA + to-top */
.tg-center-btn {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, #ff5a76, #c8102e, #7d0a1d, #e0144c);
    background-size: 300% 300%;
    animation: ctaShift 9s ease infinite;
    box-shadow: 0 10px 30px rgba(200, 16, 46, .45);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.tg-center-btn:hover { color: #fff; text-decoration: none; }
@keyframes ctaShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

#toTop {
    position: fixed;
    right: 18px; bottom: 80px;
    z-index: 90;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--chrome);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease, background .18s ease;
}
#toTop.on { opacity: 1; visibility: visible; }
#toTop:hover { background: var(--accent); }

/* ------------------------------------------------------------ reveal + misc */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

.notfound { text-align: center; padding: 20px 0 10px; }
.notfound .nf-c {
    font-family: var(--ff-display);
    font-size: 86px;
    line-height: 1;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

/* ------------------------------------------------------------- RTL mirror */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .ur-body {
    font-family: var(--ff-urdu);
    font-size: 17px;
    line-height: 38px;
}
[dir="rtl"] .ur-body h1, [dir="rtl"] .ur-body h2, [dir="rtl"] .ur-body h3 {
    font-family: var(--ff-urdu);
    line-height: 1.9;
}
[dir="rtl"] .da-s { padding: 0 0 0 10px; }
[dir="rtl"] .app-icb.s1 { order: 0; }
[dir="rtl"] .buttond { padding: 8px 38px 8px 5px; }
[dir="rtl"] .buttond .bi { left: auto; right: 0; border-radius: 0 var(--r-card) var(--r-card) 0; }
[dir="rtl"] #sbinput { padding: 0 20px 0 86px; margin: 0 0 0 -70px; }
[dir="rtl"] .entry ul { margin: 0 15px 20px 0; padding: 0 10px 0 0; }
[dir="rtl"] .ed-rule, [dir="rtl"] .widget .wt::after, [dir="rtl"] .box-title::after { left: auto; right: 0; }

/* =============================================================== responsive */
@media (max-width: 1240px) {
    :root { --measure: 100%; }
    .container { max-width: 100%; padding: 0 14px; }
}

@media (max-width: 1100px) {
    .grid6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .grid5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    #nav-main {
        position: fixed;
        inset: 60px 0 auto 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        background: var(--chrome);
        border-bottom: 2px solid var(--accent);
        transition: max-height .26s ease;
    }
    #nav-main.open { max-height: 70vh; overflow-y: auto; }
    #nav-main ul { display: block; padding: 8px 14px 16px; }
    #nav-main li { display: block; }
    #nav-main a { line-height: 44px; border-radius: 12px; padding: 0 14px; font-size: 15px; }
    #nav-main .nav-cta a { margin: 8px 0 0; text-align: center; }
    .nav-tog { display: flex; }

    /* the sidebar row unwinds: content first, sidebar after */
    #main-site .container.is-flex { display: block; }
    #sidebar {
        position: static;
        width: 100%;
        margin: 20px 0 0;
    }
    .ed-grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .grid6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .subcontainer h1 { font-size: 32px; line-height: 40px; }
    .main-box-title { font-size: 30px; line-height: 40px; }
    .page-hero h1 { font-size: 30px; line-height: 40px; }
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    .entry, .ed-lede { font-size: 16px; line-height: 27px; }
    .descripcion { font-size: 15px; line-height: 24px; text-align: left; }
    .bav1 .px-postmeta span, .bav2 .developer, .bav2 .version { font-size: 13px; }
    .ed-grid.c2, .ed-grid.c3, .ed-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid5, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #subheader { padding: 80px 0 30px; }
    .subcontainer h1 { font-size: 27px; line-height: 35px; }
    .subcontainer h2 { font-size: 15px; line-height: 26px; }
    .box { padding: 16px 16px; }
    .box-title { margin: -16px 0 12px; }
    .sub-s, .page-hero { padding-left: 16px; padding-right: 16px; }
    .app-top { display: block; }
    .app-icb.s1 { width: 100%; margin: 0 0 16px; }
    .image-single, .image-single img { width: 120px; height: 120px; }
    .buttond { width: 100%; max-width: 280px; }
    .da-s { flex: 0 0 50%; width: 50%; }
    .ed-cta { padding: 24px 18px; }
    .ed-cta-h { font-size: 21px; line-height: 29px; }
    .f-cols { grid-template-columns: 1fr; }
    .tg-center-btn { font-size: 14px; padding: 11px 18px; bottom: 14px; }
    #toTop { bottom: 72px; right: 12px; }
}

@media (max-width: 519px) {
    .ed-grid.c2, .ed-grid.c3, .ed-grid.c4 { grid-template-columns: 1fr; }
    .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid3 { grid-template-columns: 1fr; }
    .da-s { flex: 0 0 100%; width: 100%; padding: 0; }
    .entry > h2, .ed-head h2 { font-size: 19px; line-height: 26px; }
    .main-box-title, .page-hero h1 { font-size: 25px; line-height: 34px; }
    .botones_sociales li { flex: 0 0 calc(50% - 3px); }
}

@media (max-width: 400px) {
    .grid5 { grid-template-columns: 1fr; }
    .tg-center-btn span { display: none; }
    .tg-center-btn { padding: 13px 16px; }
}

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

@media print {
    #header, #sidebar, #footer, .tg-center-btn, #toTop, #searchBox { display: none !important; }
}
