/* ==========================================================================
   666W Game — 6666w.pk
   Single stylesheet. No external requests (fonts, icons and art are local),
   which keeps LCP and CLS clean on slow Pakistani mobile connections.
   ========================================================================== */

:root {
  --red: #e11d2f;
  --red-dark: #b3121f;
  --red-soft: #fdecee;
  --ink: #0d0d0f;
  --ink-2: #1c1d21;
  --body: #35373d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --gold: #f0b429;

  --wrap: 1180px;
  --read: 760px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, .06), 0 4px 14px rgba(13, 13, 15, .05);
  --shadow-md: 0 10px 34px rgba(13, 13, 15, .10);
  --header-h: 74px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .55em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.5em; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.35em; }
li { margin-bottom: .55em; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ------------------------------ Header ---------------------------------- */

.topbar {
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 34px; text-align: center;
}
.topbar strong { color: #fff; }
.topbar .dot { opacity: .6; }
@media (max-width: 560px) { .topbar .hide-xs { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 178px; height: 50px; }

.nav-panel {
  display: flex; align-items: center; gap: 18px;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .96rem; letter-spacing: .01em;
}
.nav-links a:hover { background: var(--bg-2); color: var(--red); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 0; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: .97rem; line-height: 1;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(225, 29, 47, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-nav { padding: 11px 20px; }

.nav-toggle {
  display: none; width: 46px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 8px;
    padding: 14px 20px 22px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; font-size: 1.02rem; }
  .nav-panel .btn { width: 100%; margin-top: 6px; }
}

/* ------------------------------ Article --------------------------------- */

main { display: block; }

.post { padding-block: 34px 10px; }
.post-head { max-width: var(--read); margin-inline: auto; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 13px;
  background: var(--red-soft); color: var(--red-dark);
  border-radius: 100px; font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.lede {
  font-size: clamp(1.06rem, 2.1vw, 1.22rem);
  color: var(--muted); line-height: 1.65; margin-bottom: 0;
}

.banner {
  max-width: var(--read);
  margin: 26px auto 22px;
  border-radius: 16px; overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-md);
}
.banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  max-width: var(--read); margin-inline: auto; margin-bottom: 10px;
}
.cta-row .btn { flex: 1 1 250px; }
.cta-note {
  width: 100%; margin: 4px 0 0;
  font-size: .87rem; color: var(--muted);
}

/* CTA sitting above the article title */
.cta-top { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }

.post-body { max-width: var(--read); margin-inline: auto; padding-bottom: 20px; }
.post-body > h2:first-of-type { margin-top: 1.4em; }
.post-body ul li::marker { color: var(--red); }
.post-body ol { counter-reset: none; }

.toc {
  margin: 30px 0 34px; padding: 22px 24px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2 { margin: 0 0 12px; font-size: 1.05rem; }
.toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 26px;
}
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { color: var(--body); font-size: .93rem; }
.toc a:hover { color: var(--red); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.callout {
  margin: 26px 0; padding: 20px 22px;
  background: var(--bg-2); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 6px; font-weight: 800; color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.6em; }
.steps > li {
  position: relative; margin-bottom: 14px; padding: 16px 20px 16px 62px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 15px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .9rem; font-weight: 800; line-height: 30px; text-align: center;
}
.steps > li p { margin: 0; }

/* In-app screenshots */
.shot { max-width: 300px; margin: 28px auto 32px; }
.shot img {
  width: 100%; height: auto; display: block;
  background: #0d0d0f; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.shot figcaption {
  margin-top: 12px; text-align: center;
  font-size: .86rem; line-height: 1.55; color: var(--muted);
}

.shot-row {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: center;
  margin: 28px 0 32px;
}
.shot-row .shot { margin: 0; flex: 0 1 300px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 1.6em; list-style: none; }
.chips li {
  margin: 0; padding: 9px 16px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 1.6em; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card ul { margin-bottom: 0; }
.card.pros { border-top: 4px solid #17914f; }
.card.cons { border-top: 4px solid var(--gold); }

.table-wrap { overflow-x: auto; margin: 0 0 1.7em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
caption { text-align: left; padding-bottom: 10px; font-size: .87rem; color: var(--muted); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg-2); color: var(--ink); font-weight: 700; }
tbody tr:hover { background: #fcfcfd; }

.review {
  margin: 0 0 16px; padding: 18px 22px;
  background: var(--bg-2); border-radius: var(--radius);
}
.review blockquote { margin: 0 0 10px; font-style: italic; color: var(--ink); }
.review figcaption { font-size: .88rem; font-weight: 700; color: var(--muted); font-style: normal; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  padding: 17px 40px 17px 2px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.03rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--red); font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 8px 18px 2px; }
.faq details > div p:last-child { margin-bottom: 0; }

.cta-band {
  margin: 40px 0 10px; padding: 34px 30px;
  background: linear-gradient(135deg, #131316 0%, #4a0a13 100%);
  border-radius: 16px; color: #d9dbe1;
}
.cta-band h2 { margin-top: 0; color: #fff; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.cta-band p { color: #c3c6ce; }
.cta-band .cta-row { margin-bottom: 0; }
.cta-band .cta-note { color: #9ea2ad; }

.disclaimer {
  margin: 34px 0 10px; padding: 18px 20px;
  background: #fffaf0; border: 1px solid #f3e2bd; border-radius: var(--radius);
  font-size: .9rem; color: #6b5a2e;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: #5a4a22; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 40px 0 10px; padding-top: 26px; border-top: 1px solid var(--line);
}
.post-nav a {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 700;
}
.post-nav a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.post-nav span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

/* --------------------------- Generic pages ------------------------------ */

.page { padding-block: 46px 20px; }
.page-head { max-width: var(--read); margin-inline: auto; margin-bottom: 18px; }
.page-body { max-width: var(--read); margin-inline: auto; }

.card-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 26px 0 10px; padding: 0; list-style: none; }
.card-list li { margin: 0; }
.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; }
.post-card h2, .post-card h3 { margin-top: 0; font-size: 1.2rem; }
.post-card p { font-size: .95rem; color: var(--muted); }
.post-card .btn { align-self: flex-start; }

/* ------------------------------ Footer ---------------------------------- */

.site-footer {
  margin-top: 60px; padding: 64px 0 30px;
  background: #fff; color: var(--body);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.footer-brand img { width: 68px; height: 68px; border-radius: 10px; }
.footer-brand .footer-name {
  margin: 26px 0 8px; color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em;
}
.footer-brand .footer-name span { color: var(--red); }
.footer-tag { margin: 0 0 20px; font-size: 1.1rem; color: var(--body); }
.footer-about { max-width: 48ch; font-size: .92rem; line-height: 1.7; color: var(--muted); }

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 18px; }
.footer-nav a { color: var(--ink); font-size: 1.15rem; font-weight: 500; }
.footer-nav a:hover { color: var(--red); text-decoration: none; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--body); }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 100px;
  font-weight: 700; color: var(--ink);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { padding-top: 44px; }
}

/* ---------------------------- Back to top -------------------------------- */

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0; border-radius: 50%;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------ Print ------------------------------------ */

@media print {
  .site-header, .topbar, .to-top, .cta-band, .site-footer, .post-nav { display: none; }
  body { font-size: 12pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
