/* My Master Teen Patti — site stylesheet (2026 redesign).
   One file for every static page. Blog pages keep their own template styles. */
:root {
  --red: #e3172b;
  --red-d: #b80f20;
  --red-soft: #fff1f2;
  --red-line: #fbd0d5;
  --ink: #141827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e8eaf0;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-pink: #fff6f6;
  --bg-mint: #f1faf3;
  --gold: #f5b301;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --orange: #f97316;
  --pink: #ec4899;
  --dark: #170b0d;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 22px rgba(20, 24, 39, 0.07);
  --shadow-lg: 0 18px 40px rgba(20, 24, 39, 0.12);
  --font:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
li {
  margin-bottom: 0.4em;
}
.hl {
  color: var(--red);
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 999;
}
.skip:focus {
  left: 8px;
  top: 8px;
}
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  text-decoration: none !important;
  cursor: pointer;
  min-height: 48px;
}
.btn .ico {
  font-size: 1.15em;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 23, 43, 0.28);
}
.btn-red:hover {
  background: var(--red-d);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red-soft);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover {
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 16px;
  min-height: 40px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.link-arrow {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.logo svg {
  width: 40px;
  height: 34px;
}
.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.logo-txt .l1 {
  color: var(--ink);
  font-size: 1.02rem;
}
.logo-txt .l2 {
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  padding: 3px 7px 4px;
  border-radius: 5px;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 11px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--red);
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  color: var(--red);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.header-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle .ico {
  width: 26px;
  height: 26px;
}
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 10px 16px 18px;
    display: none;
    margin: 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 13px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-soft);
  }
  .main-nav a[aria-current="page"]::after {
    display: none;
  }
  .main-nav .btn {
    margin-top: 10px;
    color: #fff;
  }
}
@media (min-width: 1081px) {
  .main-nav .nav-dl {
    display: none;
  }
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.crumbs li {
  margin: 0;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #c0c4cf;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--red);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    115deg,
    #fff 0%,
    #fff 42%,
    #fff3f3 70%,
    #ffe9e6 100%
  );
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 179, 1, 0.18),
    rgba(227, 23, 43, 0.06) 55%,
    transparent 70%
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow.dark {
  color: var(--ink);
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  margin-bottom: 0.25em;
}
.hero .h1-sub {
  display: block;
  font-size: 0.52em;
  color: var(--ink);
  margin-top: 0.35em;
  font-weight: 800;
}
.hero .lead {
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 620px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-feats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin: 0;
}
.hero-feats b {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.2;
}
.hero-feats span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.2;
}
.hero-feats .fi {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.hero-media {
  justify-self: center;
  position: relative;
  width: 100%;
  max-width: 470px;
}
.hero-media > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(20, 24, 39, 0.22));
}
.hero-tag {
  position: absolute;
  z-index: 3;
  right: 0;
  top: -18px;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.05rem;
  color: var(--ink);
  transform: rotate(-6deg);
  text-align: center;
  line-height: 1.3;
  display: none;
}
@media (min-width: 880px) {
  .hero {
    padding: 56px 0 44px;
  }
  .hero .wrap {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
  }
  .hero-feats {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-tag {
    display: block;
    right: -60px;
  }
}
/* inner-page hero is a bit shorter */
.hero.hero-inner {
  padding: 34px 0 30px;
}
.hero.hero-inner h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
}
.hero.hero-inner .hero-media {
  max-width: 360px;
}
.hero.hero-plain .wrap {
  grid-template-columns: 1fr !important;
}
.hero.hero-plain .lead {
  max-width: 820px;
}

/* phone mock (home hero) */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  background: #0d0f16;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(20, 24, 39, 0.35),
    inset 0 0 0 2px #2b2f3d;
  transform: rotate(4deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0d0f16;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(160deg, #3b0764, #1e1b4b 55%, #0f172a);
  padding: 36px 12px 14px;
  color: #fff;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.phone-top .bal {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}
.phone-top .dep {
  background: var(--gold);
  color: #3a2300;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
}
.phone-brand {
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--gold);
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.phone-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1f2937;
  text-decoration: none !important;
}
.phone-grid img {
  width: 100%;
  aspect-ratio: 300/291;
  object-fit: cover;
}
.phone-grid span {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  padding: 3px 2px 4px;
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- sections ---------- */
.section {
  padding: 56px 0;
}
.section.tight {
  padding: 40px 0;
}
.section.soft {
  background: var(--bg-soft);
}
.section.pink {
  background: linear-gradient(90deg, #fff5f4, #fff 60%, #fff5f4);
}
.section.mint {
  background: var(--bg-mint);
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.sec-head h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  margin-bottom: 0.2em;
}
.sec-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.sec-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- game cards ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1000px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.game-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .game-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.game-card .thumb {
  display: block;
  aspect-ratio: 300/230;
  overflow: hidden;
  background: #1b1b2a;
}
.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.game-card h3 a {
  color: var(--ink);
}
.game-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 10px;
  flex: 1;
}
.game-card .tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 4px;
}

/* ---------- split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .split.rev > :first-child {
    order: 2;
  }
}
.split h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
}
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #2a0a12, #5b0d1a);
  padding: 18px;
}
.media-frame img {
  width: 100%;
  border-radius: 12px;
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1100px) {
  .feature-grid.six {
    grid-template-columns: repeat(6, 1fr);
  }
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 0.98rem;
  margin: 12px 0 6px;
}
.feature p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.fi {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto;
}
.fi .ico {
  width: 1em;
  height: 1em;
}
.fi.red {
  background: #ffe4e6;
  color: var(--red);
}
.fi.green {
  background: #dcfce7;
  color: var(--green);
}
.fi.blue {
  background: #dbeafe;
  color: var(--blue);
}
.fi.gold {
  background: #fef3c7;
  color: #d97706;
}
.fi.purple {
  background: #ede9fe;
  color: var(--purple);
}
.fi.pink {
  background: #fce7f3;
  color: var(--pink);
}
.fi.orange {
  background: #ffedd5;
  color: var(--orange);
}
.fi.dark {
  background: #e5e7eb;
  color: var(--ink);
}

/* ---------- download band ---------- */
.dl-band {
  background: linear-gradient(100deg, #fff 0%, #fff 55%, #fff1f1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.dl-band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .dl-band .wrap {
    grid-template-columns: 0.8fr 1.4fr 0.7fr;
  }
}
.dl-band h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}
.dl-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 18px 0 20px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .dl-meta {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dl-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.25;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dl-meta b {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
}
.dl-meta .ico {
  font-size: 22px;
  flex: 0 0 auto;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.shield-badge {
  width: 74px;
  height: 84px;
  margin-bottom: 14px;
}
.phone-img {
  max-width: 280px;
  margin: 0 auto;
  transform: rotate(-6deg);
  filter: drop-shadow(0 22px 34px rgba(20, 24, 39, 0.3));
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: st;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f4f7fc;
  border: 1px solid #e3e9f3;
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
}
.step .fi {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0;
  background: #fff;
  box-shadow: var(--shadow);
}
.step h3 {
  font-size: 0.98rem;
  margin: 0 0 2px;
}
.step h3 .n {
  color: var(--ink);
  font-weight: 900;
  margin-right: 6px;
}
.step p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: var(--muted);
    z-index: 2;
  }
}

/* ---------- guides ---------- */
.guides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .guides {
    grid-template-columns: 0.9fr 1.6fr;
  }
}
.guides h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
}
.guide-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .guide-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- responsible band ---------- */
.rg-band {
  background: linear-gradient(90deg, #eef8f0, #f6fbf7);
  border-top: 1px solid #d9eedf;
  border-bottom: 1px solid #d9eedf;
  padding: 40px 0;
}
.rg-band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 960px) {
  .rg-band .wrap {
    grid-template-columns: auto 1.5fr 0.8fr 1fr;
  }
}
.rg-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.rg-band p {
  font-size: 0.88rem;
  margin: 0;
}
.rg-shield {
  width: 90px;
  height: 100px;
}
.rg-18 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 10px solid var(--red);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.rg-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.rg-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.rg-list .ico {
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- final CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    900px 400px at 85% 50%,
    #7a0d1b 0%,
    #2a0a10 55%,
    #140608 100%
  );
  color: #fff;
  padding: 54px 0;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band .wrap {
    grid-template-columns: 1.4fr 1fr;
  }
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}
.cta-band p {
  color: #f1d5d9;
  max-width: 620px;
}
.cta-band .eyebrow {
  color: #ffb4bc;
}
.cta-cards {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cta-cards img {
  width: 110px;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}
.cta-cards img:nth-child(1) {
  transform: rotate(-10deg) translateY(10px);
}
.cta-cards img:nth-child(3) {
  transform: rotate(10deg) translateY(10px);
}

/* ---------- article layout ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 1000px) {
  .article-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
  }
}
.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  box-shadow: var(--shadow);
}
.toc b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: t;
}
.toc li {
  counter-increment: t;
  margin: 0;
}
.toc a {
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.84rem;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  line-height: 1.4;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  color: var(--red);
  font-weight: 800;
  font-size: 0.76rem;
  padding-top: 1px;
}
.toc a:hover {
  color: var(--red);
  text-decoration: none;
}
.side-sticky {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-dl {
  background: linear-gradient(150deg, #2a0a10, #6b0f1c);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.side-dl b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.side-dl p {
  font-size: 0.82rem;
  color: #f3d3d8;
  margin-bottom: 14px;
}
.side-dl .btn {
  width: 100%;
}
@media (max-width: 999px) {
  .article-side {
    display: none;
  }
}

/* long-form text */
.prose {
  font-size: 1rem;
  color: var(--ink-2);
}
.prose > *:last-child {
  margin-bottom: 0;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  margin: 1.8em 0 0.55em;
  scroll-margin-top: 90px;
  position: relative;
  padding-left: 16px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--red);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.12rem;
  margin: 1.4em 0 0.45em;
}
.prose strong {
  color: var(--ink);
}
.prose ul li::marker {
  color: var(--red);
}
.prose ol li::marker {
  color: var(--red);
  font-weight: 800;
}
.prose img {
  border-radius: 12px;
  margin: 10px 0 18px;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.3em;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 460px;
}
.table-wrap th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
}
.table-wrap td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap tr:nth-child(even) td {
  background: var(--bg-soft);
}
.note {
  display: flex;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 1.3em;
  font-size: 0.92rem;
  color: #5b4506;
}
.note.info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.note.warn {
  background: var(--red-soft);
  border-color: var(--red-line);
  color: #7f1020;
}
.note .ico {
  flex: 0 0 auto;
  font-size: 1.25rem;
  margin-top: 2px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}
.facts li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}
.facts span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.facts b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 1.4em;
}
@media (min-width: 700px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}
.pros-cons > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.pros-cons h3 {
  margin-top: 0;
  font-size: 1rem;
}
.pros-cons .pros h3 {
  color: var(--green);
}
.pros-cons .cons h3 {
  color: var(--red);
}
.pros-cons ul {
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(20, 24, 39, 0.04);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.2s;
}
.faq[open] summary::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- link lists (sitemap, hubs) ---------- */
.link-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 700px) {
  .link-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
.link-cols h3 {
  font-size: 1rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
}
.link-cols ul {
  list-style: none;
  padding: 0;
}
.link-cols li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ---------- footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
  font-size: 0.86rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr;
  }
}
.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 5px;
}
.site-footer li a {
  color: var(--ink-2);
}
.site-footer li a:hover {
  color: var(--red);
}
.foot-about p {
  color: var(--muted);
  max-width: 340px;
  margin-top: 12px;
}
.age-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red);
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
}
.compliance {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.compliance p {
  margin-bottom: 0.6em;
}
.dmca-badge {
  margin: 10px 0 0;
}
.dmca-badge img {
  display: inline-block;
}
.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 16px 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 819px) {
  .site-footer li a {
    display: inline-block;
    padding: 8px 0;
  }
}

/* ---------- sticky mobile download bar ---------- */
.m-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20, 24, 39, 0.12);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-bar img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.m-bar .t {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.m-bar .t b {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-bar .t span {
  font-size: 0.74rem;
  color: var(--muted);
}
.m-bar .btn {
  padding: 11px 18px;
  min-height: 44px;
}
@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }
}
@media (min-width: 768px) {
  .m-bar {
    display: none;
  }
}

/* ---------- chips ---------- */
.more-label {
  margin: 26px 0 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.chips li {
  margin: 0;
}
.chips a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.chips a:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

/* ---------- mobile overflow guard ----------
   Grid/flex children default to min-width:auto, so a wide table or long word inside an
   article stretched the column past the phone width and the text got cut off. */
@media (max-width: 999px) {
  .article-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero .wrap > *,
.article-wrap > *,
.split > *,
.guides > *,
.dl-band .wrap > *,
.rg-band .wrap > *,
.cta-band .wrap > *,
.foot-grid > *,
.sec-head > *,
.step > div {
  min-width: 0;
}
.prose,
.prose p,
.prose li,
.prose td,
.faq-a,
.lead {
  overflow-wrap: anywhere;
}
.prose img,
.prose svg,
.prose iframe {
  max-width: 100%;
}
.prose pre {
  overflow-x: auto;
  max-width: 100%;
}

/* ---------- tables on phones ----------
   Wide tables used to need sideways scrolling. Under 640px each row becomes a small card:
   the header text (data-label, added by the build) sits beside every value. */
@media (max-width: 640px) {
  .table-wrap table {
    min-width: 0;
  }
  .t-stack thead {
    display: none;
  }
  .t-stack,
  .t-stack tbody,
  .t-stack tr,
  .t-stack td {
    display: block;
    width: 100%;
  }
  .t-stack tr {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
  }
  .t-stack tr:first-child {
    border-top: 0;
  }
  .t-stack tr:nth-child(even) {
    background: var(--bg-soft);
  }
  .table-wrap .t-stack td,
  .table-wrap .t-stack tr:nth-child(even) td {
    background: none;
    border: 0;
    padding: 5px 0;
    display: grid;
    grid-template-columns: minmax(90px, 38%) 1fr;
    gap: 12px;
    align-items: start;
  }
  .t-stack td::before {
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }
  .t-stack td[data-label=""] {
    grid-template-columns: 1fr;
  }
  .t-stack td[data-label=""]::before {
    display: none;
  }
  .t-stack td:first-child {
    font-weight: 700;
    color: var(--ink);
  }
  .t-plain {
    font-size: 0.8rem;
  }
  .table-wrap .t-plain th,
  .table-wrap .t-plain td {
    padding: 8px 6px;
  }
}

/* ---------- blog (Node-rendered pages: index, posts, 404) ---------- */
.hero[data-kind],
.hero[data-bg] {
  padding: 34px 0 30px;
}
.hero[data-kind] .wrap,
.hero[data-bg] .wrap {
  display: block;
}
.hero[data-kind] h1,
.hero[data-bg] h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
}
.hero[data-kind] .lead {
  max-width: 820px;
}
.hero .sub {
  max-width: 760px;
  margin-bottom: 14px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-cta .btn {
  background: var(--red);
  color: #fff;
}
.hero-cta .btn-teal {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}
.blog-hero .lead {
  margin-bottom: 12px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 20px;
}
.byline .ico {
  color: var(--red);
}
.block {
  padding: 48px 0;
}
.h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  text-align: center;
  margin-bottom: 6px;
}
.block > .wrap > .lead {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 26px;
}
.sec-head .lead {
  margin: 0;
}
.post-main {
  min-width: 0;
}
.post-hero-fig {
  margin: 0 0 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.post-hero-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-body h2[style],
.post-body h3[style],
.post-body h4[style],
.post-body [style*="#410028"] {
  color: var(--ink) !important;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 1.3em;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.post-body th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
}
.post-body td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.post-body tr:nth-child(even) td {
  background: var(--bg-soft);
}
.post-body figure {
  margin: 1.2em 0;
}
.post-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body [style*="border-radius"] {
  border-radius: 12px;
}
/* post cards */
.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card > :not(.post-thumb) {
  margin-left: 18px;
  margin-right: 18px;
}
.post-link {
  text-decoration: none !important;
}
.post-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 16px 0 4px;
  color: var(--ink);
}
.post-link:hover .post-title {
  color: var(--red);
}
.post-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}
.post-ex {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
  flex: 1;
}
.post-more {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--red);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
/* pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 34px 0 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}
a.page-link:hover {
  border-color: var(--red);
  color: var(--red);
}
.page-link.is-current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.page-link.is-disabled {
  opacity: 0.45;
}
.page-gap {
  color: var(--muted);
  padding: 0 4px;
}
/* related articles + games */
.related {
  padding-top: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
.related-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.related-h {
  font-size: 1.1rem;
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li {
  margin: 0;
  border-top: 1px dashed var(--line);
}
.related-list li:first-child {
  border-top: 0;
}
.related-list a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
}
.related-list a:hover {
  color: var(--red);
}
.related-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.related-note a {
  font-weight: 700;
}
/* 404 */
.err-code {
  color: var(--red);
}
.err-links a {
  color: var(--ink);
}
.hero .sub code {
  background: var(--red-soft) !important;
  color: var(--red);
}
