/* Live Game Labs — blog styles (shares tokens, bar and footer with the home and legal pages) */
:root {
  --c-night: #0B0A1F; --c-night-2: #17133D; --c-ink: #221C4F;
  --c-saffron: #FF8A1F; --c-marigold: #FFC23C; --c-magenta: #FF2E88;
  --c-emerald: #1FB57A; --c-sky: #3D8BFF; --c-cream: #FFF4E0; --c-ruby: #E8344E;
  --text: var(--c-cream);
  --muted: rgba(255, 244, 224, .74);
  --faint: rgba(255, 244, 224, .52);
  --line: rgba(255, 244, 224, .14);
  --panel: rgba(23, 19, 61, .72);
  --f-display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  min-height: 100vh;
  background:
    radial-gradient(70vw 50vh at 85% -10%, rgba(255, 46, 136, .2), transparent 70%),
    radial-gradient(60vw 45vh at -10% 20%, rgba(255, 138, 31, .12), transparent 70%),
    radial-gradient(80vw 60vh at 50% 120%, rgba(31, 181, 122, .1), transparent 70%),
    var(--c-night);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23FFF4E0'%3E%3Cpath d='M30 18c7 7 11 10 11 15a5.5 5.5 0 0 1-9 4l2 6h-8l2-6a5.5 5.5 0 0 1-9-4c0-5 4-8 11-15Z'/%3E%3Cpath d='M90 78 80 68a6 6 0 0 1 10-7 6 6 0 0 1 10 7Z'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: var(--c-marigold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-cream); }
img { max-width: 100%; height: auto; }
::selection { background: var(--c-magenta); color: var(--c-cream); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── top bar ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgba(11, 10, 31, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 244, 224, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font: 700 .95rem/1 var(--f-display); letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(255, 46, 136, .6)); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { color: var(--muted); text-decoration: none; font: 600 .86rem/1 var(--f-body); padding: 14px 10px; }
.nav__link:hover, .nav__link[aria-current] { color: var(--c-cream); }
.nav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--c-magenta); color: #fff; text-decoration: none; font: 700 .82rem/1 var(--f-body); letter-spacing: .02em; transition: box-shadow .3s ease; white-space: nowrap; }
.nav__cta:hover { color: #fff; box-shadow: 0 0 28px 2px rgba(255, 46, 136, .55); }

/* ── shared bits ── */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--c-marigold); }
.eyebrow span { color: var(--c-magenta); font-size: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 244, 224, .04); font: 600 .78rem/1.3 var(--f-body); color: var(--muted); text-decoration: none; white-space: nowrap; }
.chip b { color: var(--c-cream); font-weight: 700; }
a.chip:hover, a.chip[aria-current] { border-color: var(--c-magenta); color: var(--c-cream); background: rgba(255, 46, 136, .14); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-cream); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--c-magenta); color: #fff; font: 700 .9rem/1 var(--f-body); text-decoration: none; transition: box-shadow .3s ease, transform .3s var(--ease-out); }
.btn:hover { color: #fff; box-shadow: 0 0 30px 2px rgba(255, 46, 136, .5); transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--c-cream); }
.btn--ghost:hover { border-color: var(--c-magenta); box-shadow: none; }

/* ── blog index ── */
.blog-hero { padding-block: clamp(40px, 8vw, 88px) clamp(20px, 4vw, 36px); }
.blog-hero h1 { font: 800 clamp(2.1rem, 7vw, 4.2rem)/1.02 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.blog-hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--c-saffron), var(--c-magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-hero p { margin-top: 16px; max-width: 60ch; font-size: 1.05rem; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding-bottom: 72px; }
.post-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(34, 28, 79, .92), rgba(17, 14, 45, .9));
  text-decoration: none; color: var(--text);
  transition: transform .45s var(--ease-out), border-color .35s ease, box-shadow .45s ease;
}
.post-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(255, 46, 136, .7); box-shadow: 0 18px 40px -18px rgba(255, 46, 136, .6); }
.post-card[hidden] { display: none; }
.post-card__art { aspect-ratio: 1200 / 630; display: block; }
.post-card__art > svg, .post-card__art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 .74rem/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.post-card__meta b { color: var(--c-marigold); font-weight: 700; }
.post-card h2, .post-card h3 { font: 700 1.08rem/1.3 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.post-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.post-card__more { margin-top: auto; font: 700 .85rem/1 var(--f-body); color: var(--c-magenta); }
.post-card--lead { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .post-card--lead { flex-direction: row; }
  .post-card--lead .post-card__art { width: 56%; flex: none; }
  .post-card--lead .post-card__body { padding: 30px; justify-content: center; }
  .post-card--lead h2 { font-size: 1.7rem; }
  .post-card--lead p { font-size: 1rem; }
}

/* ── article ── */
.article-head { padding-block: clamp(28px, 6vw, 64px) 24px; max-width: 880px; }
.article-head h1 { font: 800 clamp(1.9rem, 5.4vw, 3.3rem)/1.08 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.article-head .lede { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article-cover { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 630; max-height: 520px; width: 100%; }
.article-cover > svg, .article-cover > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-layout { display: grid; gap: 36px; padding-block: 36px 72px; }
.article-layout > * { min-width: 0; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } }
.prose { max-width: 72ch; font-size: 1.04rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 700 clamp(1.3rem, 3.4vw, 1.7rem)/1.25 var(--f-display); letter-spacing: -.02em; margin-top: 2em; text-wrap: balance; }
.prose h3 { font: 700 1.12rem/1.35 var(--f-body); margin-top: 1.6em; color: var(--c-cream); }
.prose p, .prose li { color: rgba(255, 244, 224, .84); }
.prose strong { color: var(--c-cream); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose ul li::marker { color: var(--c-magenta); }
.prose ol li::marker { color: var(--c-marigold); font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--c-magenta); padding: 6px 0 6px 18px; color: var(--muted); font-style: italic; }
.prose code { font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255, 244, 224, .08); color: var(--c-cream); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); }
.prose figure img { border-radius: 16px; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 480px; }
.prose th { text-align: left; padding: 12px 14px; font: 700 .72rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-marigold); border-bottom: 1px solid var(--line); }
.prose td { padding: 11px 14px; vertical-align: top; color: var(--muted); border-bottom: 1px solid rgba(255, 244, 224, .07); }
.prose tr:last-child td { border-bottom: 0; }
.prose a { color: var(--c-marigold); }

/* in-article Play Store card */
.play-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; border: 1px solid rgba(255, 46, 136, .35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 46, 136, .22), transparent 60%), linear-gradient(160deg, rgba(34, 28, 79, .95), rgba(17, 14, 45, .92)); }
.play-card svg { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7); }
.play-card h3, .play-card h2 { font: 700 1.05rem/1.25 var(--f-display); margin: 0; }
.play-card p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.play-card .badge { grid-column: 1 / -1; justify-self: start; }
.badge { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 16px 6px 12px; border-radius: 12px; background: #07061A; color: #fff; border: 1px solid rgba(255, 244, 224, .22); text-decoration: none; transition: background-color .3s ease, border-color .3s ease; }
.badge svg { width: 18px; height: 18px; box-shadow: none; border-radius: 0; fill: var(--c-magenta); }
.badge span { display: flex; flex-direction: column; font: 700 .9rem/1.05 var(--f-body); white-space: nowrap; }
.badge small { font: 600 .56rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.badge:hover { background: var(--c-magenta); border-color: var(--c-magenta); color: #fff; }
.badge:hover svg { fill: #fff; }

/* sidebar */
.aside { display: grid; gap: 18px; }
@media (min-width: 1000px) { .aside { position: sticky; top: 92px; } }
.toc { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 16px 14px; }
.toc h2 { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-marigold); margin: 0 6px 8px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 8px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc a:hover, .toc a.on { background: rgba(255, 46, 136, .12); color: var(--c-cream); }
.toc .sub a { padding-left: 20px; font-size: .82rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }

/* related */
.related { padding-block: 8px 80px; }
.related h2 { font: 700 clamp(1.3rem, 3.4vw, 1.7rem)/1.2 var(--f-display); margin-bottom: 18px; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); background: rgba(11, 10, 31, .6); }
.footer__in { max-width: 1180px; margin: 0 auto; padding: 40px var(--gutter) max(28px, env(safe-area-inset-bottom)); display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { margin-top: 10px; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer h4 { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--c-marigold); margin-bottom: 8px; }
.footer ul { list-style: none; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer li a:hover { color: var(--c-cream); }
.footer__base { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 0 72px; margin-top: -40px; }
.prose a.badge, .prose a.btn { color: #fff; text-decoration: none; }
.prose .play-card h2, .prose .play-card h3 { margin-top: 0; }

/* ── news ── */
.source-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 18px; display: grid; gap: 10px; }
.source-card h2 { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.source-card p { font-size: .88rem; color: var(--muted); }
.source-card .btn { justify-self: start; min-height: 44px; font-size: .9rem; }
.post-card--news .post-card__more { color: var(--c-marigold); }
@media (max-width: 420px) {
  .brand span { white-space: nowrap; font-size: .95rem; }
  .brand { gap: 8px; }
  .nav__link { padding-inline: 7px; }
  .nav__cta { padding: 0 14px; }
}
@media (max-width: 440px) { .nav .brand span { display: none; } }
