/* ---------- Tokens ---------- */
:root {
  --bg: #0B0F1A; --bg-elev: #121829; --bg-elev-2: #1A2238;
  --fg: #F3F5F9; --fg-muted: #9AA3B8; --line: rgba(255,255,255,.08);
  --studio: #2F7DFF; --lab: #F5B301; --game: #8B3DFF;
  --accent: var(--studio);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 72%, #fff); /* lighter accent for small text, AA on dark */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-hero: clamp(2.75rem, 6vw, 5rem); --fs-h2: clamp(2rem, 4vw, 3rem); --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --radius: 16px; --radius-lg: 24px; --gutter: 16px; --max: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
html[data-branch="studio"] { --accent: var(--studio); }
html[data-branch="lab"]    { --accent: var(--lab); }
html[data-branch="game"]   { --accent: var(--game); }

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs-body)/1.6 var(--font-body); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-hero); font-weight: 700; } h2 { font-size: var(--fs-h2); font-weight: 700; } h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; } .muted { color: var(--fg-muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #0B0F1A; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-title { position: relative; padding-bottom: .75rem; margin-bottom: 1.5rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--accent); border-radius: 2px; }
.section-title.center { text-align: center; } .section-title.center::after { left: 50%; transform: translateX(-50%); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 600 .75rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.grid { display: grid; gap: 1.5rem; } .grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); } .grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 12px; font: 600 1rem/1 var(--font-head); border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: #0B0F1A; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: .6rem 1rem; font-size: .875rem; }

/* ---------- Cards / tags ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 20px 50px -30px var(--accent); }
.card .icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem; }
.card .icon svg { width: 100%; height: 100%; }
.media { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 12px; background: var(--accent-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,15,26,.75), transparent 55%); pointer-events: none; }
.card:hover .media img { transform: scale(1.05); }
.card-project, .card-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; font: inherit; text-align: left; }
.card-project .media, .card-post .media { border-radius: 0; }
button.card-project { cursor: pointer; width: 100%; }
a.card-post:hover { text-decoration: none; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .5rem; }
.card-body h3 { margin: 0; } .card-body .meta { font-size: .8125rem; color: var(--fg-muted); display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 999px; font: 600 .75rem/1.4 var(--font-head); letter-spacing: .04em; background: var(--accent-soft); color: var(--accent-text); }
.tag--studio { --accent: var(--studio); } .tag--lab { --accent: var(--lab); } .tag--game { --accent: var(--game); } .tag--general { --accent: #9AA3B8; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Stats / accordion / empty ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; border-block: 1px solid var(--line); padding-block: 2rem; }
.stats div { text-align: center; } .stats b { display: block; font: 700 clamp(2rem, 4vw, 2.75rem)/1 var(--font-head); color: var(--accent); margin-bottom: .35rem; }
.stats span { color: var(--fg-muted); font-size: .9rem; }
.accordion { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font: 600 1.05rem/1.3 var(--font-head); display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion > div { padding: 0 1.5rem 1.5rem; color: var(--fg-muted); }
.empty-state { text-align: center; padding: 3rem 1.5rem; border: 1px dashed rgba(255,255,255,.18); border-radius: var(--radius-lg); background: var(--accent-soft); display: grid; gap: .75rem; justify-items: center; grid-column: 1 / -1; }
.empty-state svg { width: 56px; height: 56px; color: var(--accent); }
.empty-state h3 { margin: 0; }

/* ---------- Glow / hero ---------- */
.glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(120px); opacity: .35; pointer-events: none; z-index: 0; animation: drift 20s ease-in-out infinite alternate; }
.glow--studio { background: var(--studio); } .glow--lab { background: var(--lab); } .glow--game { background: var(--game); } .glow--accent { background: var(--accent); }
@keyframes drift { from { transform: translate(-10%, -5%) scale(1); } to { transform: translate(10%, 8%) scale(1.15); } }
.hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem); }
.hero > .container { position: relative; z-index: 1; }
.hero--split .container { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero--split .container { grid-template-columns: 1.1fr .9fr; } }
.hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--fg-muted); max-width: 60ch; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-art { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px var(--accent); aspect-ratio: 4/3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 1rem; bottom: 1rem; background: rgba(11,15,26,.8); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; font-size: .85rem; }
.hero-badge b { display: block; color: var(--accent); font-family: var(--font-head); }

/* ---------- Doors (home) ---------- */
.doors { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, 1fr); min-height: 70vh; } }
.door { --accent: var(--studio); position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); color: var(--fg); text-decoration: none !important; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.door--studio { --accent: var(--studio); } .door--lab { --accent: var(--lab); } .door--game { --accent: var(--game); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.8) brightness(.7); transition: transform .8s var(--ease), filter .5s; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,15,26,.95) 20%, rgba(11,15,26,.3) 60%, transparent); }
.door::after { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 50%; background: var(--accent); filter: blur(80px); opacity: 0; z-index: -1; transition: opacity .5s; }
.door:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--accent); }
.door:hover img { transform: scale(1.06); filter: saturate(1) brightness(.85); } .door:hover::after { opacity: .45; }
.door .door-logo { width: 40px; height: 40px; color: var(--accent); margin-bottom: auto; }
.door h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: .25rem; } .door .kicker { color: var(--accent-text); font: 600 .8rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; }
.door ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .35rem; color: var(--fg-muted); font-size: .95rem; }
.door ul li::before { content: "— "; color: var(--accent); }
.door .enter { display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-head); color: var(--accent-text); }
.door--game { border-radius: 28px; } /* hint of clay */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,15,26,.7); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-color: var(--line); background: rgba(18,24,41,.85); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none !important; }
.brand svg { width: 36px; height: 36px; color: var(--accent); flex: none; }
.brand .word { font: 700 1.05rem/1 var(--font-head); letter-spacing: .06em; } .brand .word small { display: block; font-size: .6rem; letter-spacing: .22em; color: var(--accent-text); margin-top: .2rem; }
.nav { display: none; gap: 1.75rem; align-items: center; }
.nav a { color: var(--fg-muted); font: 500 .95rem/1 var(--font-head); position: relative; padding-block: .5rem; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--fg); } .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 1px; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 2px; }
.lang-toggle button { background: none; border: 0; color: var(--fg-muted); font: 600 .75rem/1 var(--font-head); padding: .4rem .65rem; border-radius: 999px; cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: #0B0F1A; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: none; color: var(--fg); cursor: pointer; }
.mobile-nav { position: fixed; inset: 72px 0 0 0; background: rgba(11,15,26,.98); display: none; flex-direction: column; padding: 2rem var(--gutter); gap: 1.25rem; z-index: 49; }
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav a { font: 600 1.5rem/1 var(--font-head); color: var(--fg); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding-block: 4rem 2rem; margin-top: 4rem; }
.site-footer .cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer .fh { font: 700 .8rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .fh.studio { color: color-mix(in srgb, var(--studio) 72%, #fff); } .site-footer .fh.lab { color: var(--lab); } .site-footer .fh.game { color: color-mix(in srgb, var(--game) 72%, #fff); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; color: var(--fg-muted); font-size: .95rem; }
.site-footer ul a { color: var(--fg-muted); overflow-wrap: anywhere; } .site-footer ul a:hover { color: var(--fg); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: .85rem; }
.site-footer .bottom a { color: var(--fg-muted); }
.social { display: flex; gap: .5rem; } .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg-muted); }
.social a:hover { color: #0B0F1A; background: var(--accent); border-color: var(--accent); } .social svg { width: 18px; height: 18px; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 2.5rem/1 var(--font-head); color: var(--accent); opacity: .5; display: block; margin-bottom: .75rem; }

/* ---------- Clay (Game) ---------- */
.clay { border-radius: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #fff 10%), color-mix(in srgb, var(--accent) 85%, #000 25%)); color: #fff; border: 0;
  box-shadow: inset 6px 6px 12px rgba(255,255,255,.18), inset -8px -8px 16px rgba(60,0,140,.45), 0 20px 40px rgba(60,0,140,.45); }
.clay.card:hover { transform: translateY(-6px); box-shadow: inset 6px 6px 12px rgba(255,255,255,.2), inset -8px -8px 16px rgba(60,0,140,.45), 0 30px 50px rgba(60,0,140,.55); }
.clay .icon, .clay h3, .clay .muted { color: #fff; } .clay .muted { opacity: .85; }
.btn.clay { padding: 1rem 1.75rem; } .btn.clay:active { transform: translateY(2px); box-shadow: inset 6px 6px 12px rgba(255,255,255,.1), inset -4px -4px 8px rgba(60,0,140,.4), 0 6px 14px rgba(60,0,140,.4); }
.clay-soft { background: linear-gradient(145deg, #1F1A3A, #141026); color: var(--fg); box-shadow: inset 4px 4px 10px rgba(255,255,255,.06), inset -6px -6px 14px rgba(0,0,0,.5), 0 20px 40px rgba(40,0,100,.4); border-radius: 28px; border: 0; }
.tag.clay { box-shadow: inset 2px 2px 4px rgba(255,255,255,.3), inset -2px -2px 4px rgba(60,0,140,.5), 0 4px 10px rgba(60,0,140,.4); color: #fff; background: var(--accent); }
.float-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.float-shapes span { position: absolute; border-radius: 30%; background: linear-gradient(145deg, #B48CFF, #6B1FE0); box-shadow: inset 6px 6px 12px rgba(255,255,255,.25), inset -8px -8px 16px rgba(60,0,140,.6), 0 20px 40px rgba(60,0,140,.5); animation: float 7s ease-in-out infinite; }
.float-shapes span:nth-child(1) { width: 90px; height: 90px; top: 15%; right: 10%; } .float-shapes span:nth-child(2) { width: 56px; height: 56px; top: 60%; right: 30%; animation-delay: -2s; border-radius: 50%; }
.float-shapes span:nth-child(3) { width: 70px; height: 70px; top: 30%; right: 42%; animation-delay: -4s; border-radius: 22%; transform: rotate(20deg); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Dialog ---------- */
dialog.ls-dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); color: var(--fg); padding: 0; width: min(95vw, 960px); max-height: 88vh; }
dialog.ls-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 1.25rem; overflow: auto; max-height: calc(88vh - 70px); }
.dialog-body iframe { width: 100%; height: 70vh; border: 0; background: #fff; border-radius: 12px; }
.close-btn { background: none; border: 1px solid var(--line); color: var(--fg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

/* ---------- Prose (blog, legal) ---------- */
.prose { max-width: 72ch; } .prose h2, .prose h3 { margin-top: 2em; } .prose img { border-radius: 12px; margin-block: 1.5rem; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; color: var(--fg-muted); }
.prose pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; overflow: auto; } .prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.prose a { overflow-wrap: anywhere; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; } .field input, .field select { background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--fg); border-radius: 12px; padding: .8rem 1rem; font: inherit; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.filters button { background: var(--bg-elev); color: var(--fg-muted); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font: 600 .85rem/1 var(--font-head); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); color: #0B0F1A; border-color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; }
}

/* ---------- Game page clay variants ---------- */
html[data-branch="game"] .card-project { border-radius: 28px; border: 0; background: linear-gradient(145deg,#1F1A3A,#141026); box-shadow: inset 4px 4px 10px rgba(255,255,255,.06), inset -6px -6px 14px rgba(0,0,0,.5), 0 20px 40px rgba(40,0,100,.4); }
html[data-branch="game"] .card-project .tag { box-shadow: inset 2px 2px 4px rgba(255,255,255,.3), inset -2px -2px 4px rgba(60,0,140,.5); color: #fff; background: var(--accent); }
html[data-branch="game"] .empty-state { border-radius: 28px; }
.community { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; padding: 2.5rem; }
@media (min-width: 800px) { .community { grid-template-columns: 1fr auto; } }
.clay .icon { width: 72px; height: 72px; filter: drop-shadow(0 8px 12px rgba(40,0,100,.5)); }
@media (max-width: 899px) { .float-shapes { display: none; } }
blockquote.card.highlight { background: var(--accent); color: #0B0F1A; } blockquote.card.highlight footer b { color: #0B0F1A; }
blockquote.card footer { font-size: .9rem; margin-top: .5rem; }

/* ---------- Blog body: demote author headings under the page H1 ---------- */
#post-body h1 { font-size: var(--fs-h2); } #post-body h2 { font-size: var(--fs-h3); } #post-body h3 { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--fg-muted); } .contact-list a { overflow-wrap: anywhere; }

/* ---------- Layout stability for data-driven grids ---------- */
#posts-grid, #projects-grid, #latest-grid, #related-grid { min-height: 320px; align-content: start; }

/* ---------- Contrast hardening ---------- */
.hero .eyebrow { background: rgba(11,15,26,.6); padding: .4rem .75rem; border-radius: 999px; backdrop-filter: blur(6px); }
html[data-branch="game"] { --accent-text: color-mix(in srgb, var(--accent) 58%, #fff); }
html[data-branch="game"] .btn-primary, html[data-branch="game"] .lang-toggle button[aria-pressed="true"], html[data-branch="game"] .filters button[aria-pressed="true"], html[data-branch="game"] .empty-state .btn-primary { color: #fff; }

/* ---------- Video embeds in Markdown ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin-block: 1.5rem; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--short { aspect-ratio: 9/16; max-width: 380px; margin-inline: auto; }
