/* Spacesuit Game Studio
   Type: Outfit (heavy display) + Space Mono (everything else).
   Spacing: multiples of 4px. Containers share one max width and one gutter. */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #0e0e0e;
  --bar: #080808;
  --card: #171717;
  --text: #ffffff;
  --soft: #d6d6d6;
  --dim: #9a9a9a;
  --line: rgba(255, 255, 255, .12);
  --gold: #f7b92a;
  --cyan: #2ac6d5;
  --display: "Outfit", "Arial Black", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --top: 84px;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --green: #3ddc84;
  /* type scale: mono for reading, Outfit for shouting */
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px;
  --fs-display: clamp(40px, 6vw, 96px);
  /* spacing scale (4px steps) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --section: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--top); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--mono); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--gold); color: #000; padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); color: var(--dim); font-size: 14px; line-height: 1.6; }

/* headings */
.h1, .h2, .h3, .slide__head { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.h1 { font-size: clamp(38px, 5vw, 76px); line-height: .95; }
.h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1; }
.h3 { font-size: 20px; line-height: 1.1; }

/* outlined button (Devolver-style) */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,.85); font: 400 15px/1 var(--mono); color: var(--text); white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--text); color: #000; transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--gold); }
.btn:active { transform: none; box-shadow: none; }
.btn .ico { width: 14px; height: 14px; }
.arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* header */
.top { position: sticky; top: 0; z-index: 100; height: var(--top); background: rgba(8,8,8,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top__in { height: 100%; display: flex; align-items: center; gap: 40px; padding-inline: var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.logo { display: block; flex: none; }
.logo img { width: auto; height: 64px; }
.top__nav { display: none; gap: 28px; }
.top__nav a { position: relative; padding-block: 8px; font: 900 21px/1 var(--display); text-transform: uppercase; letter-spacing: -.005em; transition: color .2s; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav a:hover { color: var(--gold); }
.top__nav a:hover::after, .top__nav a[aria-current]::after { transform: scaleX(1); }
.top__nav a[aria-current] { color: var(--text); }
.top__cta { display: none; margin-left: auto; align-items: center; height: 40px; padding: 0 18px; background: var(--gold); color: #000; font: 700 14px/1 var(--mono); border: 1px solid var(--gold); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.top__cta:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--cyan); }
.logo img { transition: transform .4s var(--ease); }
.logo:hover img { transform: rotate(-6deg) scale(1.06); }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.menu-open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: fixed; inset: var(--top) 0 0; z-index: 99; background: var(--bar); display: grid; align-content: start; padding: 24px var(--gutter); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.menu a { font: 900 36px/1 var(--display); text-transform: uppercase; padding: 20px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding-left .3s var(--ease); }
.menu a:hover, .menu a:active { color: var(--gold); padding-left: 12px; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s; }
@media (min-width: 860px) { .top__nav { display: flex; } .top__cta { display: inline-flex; } .burger { display: none; } }
@media (max-width: 859px) { :root { --top: 64px; } .logo img { height: 50px; } }

/* hero */
.hero { position: relative; display: grid; background: #000; overflow: hidden; min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); touch-action: pan-y; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; visibility: hidden; opacity: 0; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { visibility: visible; opacity: 1; z-index: 2; transition: opacity .9s ease; }
.slide__art { position: absolute; inset: 0; overflow: hidden; }
.slide__art img, .slide__art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.slide__art video { opacity: 0; transition: opacity 1.2s ease; }
.slide__art video.is-playing { opacity: 1; }
@media (min-width: 761px) { .slide__art img, .slide__art video { object-position: 50% 50%; } }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.6) 34%, rgba(10,10,10,0) 64%), linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,0) 40%); }
.slide__body { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 124px; display: grid; justify-items: start; align-content: end; }
.slide__body > * { max-width: 640px; }
.slide__body > .slide__head, .slide__body > .slide__sub { max-width: 780px; }
.slide__logo { width: auto; height: auto; max-width: min(70vw, 300px); max-height: 120px; object-fit: contain; object-position: left bottom; margin-bottom: 24px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.75)) drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.slide__head { font-size: clamp(34px, 4.4vw, 64px); line-height: .95; text-wrap: balance; }
.slide__sub { margin-top: 18px; font: 400 clamp(18px, 1.8vw, 26px)/1.15 var(--mono); text-transform: uppercase; letter-spacing: .01em; }
.slide__text { margin-top: 14px; max-width: 54ch; color: var(--soft); font-size: 16px; line-height: 1.6; }
.slide__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.slide.is-active .slide__body > * { animation: rise .9s var(--ease) both; }
.slide.is-active .slide__body > :nth-child(2) { animation-delay: .06s; }
.slide.is-active .slide__body > :nth-child(3) { animation-delay: .12s; }
.slide.is-active .slide__body > :nth-child(4) { animation-delay: .18s; }
.slide.is-active .slide__body > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.thumbs { position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; max-width: calc(100% - var(--gutter) * 2); overflow-x: auto; scrollbar-width: none; padding: 3px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; outline: 2px solid transparent; outline-offset: 1px; opacity: .65; transition: opacity .25s, outline-color .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb__logo { position: absolute; inset: 18% 14%; width: 72%; height: 64%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.thumb i { position: absolute; z-index: 2; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.thumb.is-active { opacity: 1; outline-color: #fff; }
.thumb.is-active::after { background: transparent; }
.thumb:hover { opacity: 1; }
.thumb.is-active i { animation: fill var(--slide, 9s) linear forwards; }
.hero.is-paused .thumb.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .slide__shade { background: linear-gradient(0deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.88) 38%, rgba(10,10,10,.1) 70%, rgba(10,10,10,.3) 100%); }
  .slide__body { padding-top: 24vh; padding-bottom: 96px; }
  .slide .slide__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide__logo { max-width: min(72vw, 270px); max-height: 100px; margin-bottom: 20px; }
  .slide__sub { margin-top: 14px; }
  .slide__text { font-size: 14px; }
  .slide__cta { margin-top: 24px; gap: 12px; }
  .btn { height: 44px; padding: 0 16px; font-size: 13px; }
  .thumbs { bottom: 20px; gap: 8px; }
  .thumb { width: 84px; border-radius: 6px; }
}

@media (min-width: 761px) and (max-height: 800px) {
  .slide__body { padding-top: 32px; padding-bottom: 108px; }
  .slide__logo { max-height: 88px; margin-bottom: 18px; }
  .slide__head { font-size: clamp(34px, 3.8vw, 54px); }
  .slide__sub { margin-top: 14px; font-size: 20px; }
  .slide__cta { margin-top: 24px; }
}

/* content blocks */
.block { padding-block: var(--section); }
.block--tight { padding-block: 0 var(--section); }
.block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 32px; }
.block__head .mono { max-width: 46ch; }

/* game cards */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .cards { gap: 24px; } }
.card, .post { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 10px; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.card::before, .post::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--a), transparent 0deg, transparent 200deg, var(--gold) 270deg, var(--cyan) 320deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: opacity .4s; animation: orbit 3.2s linear infinite; animation-play-state: paused; }
@keyframes orbit { to { --a: 360deg; } }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; isolation: isolate; }
.card__art, .card__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.card__vid { z-index: 1; background: #000; }
.card__media.is-portrait .card__art { filter: blur(18px) brightness(.5) saturate(1.2); transform: scale(1.2); }
.card__media.is-portrait .card__vid { object-fit: contain; background: transparent; }
.card__media.has-clip .card__logo { left: 12px; top: auto; bottom: 12px; transform: none; max-width: 34%; max-height: 30%; }
.card__media.has-clip .card__play { left: auto; right: 12px; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); z-index: 1; transition: opacity .4s; }
.card__logo { position: absolute; z-index: 2; left: 50%; top: 50%; width: auto; height: auto; max-width: 62%; max-height: 52%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); transition: opacity .4s, transform .6s var(--ease); }
.card__play { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); font: 400 12px/1 var(--mono); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.card__play .ico { width: 11px; height: 11px; }
.card__body { padding: 14px 6px 4px; display: grid; gap: 4px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__row h3 { font: 700 15px/1.3 var(--mono); }
.card__plat { display: flex; gap: 8px; color: var(--dim); flex: none; }
.card__plat .ico { width: 15px; height: 15px; }
.card__meta { font-size: 13px; color: var(--dim); }
.card__meta span { color: #555; padding-inline: 4px; }
@media (hover: hover) {
  .card:hover, .post:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 48px rgba(0,0,0,.45); }
  .card:hover::before, .post:hover::before { opacity: 1; animation-play-state: running; }
  .post:hover .post__media img { transform: scale(1.05); }
  .card:hover .card__art { transform: scale(1.06); }
  .card:hover .card__media.is-portrait .card__art { transform: scale(1.26); }
  .card:hover .card__vid { transform: scale(1.04); }
  .card:hover .card__play { opacity: 1; transform: none; }
}
@media (hover: none) { .card__play { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; } .card__play .ico { width: 12px; height: 12px; margin-left: 2px; } }

/* newsletter band */
.band { display: grid; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--gold); color: #111; }
.band .h2 { color: #111; max-width: 19ch; }
.band__form { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.band__row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .band .band__row input[type="email"], .band .band__row button[type="submit"] { flex: 1 1 100%; } }
.band input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: #111; color: #fff; font: 400 15px var(--mono); appearance: none; }
.band input[type="email"]::placeholder { color: #8a8a8a; }
.band input[type="email"]:focus { outline: 2px solid #111; outline-offset: 2px; }
.band button[type="submit"] { flex: none; height: 48px; padding: 0 18px; border-radius: 8px; border: 1.5px solid #111; font: 700 15px/1 var(--mono); color: #111; transition: background .2s, color .2s; }
.band button[type="submit"]:hover { background: #111; color: var(--gold); }
.band__fine { font-size: 12px; line-height: 1.55; color: rgba(17,17,17,.78); }
.band__msg { font-size: 13px; font-weight: 700; min-height: 20px; }
.band__form.is-done .band__row, .band__form.is-done .band__fine { display: none; }
@media (min-width: 960px) { .band { grid-template-columns: 1fr auto; } .band__form { width: 520px; } }

/* about: the moon */
.about { position: relative; display: grid; min-height: min(80vh, 780px); overflow: hidden; background: #000; }
.about__art { position: absolute; inset: 0; }
.about__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.about::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(20,20,20,0) 26%, rgba(0,0,0,0) 70%, var(--bar) 100%); pointer-events: none; }
.about__body { position: relative; z-index: 2; padding-top: clamp(32px, 4vw, 56px); padding-bottom: 40vh; display: grid; justify-items: start; align-content: start; }
.about__body > * { max-width: 640px; }
.about .slide__text { color: var(--soft); }

/* footer */
.foot { background: var(--bar); border-top: 2px solid var(--gold); padding: 48px 0 32px; }
.foot__grid { display: grid; gap: 40px; }
.foot__col { display: grid; gap: 14px; align-content: start; }
.foot__col .mono { max-width: 44ch; }
.foot__brand { gap: 20px; }
.foot__brand img { width: 88px; height: auto; }
.foot__links { display: grid; gap: 8px; }
.foot__links a { font-size: 14px; color: var(--soft); transition: color .2s; }
.foot__links a:hover { color: var(--gold); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* gameplay player */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
.player::backdrop { background: rgba(0,0,0,.88); }
.player[open] { display: grid; place-items: center; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.player__in { display: grid; gap: 12px; padding: 16px; }
.player__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.player__title { color: #fff; font-weight: 700; text-transform: uppercase; }
.player__close { color: var(--soft); padding: 8px 0; }
.player__close:hover { color: #fff; }
.player__frame { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.player__frame video { display: block; width: min(92vw, 1120px); aspect-ratio: 16 / 9; }
.player.is-portrait .player__frame video { width: auto; height: min(78vh, 760px); aspect-ratio: 9 / 16; }
.player__note { font-size: 12px; }

/* sections with a rule on top */
.block--line { border-top: 1px solid rgba(255,255,255,.06); }

/* the deal */
@media (min-width: 720px) { .deal { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .deal { gap: 24px; } }

/* blog cards */
.posts { display: grid; gap: 24px; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .posts { gap: 24px; } }
.post__media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post__body { padding: 16px 6px 6px; display: grid; gap: 8px; }
.post__date { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.post__title { font: 800 22px/1.15 var(--display); letter-spacing: -.01em; }
.post__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post__more { color: var(--text); font-size: 13px; margin-top: 4px; }

/* article page */
.article { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.article .wrap > * { max-width: 760px; margin-inline: auto; }
.article__back { display: inline-flex; gap: 8px; color: var(--soft); margin-bottom: 32px; }
.article__back:hover { color: var(--gold); }
.article .wrap > .article__back { display: flex; }
.article__head { display: grid; gap: 16px; margin-bottom: 32px; }
.article__head .h1 { font-size: clamp(36px, 5vw, 64px); }
.article__lede { font-size: 18px; line-height: 1.55; color: var(--soft); }
.article .wrap > .article__img { max-width: 1040px; margin: 0 auto 48px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__img figcaption { padding: 10px 14px; font-size: 12px; }
.article__head .mono a { color: var(--soft); border-bottom: 1px solid var(--gold); }
.article__body { font-size: 17px; line-height: 1.8; color: var(--soft); }
.article__body p + p { margin-top: 20px; }
.article__body h2 { font: 900 26px/1.1 var(--display); text-transform: uppercase; color: var(--text); margin: 44px 0 14px; }
.article__body ul { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.article__body li { position: relative; padding-left: 26px; }
.article__body li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold); }
.article__body a { color: var(--text); border-bottom: 1px solid var(--gold); }
.article__body strong { color: var(--text); }
.article__body h3 { font: 900 20px/1.2 var(--display); text-transform: uppercase; color: var(--text); margin: 32px 0 10px; }
.article__body ol { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 10px; }
.article__body ol li { padding-left: 4px; }
.article__body ol li::before { content: none; }
.article__body blockquote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--text); }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article__body code { font-family: var(--mono); font-size: .9em; background: var(--card); padding: 2px 6px; border-radius: 6px; }
.article__body img { border-radius: var(--r); margin-block: 24px; }
.article__body .table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.article__body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article__body th, .article__body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article__body th { color: var(--text); font-weight: 700; white-space: nowrap; }
.article__body tr:last-child td { border-bottom: 0; }
.article__body .faq { margin-top: 44px; }
.article__body .faq h2 { margin-top: 0; }
.article__next { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.article__next .post { max-width: 460px; }

/* game hub + landing pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 13px; }
.block .crumbs { padding-top: 0; margin-bottom: 24px; }
.crumbs a { color: var(--soft); transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text); }
.hero--game { min-height: min(72vh, 680px); min-height: min(72svh, 680px); }
.hero--game .slide__body { padding-top: 40px; padding-bottom: 48px; }
.hero--game .slide__text, .hero--game .slide .slide__text { display: block; overflow: visible; -webkit-line-clamp: unset; max-width: 60ch; }
.gp { display: grid; gap: 40px; align-items: start; }
.gp__aside { order: -1; }
.gp__main { min-width: 0; max-width: 760px; }
.gp__main > :first-child { margin-top: 0; }
.hub__body { margin-inline: auto; }
.facts { margin: 0; padding: 14px 6px 4px; display: grid; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; color: var(--dim); }
.facts dd { margin: 0; font-size: 14px; color: var(--soft); }
.facts dd a { color: var(--text); border-bottom: 1px solid var(--gold); }
.facts__cta { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 6px 8px; }
.card__row h3 a:hover { color: var(--gold); }
@media (min-width: 960px) {
  .gp { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
  .gp__aside { order: 0; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top) + 24px); }
  .gp__main { grid-column: 1; grid-row: 1; }
}
@media (max-width: 760px) { .hero--game .slide__body { padding-top: 32px; } }

/* ticker: the weird strip */
.ticker { overflow: hidden; background: var(--gold); color: #000; border-block: 2px solid #000; }
.ticker__track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: none; }
.ticker span { padding-block: 14px; font: 900 clamp(15px, 1.5vw, 20px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.ticker i { width: 9px; height: 9px; background: #000; transform: rotate(45deg); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* stickers: slapped on, slightly crooked */
.sticker { position: absolute; z-index: 4; top: 12px; right: 12px; padding: 7px 11px; background: var(--gold); color: #000; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.45); font: 900 12px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transform: rotate(5deg); transition: transform .35s var(--ease); pointer-events: none; }
.card:nth-child(2) .sticker { background: var(--cyan); transform: rotate(-4deg); }
.card:nth-child(3) .sticker { background: #fff; transform: rotate(3deg); }
@media (hover: hover) { .card:hover .sticker { transform: rotate(-4deg) scale(1.1); } .card:nth-child(2):hover .sticker { transform: rotate(5deg) scale(1.1); } }

/* game page feature panels (the antihero-style video sections) */
.features { border-top: 1px solid rgba(255,255,255,.06); }
.feat { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: #000; }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 18% 50%, rgba(247,185,42,.12), transparent 70%); }
.feat--flip { background: #0a0a0a; }
.feat--flip::before { background: radial-gradient(60% 80% at 82% 50%, rgba(42,198,213,.12), transparent 70%); }
.feat__in { display: grid; gap: var(--sp-6); align-items: center; }
.feat__media { min-width: 0; }
.feat__frame { position: relative; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 32px 80px rgba(0,0,0,.6); transition: transform .6s var(--ease), box-shadow .6s; }
.feat--wide .feat__frame { aspect-ratio: 16 / 9; }
.feat--portrait .feat__frame { width: min(78vw, calc(min(78svh, 720px) * .5625)); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 34px; border: 6px solid #232323; }
.feat__frame img, .feat__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__text { display: grid; gap: var(--sp-4); align-content: center; justify-items: start; }
.feat__no { color: var(--gold); letter-spacing: .14em; font-size: var(--fs-sm); }
.feat__head { font: 900 var(--fs-display)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.feat__blurb { max-width: 46ch; font-size: var(--fs-lg); line-height: 1.6; color: var(--soft); }
.feat__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5) var(--sp-7); padding-block: var(--sp-2) var(--section); }
.feat__endline { font: 900 clamp(26px, 3.4vw, 48px)/1 var(--display); text-transform: uppercase; }
.feat__end .slide__cta { margin-top: 0; }
.features { background: #000; }
@media (min-width: 900px) {
  .feat__in { gap: var(--sp-8); }
  .feat--wide .feat__in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .feat--wide.feat--flip .feat__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .feat--portrait .feat__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feat--flip .feat__media { order: 2; }
}
@media (hover: hover) { .feat__frame:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 0 1px var(--gold); } .feat--flip .feat__frame:hover { transform: translateY(-6px) rotate(.4deg); } }

/* studio status (footer) */
.status { margin-bottom: var(--sp-7); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: #0d0d0d; font-family: var(--mono); display: grid; gap: var(--sp-4); }
.status__head { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.status__ok { margin-left: auto; color: var(--green); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.status__grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-5); }
.status__grid dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.status__grid dd { margin: 4px 0 0; font: 900 clamp(17px, 2.2vw, 24px)/1.1 var(--display); text-transform: uppercase; color: var(--text); }
.status__log { font-size: var(--fs-sm); color: var(--soft); min-height: 1.6em; }
.status__prompt { color: var(--gold); }
.status__line::after { content: "_"; margin-left: 2px; color: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 720px) { .status__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .status__grid { grid-template-columns: repeat(5, 1fr); } }
.status__mom dd { display: inline-block; color: var(--gold); }
.status__mom dd.is-ring { animation: mom-ring .6s ease-in-out 2; }
@keyframes mom-ring { 0%, 100% { transform: none; } 20% { transform: rotate(-6deg) scale(1.15); } 40% { transform: rotate(6deg) scale(1.15); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
.foot__joke { flex-basis: 100%; color: var(--dim); }

/* fun: konami rain, toast */
.rain { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
.rain img { position: absolute; top: -90px; width: 40px; height: 40px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(var(--spin, 360deg)); } }
.toast { position: fixed; z-index: 510; left: 50%; bottom: 28px; transform: translate(-50%, 24px); max-width: calc(100vw - 32px); padding: 14px 20px; background: var(--gold); color: #000; border: 3px solid #fff; border-radius: 10px; font: 900 clamp(15px, 2vw, 20px)/1.2 var(--display); text-transform: uppercase; text-align: center; opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.shake { animation: shake .5s; }
@keyframes shake { 20% { transform: translate(-6px, 3px) rotate(-.4deg); } 40% { transform: translate(5px, -4px) rotate(.4deg); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }

/* 404 */
.lost { min-height: calc(100svh - var(--top)); display: grid; place-items: center; text-align: center; padding-block: var(--sp-8); background: radial-gradient(50% 50% at 50% 40%, rgba(42,198,213,.1), transparent 70%); }
.lost__in { display: grid; justify-items: center; gap: var(--sp-4); }
.lost__mark { width: 120px; height: 120px; animation: float 5s ease-in-out infinite; transition: transform .2s; }
.lost__mark img { width: 100%; height: 100%; }
.lost__mark:active { transform: scale(.88) rotate(-12deg); }
.lost__mark.is-boop { animation: boop .5s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes boop { 30% { transform: scale(.85) rotate(-14deg); } 60% { transform: scale(1.12) rotate(8deg); } }
.lost__code { letter-spacing: .2em; text-transform: uppercase; }
.lost__head { font-size: clamp(56px, 11vw, 148px); line-height: .85; position: relative; text-shadow: 3px 0 var(--cyan), -3px 0 var(--gold); animation: glitch 4s steps(1) infinite; }
@keyframes glitch { 0%, 92%, 100% { text-shadow: 3px 0 var(--cyan), -3px 0 var(--gold); transform: none; } 93% { text-shadow: -6px 0 var(--cyan), 6px 0 var(--gold); transform: translateX(3px) skewX(-4deg); } 95% { text-shadow: 6px 0 var(--cyan), -6px 0 var(--gold); transform: translateX(-3px); } 97% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--gold); } }
.lost__line { font: 800 clamp(22px, 3vw, 34px)/1.1 var(--display); max-width: 24ch; text-wrap: balance; }
.lost__boop { min-height: 1.6em; color: var(--gold); }
.lost .slide__cta { justify-content: center; }

/* small polish */
.article__body a:hover, .facts dd a:hover { background: var(--gold); color: #000; }
.post__more .arr { display: inline-block; }
.post:hover .post__more .arr { transform: translateX(4px); }
.card__body h3 { transition: color .2s; }
.crumbs { letter-spacing: .02em; }
@media (max-width: 760px) {
  :root { --section: 56px; }
  .block__head { margin-bottom: var(--sp-5); }
  .feat__blurb { font-size: var(--fs-md); }
  .feat__head { font-size: clamp(38px, 12vw, 56px); }
  .toast { bottom: 16px; }
  .sticker { font-size: 11px; padding: 6px 9px; }
}

/* reveal */
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

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

/* ---------- gameplay IS the card / IS the page (11-12, Antihero style) ---------- */
.card { padding: 0; overflow: hidden; border: 0; background: #000; }
.card__media.is-portrait { aspect-ratio: 3 / 4; border-radius: 0; }
.card__media.is-portrait .card__vid { object-fit: cover; background: #000; }
.card__media.is-portrait .card__art { filter: none; transform: none; }
.card__media.is-portrait::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 26%, rgba(0,0,0,0) 50%), linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 22%); }
/* the grid shows each game's App Store icon (what to look for on the store), not its logo (11-13) */
.card__icon { position: absolute; z-index: 2; left: 16px; top: 16px; width: clamp(56px, 22%, 76px); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.55); }
.card:has(.is-portrait) .card__body { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 18px 18px 18px 18px; pointer-events: none; }
.card:has(.is-portrait) .card__body a { pointer-events: auto; }
.card:has(.is-portrait) .card__row h3 { font: 900 clamp(26px, 3vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.card:has(.is-portrait) .card__meta, .card:has(.is-portrait) .card__plat { color: rgba(255,255,255,.75); }
.card:has(.is-portrait) .card__meta span { color: rgba(255,255,255,.4); }
.card__media.is-portrait .card__play { left: auto; right: 14px; bottom: 18px; }
@media (hover: hover) { .card:hover .card__media.is-portrait .card__art { transform: scale(1.04); } }
/* four games: 2x2 on tablets and small laptops, one row on wide screens. */
@media (min-width: 720px) { .cards:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .cards:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }

/* feature panels: the clip is a full-height slab of the page, no frame */
.feat--portrait { padding-block: 0; }
.feat--portrait .feat__in { max-width: none; padding: 0; gap: 0; }
.feat--portrait .feat__media { position: relative; }
.feat--portrait .feat__frame { width: 100%; height: auto; max-height: 100svh; aspect-ratio: 9 / 16; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.feat--portrait .feat__frame:hover { transform: none; box-shadow: none; }
.feat--portrait .feat__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.75) 22%, rgba(0,0,0,0) 48%); }
.feat--portrait.feat--flip .feat__frame::after { background: linear-gradient(0deg, #0a0a0a 0%, rgba(10,10,10,.75) 22%, rgba(10,10,10,0) 48%); }
@media (max-width: 859px) {
  .feat--portrait .feat__text { position: relative; z-index: 2; margin-top: -34svh; padding: 0 var(--gutter, 20px) var(--sp-8, 56px); }
}
@media (min-width: 860px) {
  .feat--portrait .feat__in { grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
  .feat--portrait.feat--flip .feat__in { grid-template-columns: minmax(0, 1fr) auto; }
  .feat--portrait .feat__frame { height: min(100svh, 1000px); max-height: none; width: auto; aspect-ratio: 9 / 16; }
  .feat--portrait .feat__frame::after { background: linear-gradient(90deg, rgba(0,0,0,0) 70%, #000 100%); }
  .feat--portrait.feat--flip .feat__frame::after { background: linear-gradient(270deg, rgba(10,10,10,0) 70%, #0a0a0a 100%); }
  .feat--portrait .feat__text { padding: var(--sp-8, 56px) clamp(32px, 7vw, 120px); }
}

/* App Store badge (live games only) */
.store { display: inline-block; align-self: center; flex: none; line-height: 0; border-radius: 7px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.store img { display: block; width: auto; height: 40px; }
.store:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--gold); }
.store:active { transform: none; box-shadow: none; }
.store:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card__body > .store { justify-self: start; margin-top: 8px; }
.card__body > .store img { height: 36px; }
.facts__cta .store { align-self: center; }

/* ---------- studio handheld in the About block (11-13) ---------- */
.about__copy { display: grid; justify-items: start; }
.about__copy > * { max-width: 640px; }
.gb { width: clamp(170px, 46vw, 230px); margin: 28px auto 0; justify-self: center; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.gb__in { position: relative; transform: rotate(-6deg); transition: transform .5s var(--ease); }
.gb:hover .gb__in { transform: rotate(0deg) scale(1.04); }
.gb__body { display: block; width: 100%; height: auto; }
.gb__screen { position: absolute; left: 23.56%; top: 14.07%; width: 52.48%; height: 27.16%; object-fit: cover; background: #0b0d04; border-radius: 1px; }
.motion .gb.is-in { animation: gb-float 6s ease-in-out infinite; }
@keyframes gb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 960px) {
  .about__body { grid-template-columns: minmax(0, 640px) 1fr; column-gap: 48px; }
  .gb { width: clamp(220px, 20vw, 290px); margin: 0; align-self: center; }
}

/* OUTFALL hero logo is the owner's white version (11-13): a bit wider, default dark shadow */
.slide__logo--outfall { max-width: min(78vw, 340px); }

/* headline sticker icons (owner art, 11-13) */
.h-icon { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.18em; margin-left: .12em; transform: rotate(8deg); transition: transform .35s var(--ease); }
.h-icon--bottle { height: 1.25em; transform: rotate(-10deg); }
.h-icon--mail { height: 1.25em; vertical-align: -0.12em; transform: rotate(-6deg); }
h2:hover .h-icon { transform: rotate(0deg) scale(1.12); }
