/* comeapk.com.co – single stylesheet, mobile first (360px base → 600 / 900 / 1200). */
/* CRITICAL START */
:root{--bg-dark:#0b0518;--bg-card:#180d2e;--neon:#c084fc;--purple:#7c3aed;--gold:#ffd700;--text:#faf5ff;--muted:#a99bc4;--glass:rgba(24,13,46,.6);--edge:rgba(192,132,252,.15);--font-head:'Sora',system-ui,sans-serif;--font-body:'Inter',system-ui,sans-serif;--font-hi:'Noto Sans Devanagari','Inter',system-ui,sans-serif;--r:14px;--r-sm:10px;--gap:16px;--header-h:64px;--bar-h:64px;--maxw:1140px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 12px)}
body{margin:0;background:var(--bg-dark);color:var(--text);font:400 16px/1.6 var(--font-body);min-width:320px;overflow-x:hidden;padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom,0px))}
html[lang="hi-IN"] body{font-family:var(--font-hi);line-height:1.75}
img,picture,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--neon)}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.2;margin:0 0 .5em;overflow-wrap:anywhere}
html[lang="hi-IN"] h1,html[lang="hi-IN"] h2,html[lang="hi-IN"] h3,html[lang="hi-IN"] h4{font-family:var(--font-hi);font-weight:700;line-height:1.35}
h1{font-size:clamp(1.65rem,5.4vw + .4rem,2.9rem);font-weight:800}
h2{font-size:clamp(1.35rem,3.4vw + .5rem,2rem);font-weight:700}
h3{font-size:clamp(1.1rem,2vw + .6rem,1.35rem);font-weight:700}
p,ul,ol{margin:0 0 1em}
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:16px}
.skip{position:absolute;left:-999px;top:8px;background:var(--gold);color:#000;padding:10px 14px;border-radius:8px;z-index:200;font-weight:600}
.skip:focus{left:8px}
.site-header{position:sticky;top:0;z-index:100;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--edge)}
.site-header .wrap{display:flex;align-items:center;gap:8px;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-family:var(--font-head);font-weight:800;font-size:1.05rem;margin-right:auto;min-height:48px}
.brand img{width:40px;height:40px;border-radius:10px}
.lang-switch{display:flex;border:1px solid var(--edge);border-radius:999px;overflow:hidden;font-size:.85rem;font-weight:600}
.lang-switch a,.lang-switch span{padding:0 12px;min-height:44px;display:inline-flex;align-items:center;text-decoration:none;color:var(--muted)}
.lang-switch [aria-current]{background:var(--purple);color:#fff}
.menu-btn{width:48px;height:48px;border:1px solid var(--edge);border-radius:12px;background:transparent;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.menu-btn svg{width:24px;height:24px}
.nav{position:fixed;inset:0 0 0 auto;width:min(84vw,340px);background:var(--bg-card);border-left:1px solid var(--edge);transform:translateX(100%);transition:transform .25s ease;z-index:150;padding:calc(var(--header-h) + 8px) 16px 24px;overflow-y:auto;visibility:hidden}
.nav.open{transform:none;visibility:visible}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;min-height:48px;padding:0 12px;border-radius:10px;color:var(--text);text-decoration:none;font-weight:600}
.nav a[aria-current="page"],.nav a:hover{background:rgba(124,58,237,.25);color:#fff}
.nav-close{position:absolute;top:10px;right:16px}
.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:140;opacity:0;pointer-events:none;transition:opacity .25s}
.backdrop.show{opacity:1;pointer-events:auto}
.hero{padding:28px 0 8px;background:radial-gradient(70% 50% at 50% 0%,rgba(124,58,237,.35),transparent 70%)}
.hero-grid{display:grid;gap:20px}
.hero .lead{color:var(--muted);font-size:1.05rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 22px;border-radius:14px;font-family:var(--font-head);font-weight:700;font-size:1rem;text-decoration:none;border:2px solid transparent;cursor:pointer;line-height:1.2;text-align:center}
html[lang="hi-IN"] .btn{font-family:var(--font-hi)}
.btn svg{width:22px;height:22px;flex:none}
.btn-gold{background:linear-gradient(135deg,#ffe066,var(--gold) 60%,#f5c400);color:#1a1200;box-shadow:0 8px 24px rgba(255,215,0,.25)}
.btn-gold:hover{filter:brightness(1.05)}
.btn-outline{background:transparent;border-color:var(--neon);color:var(--neon)}
.btn-outline:hover{background:rgba(192,132,252,.12)}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 16px}
.btn-row .btn{flex:1 1 200px}
.chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 20px}
.chips li{border:1px solid var(--edge);background:var(--glass);border-radius:999px;padding:6px 12px;font-size:.85rem;color:var(--muted);font-weight:600}
.hero-shot{margin:0 auto;width:min(60%,260px)}
.hero-shot img{width:100%;height:auto;border-radius:22px;border:1px solid var(--edge);box-shadow:0 20px 60px rgba(124,58,237,.35)}
/* CRITICAL END */

main{display:block}
.section{padding:32px 0}
.section + .section{border-top:1px solid var(--edge)}
.prose h2{margin-top:.2em}
.prose h3{margin-top:1.4em}
.prose p,.prose li{color:#e9e0f7}
.prose ul,.prose ol{padding-left:1.35em}
.prose li{margin-bottom:.4em}
.prose a{text-underline-offset:3px}
.prose blockquote{margin:1em 0;padding:12px 16px;border-left:3px solid var(--neon);background:var(--glass);border-radius:0 var(--r-sm) var(--r-sm) 0;color:var(--muted)}
.prose figure{margin:1.2em 0}
.prose figure.game-fig{max-width:220px}
.prose figure.game-fig img{border-radius:var(--r);border:1px solid var(--edge)}
.prose figcaption{font-size:.85rem;color:var(--muted);margin-top:6px}
.prose .btn{margin:.4em 0 1em}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1em 0;border:1px solid var(--edge);border-radius:var(--r-sm)}
table{border-collapse:collapse;width:100%;min-width:420px;font-size:.95rem}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--edge);vertical-align:top}
th{background:rgba(124,58,237,.2);font-family:var(--font-head);font-weight:700}
html[lang="hi-IN"] th{font-family:var(--font-hi)}
tr:last-child td{border-bottom:0}
.card{background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r);padding:16px}
.info-table th{width:42%}
.crumbs{font-size:.85rem;color:var(--muted);padding:12px 0 0}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px}
.crumbs li + li::before{content:"›";margin:0 6px;color:var(--muted)}
.crumbs li[aria-current]{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crumbs a{color:var(--muted)}
.page-head{padding:12px 0 8px}
.meta{color:var(--muted);font-size:.9rem;display:flex;flex-wrap:wrap;gap:6px 14px;margin-bottom:16px}
.takeaways{background:var(--glass);border:1px solid var(--edge);border-radius:var(--r);padding:14px 16px 6px;margin:0 0 20px}
.takeaways h2{font-size:1.05rem;margin-bottom:.4em}
.takeaways ul{padding-left:1.2em;margin:0}
.takeaways li{margin-bottom:.5em}
.toc{margin:0 0 24px}
.toc summary{cursor:pointer;font-family:var(--font-head);font-weight:700;padding:12px 16px;background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r-sm);list-style:none;min-height:48px;display:flex;align-items:center;justify-content:space-between}
.toc summary::-webkit-details-marker{display:none}
.toc summary::after{content:"+";font-size:1.3rem;color:var(--neon)}
.toc[open] summary::after{content:"−"}
.toc ol{margin:0;padding:12px 16px 12px 34px;background:var(--bg-card);border:1px solid var(--edge);border-top:0;border-radius:0 0 var(--r-sm) var(--r-sm)}
.toc li{padding:4px 0}
.toc a{color:#e9e0f7;text-decoration:none}
.toc a:hover{color:var(--neon)}
.post-hero{margin:0 0 20px}
.post-hero img{width:100%;max-width:360px;margin-inline:auto;border-radius:var(--r);border:1px solid var(--edge)}
.post-hero.portrait img{max-width:240px}

/* Games */
.games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0 0 16px}
.game{background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,border-color .2s}
.game:hover{transform:translateY(-3px);border-color:var(--neon)}
.game picture,.game img{width:100%;aspect-ratio:211/260;object-fit:cover;background:#120a24}
.game .g-body{padding:10px 12px 12px}
.game h3{font-size:.95rem;margin:0 0 4px}
.game .g-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--gold);font-weight:600}
.game p{font-size:.82rem;color:var(--muted);margin:6px 0 0}
.game[hidden]{display:none}
.filters{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;margin:0 -16px 8px;padding-inline:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.filters::-webkit-scrollbar{display:none}
.filters button{flex:none;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--edge);background:var(--bg-card);color:var(--text);font-weight:600;font-family:inherit;font-size:.9rem;cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff}
.show-more{display:flex;justify-content:center;margin:8px 0 0}
.games-grid.collapsed .game:nth-child(n+25){display:none}

/* Blog cards */
.post-grid{display:grid;grid-template-columns:1fr;gap:16px;list-style:none;padding:0;margin:0 0 16px}
.post-card{background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.post-card a.thumb{display:block;background:#120a24}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top}
.post-card .p-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.post-card .p-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--gold);font-weight:600}
.post-card h3{font-size:1.05rem;margin:0}
.post-card h3 a{color:var(--text);text-decoration:none}
.post-card h3 a:hover{color:var(--neon)}
.post-card p{font-size:.9rem;color:var(--muted);margin:0;flex:1}
.post-card .p-meta{font-size:.8rem;color:var(--muted)}
.cat-chips{margin-bottom:20px}
.cat-chips a{text-decoration:none}

/* FAQ */
.faq{display:flex;flex-direction:column;gap:8px;margin:0 0 20px}
.faq details{background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r-sm)}
.faq summary{cursor:pointer;padding:14px 44px 14px 16px;font-weight:600;font-family:var(--font-head);position:relative;list-style:none;min-height:48px;line-height:1.35}
html[lang="hi-IN"] .faq summary{font-family:var(--font-hi)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:16px;top:12px;font-size:1.4rem;color:var(--neon)}
.faq details[open] summary::after{content:"−"}
.faq .a{padding:0 16px 14px;color:#e9e0f7}
.faq .a p{margin:0}

/* HowTo steps */
.steps{list-style:none;padding:0;margin:0 0 20px;counter-reset:s}
.steps li{position:relative;padding:14px 16px 14px 60px;background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r);margin-bottom:10px;counter-increment:s}
.steps li::before{content:counter(s);position:absolute;left:14px;top:14px;width:34px;height:34px;border-radius:50%;background:var(--purple);color:#fff;font-family:var(--font-head);font-weight:800;display:flex;align-items:center;justify-content:center}
.steps strong{display:block;margin-bottom:4px;font-family:var(--font-head)}
html[lang="hi-IN"] .steps strong{font-family:var(--font-hi)}

/* CTA */
.cta{background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(24,13,46,.9));border:1px solid var(--edge);border-radius:var(--r);padding:22px 18px;margin:24px 0 8px;text-align:center}
.cta h2,.cta h3{margin-top:0}
.cta .btn-row{justify-content:center}
.cta small{color:var(--muted);display:block}
.notice{font-size:.85rem;color:var(--muted);border:1px solid var(--edge);background:var(--glass);border-radius:var(--r-sm);padding:12px 14px;margin:0 0 16px}

/* Related */
.related{margin:24px 0 8px}
.related ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.related li a{display:block;background:var(--bg-card);border:1px solid var(--edge);border-radius:var(--r-sm);padding:14px 16px;color:var(--text);text-decoration:none;font-weight:600;min-height:48px}
.related li a:hover{border-color:var(--neon)}
.share-lang{margin:20px 0}

/* Footer */
.site-footer{border-top:1px solid var(--edge);background:#08040f;padding:32px 0 24px;color:var(--muted);font-size:.9rem}
.foot-grid{display:grid;gap:24px}
.foot-grid h2{font-size:1rem;color:var(--text);margin-bottom:.6em}
.foot-grid ul{list-style:none;padding:0;margin:0}
.foot-grid li{margin:0}
.foot-grid a{display:inline-flex;align-items:center;min-height:48px;color:var(--muted);text-decoration:none}
.foot-grid a:hover{color:var(--neon)}
.legal{margin-top:24px;padding-top:16px;border-top:1px solid var(--edge);font-size:.82rem;line-height:1.6}
.legal p{margin:0 0 .6em}
.age-badge{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid var(--gold);color:var(--gold);font-weight:800;font-size:.8rem;margin-right:8px;vertical-align:middle}

/* Sticky bottom bar (mobile) */
.action-bar{position:fixed;left:0;right:0;bottom:0;z-index:120;display:flex;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--edge)}
.action-bar .btn{flex:1;min-height:48px;padding:8px 12px;font-size:.95rem}

/* Sitemap page */
.sitemap-list{columns:1;list-style:none;padding:0}
.sitemap-list li a{display:inline-flex;align-items:center;min-height:48px}
.sitemap-list ul{list-style:none;padding-left:16px}

/* 404 */
.notfound{text-align:center;padding:60px 0}
.notfound .code{font:800 6rem/1 var(--font-head);color:var(--purple);margin-bottom:8px}

/* Utilities */
.muted{color:var(--muted)}
.center{text-align:center}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

@media (min-width:600px){
  .games-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:repeat(2,1fr)}
  .related ul{grid-template-columns:repeat(3,1fr)}
  .sitemap-list{columns:2}
  .hero-shot{width:min(50%,280px)}
}
@media (min-width:900px){
  :root{--header-h:72px}
  body{padding-bottom:0}
  .action-bar{display:none}
  .menu-btn,.nav-close,.backdrop{display:none}
  .nav{position:static;width:auto;transform:none;visibility:visible;background:transparent;border:0;padding:0;overflow:visible;margin-right:12px}
  .nav ul{flex-direction:row;gap:2px}
  .nav a{min-height:44px;padding:0 12px;font-size:.92rem}
  .brand{font-size:1.15rem}
  .brand img{width:48px;height:48px}
  .hero{padding:48px 0 24px}
  .hero-grid{grid-template-columns:1.25fr .75fr;align-items:center;gap:40px}
  .hero-shot{width:min(100%,300px);margin:0 0 0 auto}
  .btn-row .btn{flex:0 1 auto;min-width:220px}
  .section{padding:44px 0}
  .games-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .post-grid{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .filters{margin-inline:0;padding-inline:0;flex-wrap:wrap;overflow:visible}
  .prose{max-width:820px}
  .post-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}
}
@media (min-width:1200px){
  .games-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  h1{font-size:2.9rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
