/* ==========================================================================
   MegaPlays — Design System  (light / indigo premium)
   Author: MegaPlays
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-soft: #eef0ff;
  --violet: #7c3aed;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  /* Ink & surfaces */
  --ink-900: #0b1020;
  --ink-800: #161e35;
  --ink-700: #2a3350;
  --ink-500: #5a6480;
  --ink-400: #7a839c;
  --line: #e6e8f0;
  --line-soft: #eff1f7;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;

  /* Accents */
  --mint: #0f9d8a;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --mint-soft: #ecfdf7;
  --rose: #be123c;

  /* Radius & shadow */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 12px 28px -12px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow-lg: 0 28px 60px -24px rgba(30, 27, 90, .28), 0 8px 20px -12px rgba(16, 24, 40, .12);

  /* Type */
  --font-head: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --header-h: 68px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); font-weight: 700; }

p { text-wrap: pretty; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

ul, ol { padding-left: 1.15rem; }

::selection { background: #dfe1ff; color: var(--ink-900); }

:focus-visible {
  outline: 3px solid #c7c9ff;
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(79, 70, 229, .8); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink-800);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { color: var(--brand-600); border-color: #cfd2ff; background: #fff; }

.btn-light {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--ink-900);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .75);
}
.brand-mark svg { width: 18px; height: 18px; fill: #fff; }
.brand span:not(.brand-mark) { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: .5rem;
  flex: 1 1 auto;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: .5rem .7rem;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-soft); }
.nav-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-soft); }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.search {
  position: relative;
  width: clamp(170px, 22vw, 250px);
}
.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-400);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: .9rem;
  color: var(--ink-900);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem .9rem .6rem 2.3rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.search input::placeholder { color: var(--ink-400); }
.search input:focus {
  outline: none;
  background: #fff;
  border-color: #b9bcff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.mobile-search { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--ink-800);
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, #e9e7ff 0%, rgba(233, 231, 255, 0) 60%),
    radial-gradient(700px 380px at 92% 0%, #e6f4ff 0%, rgba(230, 244, 255, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: #fff;
  border: 1px solid #dfe1ff;
  padding: .38rem .8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }

.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, .95rem + .35vw, 1.15rem);
  color: var(--ink-500);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.75rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.hero-stats span { font-size: .82rem; color: var(--ink-400); font-weight: 500; }

/* Hero art (pure CSS, no external images) */
.hero-art {
  position: relative;
  aspect-ratio: 1 / .92;
  min-height: 300px;
}
.hero-art .blob {
  position: absolute;
  inset: 8% 6% 10% 4%;
  background: var(--gradient);
  border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;
  opacity: .16;
  filter: blur(6px);
}
.hero-art .tile {
  position: absolute;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-art .tile-top {
  top: 4%;
  left: 6%;
  width: 54%;
  transform: rotate(-5deg);
  animation: floaty 7s ease-in-out infinite;
}
.hero-art .tile-mid {
  bottom: 10%;
  right: 2%;
  width: 50%;
  transform: rotate(4deg);
  animation: floaty 8.5s ease-in-out .6s infinite;
}
.hero-art .tile-small {
  bottom: 2%;
  left: 12%;
  width: 38%;
  transform: rotate(-2deg);
  animation: floaty 9.5s ease-in-out 1.1s infinite;
}
.hero-art .shot {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbe0ff, #eae4ff 60%, #d9ecff);
  position: relative;
}
.hero-art .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .85) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 62%, rgba(255, 255, 255, .7) 0 9%, transparent 10%),
    radial-gradient(circle at 48% 78%, rgba(255, 255, 255, .6) 0 7%, transparent 8%);
}
.hero-art .tile-body { padding: .7rem .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hero-art .tile-body strong { font-family: var(--font-head); font-size: .78rem; color: var(--ink-900); font-weight: 800; }
.hero-art .tile-body small {
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-700);
  background: var(--brand-soft);
  padding: .18rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .tile { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head .eyebrow { margin-bottom: .7rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--ink-500); font-size: .98rem; max-width: 46rem; }

.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- 7. Category pills ---------- */
.filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-block: .25rem .75rem;
  margin-bottom: 1.4rem;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-500);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .95rem;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--brand-700); border-color: #cfd2ff; background: #fdfdff; }
.chip[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- 8. Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(.85rem, 2vw, 1.35rem);
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: #cfd2ff;
  box-shadow: var(--shadow-md);
  color: inherit;
}
.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eceefe, #f4f0ff);
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 16, 32, .1), rgba(11, 16, 32, .55));
  opacity: 0;
  transition: opacity .2s ease;
}
.game-play span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateY(6px);
  transition: transform .2s ease;
}
.game-play svg { width: 12px; height: 12px; fill: var(--brand); }
.game-card:hover .game-play,
.game-card:focus-visible .game-play { opacity: 1; }
.game-card:hover .game-play span { transform: translateY(0); }

.game-meta { padding: .8rem .9rem .95rem; display: flex; flex-direction: column; gap: .2rem; }
.game-meta h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta span {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand-600);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-500);
}
.empty-state strong { display: block; color: var(--ink-900); font-family: var(--font-head); margin-bottom: .25rem; }

.card-skeleton {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card-skeleton .sk-img { aspect-ratio: 16 / 10; background: linear-gradient(100deg, #eef0f7 30%, #f7f8fc 50%, #eef0f7 70%); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
.card-skeleton .sk-line { height: 12px; margin: .8rem .9rem; border-radius: 6px; background: #eef0f7; }
.card-skeleton .sk-line.short { width: 45%; margin-top: 0; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* ---------- 9. Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-700);
  margin-bottom: .9rem;
}
.feature-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { font-size: .92rem; color: var(--ink-500); }

/* ---------- 10. Prose / SEO block ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-700); }
.prose ul, .prose ol { margin-bottom: 1.1rem; color: var(--ink-700); }
.prose li { margin-bottom: .45rem; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); margin: 1.5rem 0; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: #c7c9ff; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }

/* ---------- 11. FAQ ---------- */
.faq-list { display: grid; gap: .65rem; max-width: 60rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink-900);
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item .faq-a { padding: 0 1.2rem 1.15rem; color: var(--ink-500); font-size: .94rem; }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); padding-bottom: .85rem; margin-bottom: .85rem; }

/* ---------- 12. CTA band ---------- */
.cta-band {
  margin-block: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(124, 58, 237, .55), transparent 60%),
    radial-gradient(500px 260px at 8% 90%, rgba(79, 70, 229, .55), transparent 60%),
    #0b1020;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #c7cbe0; max-width: 42rem; margin: 0 auto 1.5rem; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- 13. Blog: cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcd9ff; color: inherit; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card h3 { font-size: 1.08rem; line-height: 1.3; }
.post-card p { font-size: .9rem; color: var(--ink-500); }
.post-card .meta { margin-top: auto; padding-top: .6rem; font-size: .78rem; color: var(--ink-400); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-soft);
  padding: .3rem .6rem;
  border-radius: 999px;
  width: fit-content;
}
.tag.mint { color: #0b6b5f; background: var(--mint-soft); }
.tag.amber { color: var(--amber); background: var(--amber-soft); }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--brand-600);
}
.read-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform .18s ease; }
.post-card:hover .read-link svg, .read-link:hover svg { transform: translateX(3px); }

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: inherit;
}
.featured-post:hover { color: inherit; }
.featured-post .thumb { position: relative; min-height: 280px; background: var(--line-soft); }
.featured-post .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: clamp(1.5rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.featured-post h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem); line-height: 1.22; }
.featured-post .excerpt { color: var(--ink-500); font-size: .97rem; }
.featured-post .meta { font-size: .8rem; color: var(--ink-400); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ---------- 14. Article page ---------- */
.article-hero {
  background:
    radial-gradient(760px 340px at 10% -20%, #e9e7ff 0%, rgba(233, 231, 255, 0) 62%),
    radial-gradient(620px 320px at 95% 0%, #e6f4ff 0%, rgba(230, 244, 255, 0) 60%),
    var(--bg);
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  font-size: .82rem;
  color: var(--ink-400);
  margin-bottom: 1.1rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: var(--ink-500); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }

.article-hero h1 { max-width: 22ch; margin-bottom: .9rem; }
.article-dek { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--ink-500); max-width: 60ch; margin-bottom: 1.15rem; }
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-400);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.article-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
}
.article-info .who { color: var(--ink-800); font-weight: 700; }
.article-info .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

.article-body { min-width: 0; font-size: 1.02rem; }
.article-body > * + * { margin-top: 1.05rem; }
.article-body p { color: var(--ink-700); }
.article-body h2 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
  margin-top: 2.25rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.article-body h3 {
  font-size: 1.12rem;
  margin-top: 1.6rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.article-body ul, .article-body ol { color: var(--ink-700); padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body li::marker { color: var(--brand); font-weight: 700; }
.article-body strong { color: var(--ink-900); }
.article-body a { text-decoration: underline; text-decoration-color: #c7c9ff; text-underline-offset: 3px; font-weight: 500; }
.article-body a:hover { text-decoration-color: var(--brand); }
.article-body figure { margin: 1.75rem 0; }
.article-body figure img { border-radius: var(--r-md); border: 1px solid var(--line); width: 100%; }
.article-body figcaption { font-size: .82rem; color: var(--ink-400); margin-top: .5rem; text-align: center; }

.takeaways {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.takeaways h2 {
  font-size: .95rem !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-700);
  margin: 0 0 .6rem !important;
}
.takeaways ul { margin: 0; padding-left: 1.15rem; font-size: .95rem; }

.callout {
  display: flex;
  gap: .85rem;
  background: var(--amber-soft);
  border: 1px solid #fde3c4;
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-size: .95rem;
  color: #7c3d05;
}
.callout .ic { flex: 0 0 auto; font-size: 1.1rem; line-height: 1.5; }
.callout.info { background: var(--brand-soft); border-color: #dcdaff; color: var(--brand-700); }
.callout.success { background: var(--mint-soft); border-color: #c6f2e6; color: #0b6b5f; }
.callout strong { color: inherit; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 520px;
}
caption {
  caption-side: bottom;
  font-size: .78rem;
  color: var(--ink-400);
  padding: .6rem .8rem;
  text-align: left;
  border-top: 1px solid var(--line-soft);
}
thead th {
  background: var(--surface-2);
  text-align: left;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbff; }
tbody td:first-child { font-weight: 600; color: var(--ink-900); }

/* Sidebar */
.article-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-xs);
}
.side-card h2, .side-card h3 {
  font-size: .78rem !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
  margin-bottom: .7rem;
}
.toc { list-style: none; padding: 0; display: grid; gap: .1rem; }
.toc a {
  display: block;
  font-size: .88rem;
  color: var(--ink-500);
  padding: .35rem 0;
  border-left: 2px solid var(--line);
  padding-left: .7rem;
  transition: all .16s ease;
}
.toc a:hover, .toc a.active { color: var(--brand-700); border-left-color: var(--brand); font-weight: 600; }

.author-box {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
.author-box .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
}
.author-box p { font-size: .88rem; color: var(--ink-500); margin: .2rem 0 0; }
.author-box strong { font-size: .95rem; }

/* ---------- 15. Footer ---------- */
.site-footer {
  margin-top: auto;
  background: #0b1020;
  color: #c3c8dd;
  padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.25rem;
}
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand span:not(.brand-mark) { background: linear-gradient(135deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer p { font-size: .88rem; color: #8b93b0; max-width: 32ch; }
.foot-col h2 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: .85rem;
  font-weight: 800;
}
.foot-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.foot-col a { color: #8b93b0; font-size: .89rem; transition: color .16s ease; }
.foot-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #6f7795;
}

/* ---------- 16. Utility pages (legal / 404) ---------- */
.page-head {
  background:
    radial-gradient(700px 320px at 15% -20%, #e9e7ff 0%, rgba(233, 231, 255, 0) 62%),
    var(--bg);
  padding-block: clamp(2rem, 5vw, 3rem) 2rem;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .6rem; }
.page-head p { color: var(--ink-500); max-width: 60ch; }
.legal-wrap { max-width: 820px; margin-inline: auto; padding-block: clamp(2rem, 4vw, 3rem); }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.legal-card h2 { font-size: 1.15rem; margin: 1.85rem 0 .6rem; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink-700); font-size: .96rem; }
.legal-card p { margin-bottom: .9rem; }
.legal-card ul { margin-bottom: 1rem; }
.updated { font-size: .82rem; color: var(--ink-400); border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }

.nf-wrap { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); max-width: 560px; margin-inline: auto; }
.nf-code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}

/* ---------- 16b. Contact form ---------- */
.contact-form { display: grid; gap: 1rem; margin: 1.25rem 0 1.75rem; max-width: 34rem; }
.contact-form .field { display: grid; gap: .35rem; }
.contact-form label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-800);
}
.contact-form small { font-size: .78rem; color: var(--ink-400); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink-900);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #b9bcff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid,
.contact-form select:user-invalid { border-color: #f0a7bb; }
.contact-form .btn { justify-self: start; }
.form-note {
  font-size: .88rem;
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  background: var(--brand-soft);
  color: var(--brand-700);
  border: 1px solid #dcdaff;
  margin: 0;
}
.form-note.error { background: #fff1f4; color: #9f1239; border-color: #f7c9d4; }
.form-note.ok { background: var(--mint-soft); color: #0b6b5f; border-color: #c6f2e6; }
.contact-form[aria-busy="true"] .btn { opacity: .65; pointer-events: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-lead { max-width: 46rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem clamp(1rem, 4vw, 2.5rem) 1rem;
    gap: .15rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; border-radius: 10px; font-size: .95rem; }
  .nav-bar { justify-content: space-between; }
  .nav-actions .search { display: none; }
  .mobile-search {
    display: block !important;
    padding: 0 clamp(1rem, 4vw, 2.5rem) .9rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .mobile-search .search { width: 100%; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { min-height: 220px; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .game-meta { padding: .65rem .7rem .75rem; }
  .game-meta h3 { font-size: .85rem; }
  .game-meta span { font-size: .66rem; }
  .hero-stats { gap: 1rem 1.5rem; }
  .article-side { grid-template-columns: 1fr; }
  .article-info { font-size: .8rem; }
  .cta-band { border-radius: var(--r-lg); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .nav-bar { gap: .5rem; }
  .brand { font-size: 1rem; gap: .45rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .nav-actions { gap: .45rem; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { width: 40px; height: 40px; }
}

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

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .site-footer, .article-side, .cta-band, .filters { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
}
