/* Low Poly Models. "Night Arcade, anaglyph". Dark theme only. */

:root {
  --bg: #121315;
  --panel: #212326;
  --panel2: #2b2d31;
  --line: #2b2d31;
  --ink: #fafafa;
  --dim: #a9acb3;
  --red: #ff1e40;
  --teal: #1effdd;
  --blush: #ffb4bf;
  --on-teal: #06110f;

  --disp: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --space: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Faint red/teal grid at the top of the page */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  background-image:
    linear-gradient(rgba(30, 255, 221, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 64, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(#000 0, transparent 85%);
  mask-image: linear-gradient(#000 0, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
main { flex: 1 0 auto; position: relative; z-index: 1; outline: none; padding-bottom: var(--space); }
img, video, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--disp); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--blush); color: #121315; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 30, 64, .35);
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--on-teal); padding: 10px 14px; border-radius: 10px;
  font: 700 15px var(--body); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; display: flex; justify-content: center; }
.stack-xl > * + * { margin-top: clamp(48px, 6vw, 80px); }

/* ------------------------------------------------------------ type helpers */
/* Mono is only for small labels. Everything else uses the body or display font. */
.kicker, .label, .meta, .count, .crumbs { font-family: var(--mono); }
.kicker {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 18px;
}
.blink {
  display: inline-block; width: 8px; height: 15px; background: var(--blush);
  vertical-align: -2px; margin-left: 6px; animation: blink 2.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 12px;
}
.k-teal { color: var(--teal); }
.k-blush { color: var(--blush); }
.k-red { color: var(--red); }
.meta { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--dim); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.meta .dot { opacity: .5; }
.meta .client { color: var(--blush); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 62ch; }
.empty { color: var(--dim); font-size: 16px; padding: 40px 0; }

.page-title { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 18px; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.section-text { color: var(--dim); max-width: 60ch; margin-top: 10px; }

/* Platform colours: Roblox teal, Decentraland blush, Web red */
.plat-roblox { color: var(--teal); }
.plat-decentraland { color: var(--blush); }
.plat-web { color: var(--red); }

/* ------------------------------------------------------------ buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 15px/1.2 var(--disp); letter-spacing: 0; text-transform: none;
  padding: 13px 22px; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--teal); color: var(--on-teal); text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { color: var(--on-teal); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(30, 255, 221, .55); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 180, 191, .06); box-shadow: inset 0 0 0 1.5px var(--blush); }
.btn-lg { padding: 15px 28px; min-height: 54px; }
.btn-sm { font-size: 14px; padding: 9px 16px; min-height: 40px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--panel2); color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none;
}
.btn .ico { flex: none; }

.more-link {
  display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--disp);
  color: var(--teal); text-decoration: none; white-space: nowrap; min-height: 44px;
}
.more-link .ico { transition: transform .2s var(--ease); }
.more-link:hover { color: var(--ink); }
.more-link:hover .ico { transform: translateX(4px); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; font: 500 14px var(--body); padding: 8px 14px; border-radius: 999px;
  background: var(--panel); color: var(--dim); text-decoration: none; border: 1px solid var(--panel2);
}
.chip:hover { color: var(--ink); border-color: var(--blush); }

.badge {
  font: 700 12px var(--body); letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; background: var(--red); color: #fff;
}
.badge-soon { background: var(--bg); color: var(--blush); box-shadow: inset 0 0 0 1.5px var(--blush); }

/* ------------------------------------------------------------ header + nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* The blur sits on a pseudo element so the fixed mobile menu is not trapped inside the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(18, 19, 21, .84);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; transition: transform .3s var(--ease); }
.brand:hover { color: var(--ink); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { font: 800 15px var(--disp); letter-spacing: .06em; text-transform: uppercase; }

.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link, .sub a {
  display: block; font: 600 14px var(--body); color: var(--dim); text-decoration: none;
  padding: 9px 10px; border-radius: 8px; white-space: nowrap;
}
.nav-link:hover, .sub a:hover { color: var(--ink); }
.nav-list > li.is-active > .nav-link,
.nav-list > li.is-active > .sub-head .nav-link,
.sub a[aria-current="page"] { color: var(--teal); }
/* The "/" prefix marks the active item only. */
.nav-list > li.is-active > .nav-link::before,
.nav-list > li.is-active > .sub-head .nav-link::before { content: "/"; color: var(--red); margin-right: 2px; font-family: var(--mono); }

.sub-head { display: flex; align-items: center; }
.sub-toggle {
  background: none; border: 0; padding: 6px 4px; margin-left: -8px; cursor: pointer; color: var(--dim);
  border-radius: 6px; display: inline-flex;
}
.sub-toggle svg { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: 8px; min-width: 200px;
  position: absolute; top: 100%; left: 0;
  background: var(--panel); border: 1px solid var(--panel2); border-radius: 12px;
  box-shadow: 0 20px 40px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.sub a { padding: 10px 12px; }
.sub a:hover { background: var(--panel2); }
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav-list > li:nth-last-child(-n+2) > .sub { left: auto; right: 0; }
@media (hover: hover) and (min-width: 1024px) {
  .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .brand-name { font-size: 13px; letter-spacing: .04em; }
  .nav-link { padding: 9px 7px; font-size: 13.5px; }
  .header-inner { gap: 10px; }
}

.burger {
  display: none; margin-left: auto; background: var(--panel); border: 1px solid var(--panel2);
  border-radius: 10px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.burger-box { display: grid; gap: 5px; width: 20px; }
.burger-box span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger-box span:first-child { background: var(--red); }
.burger-box span:last-child { background: var(--teal); }
.burger[aria-expanded="true"] .burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

@media (max-width: 1023px) {
  .burger { display: inline-flex; }
  /* Without JS the menu stays visible as a wrapped list. With JS it is a full height side panel. */
  .js .site-nav {
    position: fixed; top: 76px; right: 0; bottom: 0; width: min(400px, 100%); overflow-y: auto;
    background: var(--bg); border-left: 1px solid var(--line);
    padding: 12px var(--gutter) 40px; display: none; z-index: 2;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-backdrop:not([hidden]) {
    display: block; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 49;
    background: rgba(5, 6, 7, .7);
  }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .burger { display: none; }
  .no-js .site-nav { margin-left: 0; width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { font-size: 17px; padding: 14px 4px; }
  .sub-head { justify-content: space-between; }
  .sub-toggle { padding: 14px; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: none; padding: 0 0 10px 16px; display: none;
  }
  .has-sub.is-open > .sub { display: block; }
  .sub a { font-size: 16px; padding: 12px 4px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 13px; }
}

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--space) 0; position: relative; }
.section-tight { padding-top: clamp(32px, 5vw, 56px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.page-intro { padding-top: clamp(48px, 7vw, 96px); position: relative; }
.page-intro .lead { margin-top: 4px; }

.group-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.group-head-stack { display: block; }
.group-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.group-title { font-size: clamp(22px, 2.6vw, 30px); margin: 0; display: flex; align-items: center; gap: 12px; }
.count {
  font-size: 12px; color: var(--dim); background: var(--panel); border-radius: 999px; padding: 3px 9px;
}
.plat-dot { width: 12px; height: 12px; border-radius: 3px; background: currentColor; transform: rotate(45deg); flex: none; }

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.hero-title { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 22px; max-width: 13ch; }
.hero-sub { color: var(--dim); font-size: clamp(18px, 1.7vw, 21px); max-width: 42ch; margin: 0 0 32px; }
.hero-cat { position: relative; justify-self: center; width: min(620px, 100%); }
.hero-cat .halo {
  position: absolute; inset: 10%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 50%, rgba(255, 30, 64, .45), transparent 60%),
    radial-gradient(circle at 65% 50%, rgba(30, 255, 221, .45), transparent 60%);
  filter: blur(36px);
}
/* Slow float on the wrapper. site.js adds the mouse-follow tilt on the image. */
.cat-float { position: relative; animation: bob 5s ease-in-out infinite; }
.cat-img { width: 100%; will-change: transform; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ------------------------------------------------------------ trusted strip */
.trusted { padding-top: clamp(56px, 7vw, 88px); }
.trusted-head { margin-bottom: 18px; }
.trusted-head .label { margin: 0; }
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 56px; width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; }
.marquee-track img {
  height: 46px; width: auto; max-width: 130px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .55; transition: opacity .2s;
}
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
.trusted-text { color: var(--dim); max-width: calc(var(--maxw)); margin-top: 22px; }
.trusted-text p { max-width: 70ch; }

/* ------------------------------------------------------------ grids + cards */
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--panel); border-radius: var(--radius); overflow: hidden; min-width: 0;
  border: 1px solid rgba(255, 255, 255, .05);
  position: relative; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 30px -18px #000, 0 0 0 1px rgba(255, 255, 255, .08); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius); box-shadow: none; }
.card-pic { aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, #24262a, #1b1c1f); position: relative; }
.card-pic-wide { aspect-ratio: 16 / 10; }
.card-pic-tall { aspect-ratio: 4 / 5; }
.card-pic img, .card-pic video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-pic img { transform: scale(1.04); }
.card-pic .badge { position: absolute; top: 10px; left: 10px; }
.pic-fallback {
  --fa: 135deg; --warm: rgba(255, 30, 64, .62);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(var(--fa), var(--warm), transparent 55%),
    linear-gradient(calc(var(--fa) + 180deg), rgba(30, 255, 221, .5), transparent 55%),
    var(--panel);
}
.pic-fallback.is-blush { --warm: rgba(255, 180, 191, .55); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font: 700 18px/1.25 var(--disp); letter-spacing: -.01em; margin: 0; }
.card-text { color: var(--dim); font-size: 15px; line-height: 1.5; margin: 0; }
.card-text p { margin: 0 0 .6em; }
.card-actions { margin-top: auto; padding-top: 8px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .meta { order: -1; }
.game-card.is-decentraland .meta .plat { color: var(--blush); }

.play-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 19, 21, .75); color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal);
}

/* ------------------------------------------------------------ tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  background: var(--panel); color: var(--dim); transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink); background: var(--panel2); }
.tab.is-on { background: var(--red); color: #fff; font-weight: 700; }

.subnav { margin-top: 32px; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; font: 600 14px var(--body); color: var(--dim); text-decoration: none;
  padding: 14px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-on { color: var(--ink); border-bottom-color: var(--teal); }

/* ------------------------------------------------------------ home blocks */
.svc { background: var(--panel); border-radius: var(--radius); padding: 26px 24px; border-top: 3px solid var(--teal); }
.svc:nth-child(3n+2) { border-top-color: var(--red); }
.svc:nth-child(3n+3) { border-top-color: var(--blush); }
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { color: var(--dim); font-size: 16px; }

.mission-inner { max-width: 900px; }
.mission-text { font: 700 clamp(22px, 2.6vw, 32px)/1.35 var(--disp); letter-spacing: -.01em; }
.mission-text p { margin-bottom: .8em; }
.mission-closing {
  margin-top: 28px; font: 700 18px var(--disp); color: var(--blush);
  padding-left: 16px; border-left: 3px solid var(--blush);
}

.collab {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--panel); border-radius: 20px; padding: clamp(24px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.collab::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 255, 221, .14), transparent 65%); pointer-events: none;
}
.collab-cat { width: 120px; height: 120px; }
.collab-copy p { color: var(--dim); margin-top: 10px; }
.collab-cta { position: relative; z-index: 1; }

.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.press-item a, .press-inner {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 12px;
  background: var(--panel); color: var(--ink); text-decoration: none; border: 1px solid transparent;
  transition: border-color .15s, transform .15s var(--ease);
}
.press-item a:hover { border-color: var(--panel2); transform: translateY(-2px); color: var(--ink); }
.press-item img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.press-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.press-text strong { font: 700 16px var(--disp); }
.press-text span { color: var(--dim); font-size: 14px; line-height: 1.4; }
.press-item .ico { color: var(--dim); flex: none; }

/* ------------------------------------------------------------ games page + detail */
.platform-group.is-roblox .group-title { color: var(--ink); }
.platform-group.is-roblox .plat-dot { color: var(--teal); }
.platform-group.is-decentraland .plat-dot { color: var(--blush); }
.platform-group.is-web .plat-dot { color: var(--red); }

.crumbs { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.crumbs a { color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--teal); }
.game-hero { padding-top: clamp(32px, 5vw, 64px); }
/* Wide 16:9 cover gets the bigger column, so game thumbnails show uncropped. */
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.game-hero .game-title { font-size: clamp(34px, 4.2vw, 60px); }
.back-btn { display: none; }
@media (max-width: 860px) {
  .game-hero .crumbs { display: none; }
  .back-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; padding: 0 16px 0 12px;
    border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font: 600 15px var(--body); }
  .back-btn:hover { color: var(--teal); }
}
/* Description + trailer. A portrait (phone) video sits beside the text; a landscape one goes full width under it. */
.game-body { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.game-body.has-video.is-portrait { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }
.trailer { margin: 0; display: grid; gap: 8px; }
.trailer video { width: 100%; display: block; border-radius: 16px; background: #000; max-height: 80vh; }
.game-body.is-landscape .trailer video { aspect-ratio: 16 / 9; }
.trailer-embed { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--panel); position: relative; }
.trailer-embed iframe, .trailer-load { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-load { padding: 0; cursor: pointer; background: var(--panel); }
.trailer-load img { width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal); color: #06110f; display: grid; place-items: center; box-shadow: 0 10px 30px -10px #000; }
.trailer-load:hover .trailer-play, .trailer-load:focus-visible .trailer-play { transform: translate(-50%, -50%) scale(1.08); }
@media (max-width: 860px) {
  .game-body.has-video.is-portrait { grid-template-columns: 1fr; }
  .game-body.is-portrait .trailer { max-width: 360px; width: 100%; justify-self: center; }
}
.game-cover {
  border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: var(--panel);
  box-shadow: -6px 0 0 var(--red), 6px 0 0 var(--teal), 0 30px 60px -30px #000;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.badge-plat {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1.5px currentColor;
}
.genre { font: 600 15px var(--body); color: var(--dim); }
.game-title { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -.03em; margin-bottom: 16px; }
.game-short { font-size: clamp(18px, 1.8vw, 22px); color: var(--dim); max-width: 40ch; margin-bottom: 30px; }
.btn-play { font-size: 16px; padding-inline: 30px; }
.game-desc { max-width: 72ch; font-size: 18px; }

.gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .2s; }
.shot:hover img { transform: scale(1.05); }
/* Tall (portrait) pictures fit whole inside the tile instead of being cropped to a strip. */
.shot.is-tall img { object-fit: contain; }
.shot:focus-visible { outline-offset: 3px; }

/* ------------------------------------------------------------ lightbox + modal */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(8, 9, 10, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lb-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; margin: 0; font: 500 13px var(--mono); color: var(--dim); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--panel2);
  background: var(--panel); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--teal); color: var(--teal); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { border-color: var(--red); color: var(--red); }

.modal {
  border: 0; padding: 0; border-radius: 18px; background: var(--panel); width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 40px 80px -30px #000; border: 1px solid var(--panel2);
}
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.modal-pic { background: var(--panel2); }
.modal-pic img { width: 100%; height: 100%; object-fit: cover; max-height: 80vh; }
.modal-body { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.modal-title { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.modal-text { color: var(--dim); font-size: 15px; }
.modal-actions { margin-top: auto; padding-top: 10px; }
.modal-close { top: 12px; right: 12px; z-index: 2; }

/* ------------------------------------------------------------ showcase */
.sketch-frame { aspect-ratio: 4 / 3; background: var(--panel2); position: relative; }
.sketch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sketch-load { position: absolute; inset: 0; display: block; color: var(--ink); text-decoration: none; }
.sketch-load img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), filter .3s; }
.sketch-load:hover img { transform: scale(1.04); filter: brightness(.75); }
.sketch-play {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px var(--body);
  background: rgba(18, 19, 21, .82); color: var(--teal); padding: 9px 13px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.sketch .card-body { padding-block: 14px 16px; }
.sketch .card-title { font-size: 16px; }
.project + .project { border-top: 0; }

/* ------------------------------------------------------------ services */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px 28px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.svc-row.has-img { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 320px); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-num { font: 700 15px var(--mono); color: var(--red); padding-top: 6px; }
.svc-row:nth-child(even) .svc-num { color: var(--teal); }
.svc-title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.svc-copy p { color: var(--dim); max-width: 64ch; }
.svc-img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.quote {
  margin: 0; background: var(--panel); border-radius: 20px; padding: clamp(28px, 5vw, 56px);
  border-left: 3px solid var(--blush);
}
.quote blockquote { margin: 0 0 22px; font: 700 clamp(19px, 2.2vw, 26px)/1.45 var(--disp); }
.quote blockquote p::before { content: "\201C"; color: var(--teal); }
.quote blockquote p:last-child::after { content: "\201D"; color: var(--teal); }
.quote figcaption { display: grid; gap: 2px; font-size: 15px; }
.quote figcaption span { color: var(--dim); }

/* ------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  background: var(--panel); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column;
  gap: 12px; position: relative; border: 1px solid transparent;
}
.plan.is-highlight { border-color: var(--teal); box-shadow: 0 0 40px -18px var(--teal); }
.plan-flag {
  position: absolute; top: -12px; left: 22px; font: 700 12px var(--body);
  background: var(--blush); color: #121315; padding: 5px 10px; border-radius: 999px;
}
.plan-name { font-size: 22px; margin: 0; }
.plan-label { color: var(--teal); margin-bottom: -6px; }
.plan-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan-price .amount { font: 800 clamp(34px, 3.4vw, 42px)/1 var(--disp); letter-spacing: -.02em; }
.plan-price .period { color: var(--dim); font: 500 15px var(--body); }
.plan-blurb { color: var(--dim); font-size: 15px; margin: 0; }
.plan-facts { margin: 0; display: grid; gap: 6px; padding: 12px 0; border-block: 1px solid var(--line); }
.plan-facts:empty { display: none; }
.plan-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.plan-facts dt { color: var(--dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.plan-facts dd { margin: 0; text-align: right; font-weight: 600; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plan-features li { padding-left: 22px; position: relative; }
.plan-features li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--teal); border-radius: 2px;
}
.plan-cta { margin-top: auto; }
.note { color: var(--dim); font-size: 15px; border-left: 3px solid var(--red); padding-left: 16px; }
.prose-cols ul ul { columns: 1; }

/* ------------------------------------------------------------ team */
.member-pic { aspect-ratio: 1 / 1; background: var(--panel2); overflow: hidden; position: relative; }
.member-pic img, .member-pic video { width: 100%; height: 100%; object-fit: cover; }
/* Hover wave: the canvas shows the playing video over the still; the video element itself stays invisible. */
.member-pic .member-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.member-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .15s; }
.member-pic.is-playing .member-canvas { opacity: 1; }
.member-pic.is-playing .member-still { opacity: 0; }
.member-name { font-size: 20px; }

/* ------------------------------------------------------------ faq */
.accordion { display: grid; gap: 10px; }
.acc { background: var(--panel); border-radius: 12px; border: 1px solid transparent; transition: border-color .15s; }
.acc[open] { border-color: var(--panel2); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font: 700 18px/1.35 var(--disp);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover .acc-q { color: var(--teal); }
.acc summary:focus-visible { border-radius: 12px; outline-offset: -2px; }
.acc-q::first-letter { text-transform: uppercase; }
.acc-icon { width: 22px; height: 22px; position: relative; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 2px;
  background: var(--red); transition: transform .2s var(--ease), background .2s;
}
.acc-icon::after { transform: rotate(90deg); background: var(--teal); }
.acc[open] .acc-icon::after { transform: rotate(0deg); opacity: 0; }
.acc-a { padding: 0 22px 22px; color: var(--dim); }

/* ------------------------------------------------------------ prose (rich text) */
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose > * + p { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(19px, 2vw, 22px); margin: 1.4em 0 .4em; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; margin: 1.3em 0 .3em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose img { border-radius: 12px; margin-inline: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--dim); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--teal); color: var(--dim); }
.prose pre { background: #0b0c0d; border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--panel); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ------------------------------------------------------------ blog */
.post-card.is-first { grid-column: span 2; }
.post-card.is-first .card-title { font-size: clamp(20px, 2.2vw, 26px); }
.post-head { padding-top: clamp(40px, 6vw, 80px); }
.post-head .meta { margin-bottom: 14px; }
.post-title { font-size: clamp(32px, 4.6vw, 54px); }
.post-cover-wrap { margin-block: 32px 40px; max-width: 1040px; }
.post-cover { width: 100%; border-radius: 18px; max-height: 560px; object-fit: cover; }
.post-body { font-size: 18px; }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager-link {
  display: grid; gap: 6px; padding: 20px 22px; background: var(--panel); border-radius: 12px;
  text-decoration: none; color: var(--ink); border: 1px solid transparent;
}
.pager-link:hover { color: var(--ink); border-color: var(--red); }
.pager-link.is-next { text-align: right; }
.pager-link.is-next:hover { border-color: var(--teal); }
.pager-link .label { margin: 0; }
.pager-title { font: 700 17px/1.3 var(--disp); }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-block + .info-block { margin-top: 30px; }
.info-block p { color: var(--dim); }
.big-link { font: 700 clamp(18px, 2vw, 22px) var(--disp); color: var(--ink); word-break: break-word; }
.big-link:hover { color: var(--teal); }
.contact-form-wrap { background: var(--panel); border-radius: 18px; padding: clamp(22px, 4vw, 40px); scroll-margin-top: 100px; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 15px var(--body); color: var(--dim); }
.req { opacity: .7; }
.field input, .field textarea {
  width: 100%; font: 400 17px var(--body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--panel2); border-radius: 10px; padding: 13px 14px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: #3a3d42; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30, 255, 221, .14); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--blush); font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-weight: 600; outline: none; }
.alert-ok { background: rgba(30, 255, 221, .1); color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.alert-error { background: rgba(255, 30, 64, .12); color: var(--blush); box-shadow: inset 0 0 0 1.5px var(--red); }
.alert a { color: inherit; }
.secret {
  flex-wrap: wrap;
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; text-decoration: none;
  color: var(--ink); background: var(--panel); border: 1px dashed var(--panel2); max-width: 560px;
  font: 700 18px var(--disp); transition: border-color .2s, transform .2s var(--ease);
}
.secret-label { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--disp); color: var(--teal); }
.info-note { margin-top: 12px; font-size: 15px; }
.secret img { width: 56px; height: 56px; transition: transform .4s var(--ease); }
.secret-text { flex: 1; }
.secret:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-2px); }
.secret:hover img { transform: rotate(-12deg) scale(1.08); }

/* ------------------------------------------------------------ play */
.play-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--panel2);
}
.play-stage iframe, .play-stage spline-viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-start {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center;
  justify-items: center; gap: 24px; background:
    radial-gradient(circle at 35% 50%, rgba(255, 30, 64, .25), transparent 50%),
    radial-gradient(circle at 65% 50%, rgba(30, 255, 221, .22), transparent 50%), var(--panel);
}
.play-start img { width: clamp(90px, 16vw, 160px); height: auto; animation: bob 5s ease-in-out infinite; }
.play-start:focus-visible { outline-offset: -6px; }

/* ------------------------------------------------------------ 404 */
.notfound-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound-cat { width: min(260px, 70%); margin-bottom: 20px; }
.notfound .lead { margin-bottom: 28px; }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 56px; position: relative; z-index: 1; background: #0e0f10; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-blurb { color: var(--dim); font-size: 15px; margin-top: 16px; max-width: 40ch; }
.footer-email { font: 600 15px var(--body); display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; word-break: break-all; }
.footer-h { font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a:hover { color: var(--teal); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 32px;
  margin-top: 40px; border-top: 1px solid var(--line); font: 400 14px var(--body); color: var(--dim);
}
.footer-base p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-legal a { color: var(--dim); display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a:hover { color: var(--teal); }
/* Footer kept short: Explore links in two sub-columns, tighter rows where there is a mouse. */
.footer-col ul.two-col { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 1.2fr 1.5fr .8fr; } }
@media (hover: hover) and (pointer: fine) { .footer-col a, .footer-legal a { min-height: 34px; } }
.footer-legal a.footer-admin { color: var(--dim); opacity: .55; font-size: 13px; }
.footer-legal a.footer-admin:hover { opacity: 1; color: var(--teal); }
.glasses-bar { display: grid; grid-template-columns: 1fr 1fr; height: 4px; }
.glasses-bar span:first-child { background: var(--red); }
.glasses-bar span:last-child { background: var(--teal); }

/* ------------------------------------------------------------ v2 additions */
/* Game grids: 3 per row, 16:9 thumbnails shown whole. */
.grid-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-pic-169 { aspect-ratio: 16 / 9; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-card { transform-origin: 50% 100%; }
  .game-card:hover, .game-card:focus-within { transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateY(-4px); }
}

/* Cover used when an item has no image */
.pic-fallback .fb-cat {
  position: absolute; width: 30%; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
  opacity: .25; pointer-events: none;
}
.pic-fallback .fb-title {
  position: relative; font: 800 clamp(20px, 2.4vw, 32px)/1.1 var(--disp); letter-spacing: -.02em;
  text-wrap: balance; max-width: 90%;
}
.pic-fallback.is-big .fb-title { font-size: clamp(32px, 4vw, 56px); }

/* Home portfolio strip */
.folio-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.folio-tile {
  display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; color: var(--ink);
  background: linear-gradient(135deg, #24262a, #1b1c1f); border: 1px solid rgba(255, 255, 255, .05); text-decoration: none;
}
.folio-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.folio-tile:hover { color: var(--ink); }
.folio-tile:hover img { transform: scale(1.06); }
.folio-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font: 600 13px/1.3 var(--body);
  background: linear-gradient(transparent, rgba(10, 11, 12, .88)); opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.folio-tile:hover .folio-cap, .folio-tile:focus-visible .folio-cap { opacity: 1; transform: none; }

/* Home services: as many columns as fit, no empty column */
.svc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* Game page facts row */
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font-weight: 600; }

/* Portfolio "Show more" */
.show-more-row { display: flex; justify-content: center; margin-top: 32px; }

/* Services groups */
.svc-group .group-head { margin-bottom: 0; }
.svc-group .plat-dot { background: currentColor; }

/* Rich text: long links and words wrap instead of running off the edge */
.prose, .post-body, .card-text, .modal-text { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folio-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cat { order: -1; width: min(320px, 85%); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero-grid, .contact-grid, .modal-inner { grid-template-columns: 1fr; }
  .modal-pic img { max-height: 46vh; }
  .collab { grid-template-columns: 1fr; text-align: left; }
  .collab-cat { width: 84px; height: 84px; }
  .svc-row, .svc-row.has-img { grid-template-columns: 48px minmax(0, 1fr); }
  .svc-img { grid-column: 2; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lb-inner { padding: 64px 12px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-count { bottom: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .press-grid { grid-template-columns: 1fr; }
  .grid-4.grid, #portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-games.grid { grid-template-columns: 1fr; }
  .folio-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #portfolio-grid .card-body, .grid-4 .card-body { padding: 12px 12px 14px; }
  #portfolio-grid .card-title, .grid-4 .card-title { font-size: 15px; }
  .grid-4 .card-text { display: none; }
  .svc-row .svc-img { grid-column: 1 / -1; max-width: none; }
  .post-card.is-first { grid-column: auto; }
  .post-pager { grid-template-columns: 1fr; }
  .pager-link.is-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .btns .btn { flex: 1 1 auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .play-stage { aspect-ratio: 3 / 4; }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .blink, .cat-float, .hero-cat img, .play-start img { animation: none !important; }
  .game-card:hover, .game-card:focus-within { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; gap: 28px 40px; padding-inline: var(--gutter); }
  .marquee-track .dup { display: none; }
  .card:hover, .card:focus-within, .btn:hover { transform: none; }
}

/* Home games: each card sits in a filterable cell; the card fills it. */
.grid-cell { display: flex; min-width: 0; }
.grid-cell > .card { flex: 1; min-width: 0; }
