:root {
  color-scheme: dark;
  --bg: #101016;
  --surface: #191921;
  --surface-strong: #202029;
  --line: #303039;
  --text: #f7f3f3;
  --muted: #b9b5c4;
  --dim: #a9a5b3;
  --accent: #ff9fae;
  --ink: #2d1018;
  --wash: #2a171f;
  --scrollbar-thumb: #6b5b75;
  --scrollbar-track: #15141d;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Space Grotesk', var(--font);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
* { box-sizing: border-box; scrollbar-width: thin; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: .65rem; height: .65rem; }
  ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
  ::-webkit-scrollbar-thumb { border: 2px solid var(--scrollbar-track); border-radius: 1rem; background: var(--scrollbar-thumb); }
  ::-webkit-scrollbar-thumb:hover { background: #867193; }
}
html { scroll-behavior: smooth; }
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
.theme-switching::view-transition-new(root) { z-index: 1; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure, dl, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.036em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.28rem; }
section[id], figure[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 5rem, 77.5rem); margin-inline: auto; }

.theme-ps5 {
  --accent: #aabaff;
  --ink: #131a37;
  --wash: #1a203b;
}
.theme-pixel {
  --accent: #ffd285;
  --ink: #281b0d;
  --wash: #2d2419;
}
.theme-markdown {
  --accent: #c9b5fb;
  --ink: #26183d;
  --wash: #2a243b;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  color: var(--ink);
  background: var(--accent);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: #13131a; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  width: fit-content;
  color: var(--text);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  width: 2.38rem;
  height: 2.38rem;
  place-items: center;
  border-radius: .55rem;
  background: #f4e4e6;
  color: #271820;
  font: 700 1.25rem/1 var(--display);
  letter-spacing: -.08em;
}
.brand small { display: block; margin-top: .15rem; color: var(--dim); font-size: .78rem; font-weight: 500; }
.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.6rem; }
.site-nav a, .site-footer nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}
.site-nav a:hover, .site-footer nav a:hover { color: var(--text); }
.mobile-menu { display: none; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .65rem; }
.header-inner:not(:has(.site-nav)) .header-actions { grid-column: -2 / -1; }
.search-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface);
}
.site-search { width: clamp(10rem, 14vw, 13rem); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: .45rem .15rem .45rem .65rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
}
.search-field input::placeholder { color: var(--dim); }
.site-search button {
  display: grid;
  flex: 0 0 2.25rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 .35rem .35rem 0;
  background: transparent;
  color: var(--muted);
}
.site-search button:hover { color: var(--text); background: #ffffff0b; }
.site-search button:focus-visible { outline-offset: -3px; }
.header-source, .theme-toggle {
  display: grid;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.header-source:hover, .theme-toggle:hover { background: var(--surface-strong); color: var(--text); }
.theme-icon-sun, [data-theme="light"] .theme-icon-moon { display: contents; }
.theme-icon-moon, [data-theme="light"] .theme-icon-sun { display: none; }

.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.9rem;
  padding: 2.15rem 0 4.75rem;
}
.story-stage { position: relative; }
.story-slides {
  border: 1px solid #49303c;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  display: grid;
}
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  grid-template-rows: 1fr auto;
  background: linear-gradient(130deg, #301a24, #1b141d 48%, #22151f);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.hero-slide.is-current { z-index: 1; opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-slide.theme-dump { position: relative; }
.hero-slide.theme-ps5 { background: linear-gradient(125deg, #151826, #1a1d36 62%); }
.hero-slide.theme-pixel { background: linear-gradient(125deg, #171619, #2d2419 62%); }
.hero-slide.theme-markdown { background: linear-gradient(125deg, var(--wash), var(--surface) 62%); }
.featured-ribbon {
  position: absolute;
  z-index: 2;
  top: 1.75rem;
  left: -3.25rem;
  width: 11.75rem;
  padding: .3rem 0;
  overflow: hidden;
  transform: rotate(-45deg);
  border-block: 1px solid #ffd9df80;
  background: linear-gradient(100deg, #e67891, #ffadbc 50%, #e67891);
  box-shadow: 0 .22rem .55rem #160a1480;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
.featured-ribbon > span { position: relative; z-index: 1; }
.featured-ribbon::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, #ffffffab 50%, transparent 70%);
  transform: translateX(-110%);
  content: '';
}
.hero-slide.is-current .featured-ribbon::after { animation: featured-ribbon-flow 4.8s ease-in-out infinite; }
.home-hero:has(.story-toggle[data-paused="true"]) .featured-ribbon::after { animation-play-state: paused; }
@keyframes featured-ribbon-flow {
  0%, 22% { transform: translateX(-110%); }
  58%, 100% { transform: translateX(110%); }
}
.story-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 3.75rem;
  padding: 0;
  border: 1px solid #ffffff42;
  border-radius: .5rem;
  background: #16141de8;
  color: #fff;
  transform: translateY(-50%);
}
.story-arrow:hover { background: #302938; border-color: #ffffff80; }
.story-arrow .chevron { width: .65rem; height: .65rem; }
.story-arrow.previous { left: -1.05rem; }
.story-arrow.previous .chevron { transform: rotate(135deg); }
.story-arrow.next { right: -1.05rem; }
.story-controls {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: .62rem;
}
.story-track { display: flex; gap: .4rem; }
.story-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  background: transparent;
}
.story-button span {
  width: 1.85rem;
  height: .44rem;
  border-radius: 1rem;
  background: #ffffff58;
}
.story-button[aria-pressed="true"] span { background: #fff; }
.story-button:not([aria-pressed="true"]):hover span { background: #ffffffa6; }
.story-toggle {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .38rem;
  background: #15141c;
  color: var(--muted);
}
.story-toggle:hover { background: #25202e; color: #fff; }
.story-toggle span { width: .58rem; height: .69rem; border-inline: 2px solid currentColor; }
.story-toggle[data-paused="true"] span { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 4.25rem);
}
.hero-text-only .hero-copy { grid-column: 1 / -1; }
.kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero-copy h2 {
  margin-block: .9rem 1rem;
  font-size: clamp(3.25rem, 6.7vw, 7.25rem);
  line-height: .84;
  letter-spacing: -.085em;
}
.theme-ps5 .hero-copy h2 { font-size: clamp(2.25rem, 5vw, 4.75rem); }
.theme-ps5 .hero-summary { color: #d2d7ec; }
.hero-slide.theme-ps5 .app-strip { border-color: #353d62; background: #1c2035; color: #cbd2ed; }
.hero-slide.theme-ps5 .strip-brand { color: #e4e8ff; }
.hero-slide.theme-markdown .app-strip { border-color: var(--line); background: var(--wash); color: var(--muted); }
.hero-slide.theme-markdown .strip-brand { color: var(--text); }
.title-period { color: var(--accent); }
.hero-lede { max-width: 25ch; font: 600 clamp(1.25rem, 2.25vw, 1.85rem)/1.15 var(--display); letter-spacing: -.035em; }
.hero-summary { max-width: 35ch; margin-top: .65rem; color: #ddd0d8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero-copy .actions, .install-copy .actions { margin-top: 1.4rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .62rem 1rem;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: .46rem;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background .2s ease, border-color .2s ease;
}
.primary { color: var(--ink); background: var(--accent); }
.primary:hover { background: color-mix(in srgb, var(--accent), white 23%); }
.secondary { color: var(--text); border-color: #ffffff42; background: #18141b44; }
.secondary:hover { border-color: #ffffff85; background: #ffffff17; }

.hero-art {
  position: relative;
  min-height: 31.75rem;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 66% 20%, #9b3d57 0, #532237 36%, #291722 74%);
}
.theme-markdown .hero-art { background: radial-gradient(ellipse at 66% 42%, var(--wash), var(--surface) 85%); }
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.8rem;
  align-items: center;
  padding: .85rem clamp(1.1rem, 3vw, 2rem);
  border-top: 1px solid #4b313d;
  color: #dac8d0;
  background: #211720;
  font-size: .88rem;
}
.strip-brand { display: inline-flex; gap: .5rem; align-items: center; color: #ffe5ec; font-weight: 700; }
.strip-brand img { object-fit: contain; }
.app-strip > :last-child { margin-left: auto; }

.section-heading { margin-bottom: 1.15rem; }
.section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.home-recommendations { text-align: start; }
.recommendations-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1rem;
}
.carousel-controls { display: flex; flex: none; gap: .4rem; }
.carousel-arrow {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.carousel-arrow .chevron { width: .6rem; height: .6rem; }
.carousel-arrow.previous .chevron { transform: rotate(135deg); }
.carousel-arrow[aria-disabled="false"]:hover { background: var(--surface-strong); }
.carousel-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
.home-offers { text-align: start; }
.offers-heading, .offers-actions {
  display: flex;
  align-items: center;
  gap: .6rem 1rem;
}
.offers-heading { justify-content: space-between; flex-wrap: wrap; }
.offers-actions { gap: .6rem; flex-wrap: wrap; }
.offer-more {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding-inline: .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}
.offer-more:hover { color: var(--text); border-color: var(--accent); }
.offers-track {
  --offer-gap: 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: calc((100% - var(--offer-gap)) * .56) calc((100% - var(--offer-gap)) * .44);
  gap: var(--offer-gap);
  padding: 0 0 .35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.offers-track:has(> :only-child) { grid-auto-columns: 100%; }
.offer-entry { display: flex; min-width: 0; scroll-snap-align: start; }
.offer-entry:where(:nth-child(3n + 1), :nth-child(3n + 2):last-child) { grid-row: span 2; }
.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: linear-gradient(145deg, var(--wash), var(--surface) 72%);
}
.offer-card:hover { border-color: var(--accent); }
.offer-card:focus-visible { outline-offset: -3px; }
.offer-card.has-offer-art { grid-template-rows: auto 1fr; }
.offer-art { position: relative; aspect-ratio: 3 / 1; overflow: hidden; background: var(--wash); }
.offer-art img { width: 100%; height: 100%; object-fit: cover; }
.offer-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .4rem;
  padding: clamp(.8rem, 1.55vw, 1.2rem);
  overflow-wrap: anywhere;
}
.offer-label {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.offer-copy h3 { font-size: 1.23rem; }
.offer-entry:nth-child(3n + 1) h3 { font-size: clamp(1.4rem, 2.8vw, 2.3rem); }
.offer-description, .offer-period { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.offer-period { color: var(--dim); font-size: .8rem; }
.offer-footer {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-top: auto;
  padding-top: .25rem;
}
.offer-pricing { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .86rem; }
.offer-pricing s { color: var(--dim); }
.offer-discount {
  padding: .14rem .4rem;
  border-radius: .3rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}
.offer-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
}
.offer-card:hover .offer-action { text-decoration: underline; text-underline-offset: .18em; }
.offer-entry:not(:nth-child(3n + 1)) .has-offer-art {
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  grid-template-rows: 1fr;
}
.offer-entry:not(:nth-child(3n + 1)) .offer-art { aspect-ratio: auto; }
.offer-entry:not(:nth-child(3n + 1)) .offer-art img { position: absolute; inset: 0; }
.recommendations-track {
  --card-gap: 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--card-gap) - var(--card-gap)) / 3);
  gap: var(--card-gap);
  padding: 0 0 .35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.recommendations-track > li { min-width: 0; scroll-snap-align: start; }
.recommendation-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
}
.recommendation-card:hover { border-color: var(--accent); background: var(--surface-strong); }
.recommendation-card:focus-visible { outline-offset: -3px; }
.recommendation-art { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.recommendation-copy {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
  padding: .8rem .9rem;
}
.recommendation-copy img { flex: none; border-radius: .55rem; }
.recommendation-copy h3 { font-size: 1.08rem; }
.recommendation-copy p { color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: .15rem; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.catalog-search { width: min(100%, 19rem); align-items: center; }
.catalog-search > svg { flex: none; margin-inline-start: .65rem; color: var(--dim); }
.catalog-search input { padding-inline: .55rem .65rem; }
.catalog-toolbar {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.2rem, 1vw, .75rem);
}
.catalog-filters button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.catalog-filters button svg { flex: none; opacity: .78; }
.catalog-filters button:hover { color: var(--text); }
.catalog-filters button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: currentColor;
}
.catalog-filters button:is(:hover, [aria-pressed="true"]) svg { opacity: 1; }
.catalog-tab-count {
  min-width: 1.1rem;
  padding: .1rem .25rem;
  border-radius: .25rem;
  background: #ffffff0d;
  color: var(--dim);
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
}
.catalog-query { margin-bottom: 1rem; color: var(--muted); overflow-wrap: anywhere; }
.catalog-query a { color: var(--text); text-decoration: underline; text-underline-offset: .16em; }
.catalog-empty { padding: 1.25rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--muted); }
.catalog-list { display: grid; gap: 1rem; }
.catalog-entry {
  display: grid;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #353d62;
  border-radius: .8rem;
  background: linear-gradient(125deg, #202a49, #1a1c32 72%);
}
.catalog-entry.has-catalog-preview { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.catalog-entry.theme-dump { border-color: #49303c; background: linear-gradient(125deg, #301a25, #211720 72%); }
.catalog-entry.theme-dump .catalog-preview { background: var(--wash); }
.catalog-entry.theme-markdown { border-color: #423a57; background: linear-gradient(125deg, var(--wash), var(--surface) 72%); }
.catalog-entry.theme-markdown .catalog-preview { background: var(--wash); }
.catalog-entry.theme-pixel { border-color: #4f3e2a; background: linear-gradient(125deg, #30281c, #211c19 72%); }
.catalog-entry.theme-pixel .catalog-preview { background: #101e22; }
.catalog-preview { position: relative; min-height: 18rem; overflow: hidden; background: #15192d; }
.catalog-app-icon { display: none; }
.catalog-image { position: absolute; inset: 0; }
.catalog-image:focus-visible { outline-offset: -5px; }
.catalog-image::after { position: absolute; inset: 0; background: linear-gradient(0deg, #151933b5, transparent 42%); content: ''; pointer-events: none; }
.preview-image, .preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.preview-image.is-current, .catalog-preview.is-playing .preview-video { opacity: 1; }
.preview-toggle {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #ffffff58;
  border-radius: .4rem;
  background: #17192ce8;
}
.preview-toggle:hover { background: #282c48; }
.preview-toggle span { width: .62rem; height: .74rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.preview-toggle[aria-pressed="true"] span { border-inline: 2px solid currentColor; background: none; clip-path: none; }
.catalog-play {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .72rem;
  border: 1px solid #ffffff58;
  border-radius: .4rem;
  background: #17192ce8;
  font-size: .88rem;
  font-weight: 700;
}
.play-icon {
  display: inline-block;
  width: .68rem;
  height: .76rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.catalog-copy { align-self: center; padding: clamp(1.4rem, 3.6vw, 3rem); }
.catalog-copy h3 { margin: .52rem 0 .72rem; font-size: clamp(2.1rem, 4vw, 3.55rem); }
.catalog-copy p:not(.kicker) { color: #d2d6e8; }
.catalog-copy .catalog-lede { margin-bottom: .25rem; color: var(--text); font-weight: 700; }
.catalog-footer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-top: 1.3rem; }
.catalog-mobile-action { display: none; }
.repo-stars {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.15rem;
  margin-left: auto;
  padding: .2rem .56rem;
  border: 1px solid #ffffff35;
  border-radius: .38rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.repo-stars:hover { color: var(--text); border-color: var(--muted); }
.repo-stars svg { color: var(--accent); }

.tags { display: flex; list-style: none; flex-wrap: wrap; gap: .42rem; padding: 0; margin-top: 1rem; }
.tags li {
  padding: .16rem .55rem;
  border-radius: .27rem;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  background: color-mix(in srgb, var(--accent), transparent 92%);
  color: var(--accent);
  font-size: .82rem;
  line-height: 1.5;
}

.project { padding-bottom: 4rem; }
.project-hero { position: relative; isolation: isolate; padding: 1.55rem 0 1.5rem; }
.project-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto auto;
  width: 60%;
  height: 125%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .32;
  mask-image: linear-gradient(90deg, transparent 2%, black 55%), linear-gradient(0deg, transparent 0%, black 82%);
  mask-composite: intersect;
  pointer-events: none;
}
.project-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 -2.5rem;
  background: radial-gradient(ellipse at 68% -10%, color-mix(in srgb, var(--wash), transparent 10%), transparent 68%);
  content: '';
  pointer-events: none;
}
.breadcrumb { display: flex; align-items: center; gap: .75rem; color: var(--dim); font-size: .9rem; }
.breadcrumb a:hover { text-decoration: underline; color: var(--text); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 600; }
.chevron { display: inline-block; flex: none; width: .46rem; height: .46rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.project-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.4rem; }
.project-heading h1 { margin-top: .36rem; font-size: clamp(2.75rem, 6.3vw, 5.7rem); line-height: 1; letter-spacing: -.065em; }
.project-heading > p { padding-bottom: .15rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); }
.showcase { position: relative; display: grid; grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.showcase-text-only { grid-template-columns: minmax(0, 1fr); }
.gallery {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .72rem;
  overflow: hidden;
  background: var(--surface);
}
.gallery-stage { position: relative; background: #08080c; }
.gallery-media { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.gallery-media > * { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.gallery-stage:fullscreen { display: grid; place-items: center; }
.gallery-stage:fullscreen .gallery-media { width: 100%; height: 100%; min-height: 0; }
.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .45rem;
  border: 1px solid #ffffff45;
  background: #121019e6;
  color: #fff;
  transform: translateY(-50%);
}
.gallery-nav:hover { background: #333144; }
.gallery-nav.previous { left: .55rem; }
.gallery-nav.previous .chevron { transform: rotate(135deg); }
.gallery-nav.next { right: .55rem; }
.gallery-thumbs { position: relative; display: flex; gap: .5rem; padding: .65rem; overflow: auto; scrollbar-width: thin; }
.gallery-thumb {
  position: relative;
  flex: 0 0 clamp(4.6rem, 10vw, 8.2rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .35rem;
  background: #08080c;
}
.gallery-thumb:hover { border-color: var(--muted); }
.gallery-thumb[aria-pressed="true"] { border-color: var(--accent); }
.gallery-thumb:focus-visible { outline-offset: 2px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: #0b091057; }
.thumb-play .play-icon { filter: drop-shadow(0 1px 2px black); }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; min-height: 2.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.text-button { padding: 0; background: transparent; border: 0; color: var(--accent); font-size: .875rem; }
.text-button:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .2rem; }

.summary { overflow: hidden; border-radius: .72rem; border: 1px solid var(--line); background: var(--surface); }
.summary-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2 / 1; background: var(--wash); }
.summary-art > img { width: 100%; height: 100%; object-fit: cover; }
.summary-art::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(100deg, #16152be8, #14173731 70%); content: ''; }
.summary-art-capture { aspect-ratio: 16 / 10; }
.summary-art-capture::after { content: none; }
.summary-art span {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: .85rem;
  max-width: calc(100% - 2rem);
  color: #fff;
  font: 700 clamp(1.55rem, 3vw, 2.4rem)/.98 var(--display);
  letter-spacing: -.055em;
}
.summary .summary-art-dump { min-height: 0; aspect-ratio: 1; }
.summary-art-dump::after { content: none; }
.theme-pixel .summary-art::after { background: linear-gradient(95deg, #24180ce6, #291b1030 75%); }
.theme-pixel .summary-art span { max-width: 11ch; }
.summary-copy { display: grid; padding: 1rem 1.15rem 1.15rem; }
.summary-copy > p:first-child { color: #dedbe6; line-height: 1.5; }
.platform { margin-block: 1.05rem .55rem; color: var(--muted); font-size: .9rem; }
.text-link { color: var(--accent); font-weight: 600; }
.summary-copy .text-link { width: fit-content; margin: .65rem auto 0; font-size: .875rem; }

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.65rem;
  margin-top: 1.65rem;
  padding: .82rem 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}
.section-nav a:hover { color: var(--accent); }
.project-body { display: grid; grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr); gap: 1.25rem; padding-top: 2rem; }
.story-intro { padding-right: 1rem; }
.story-intro + .story-intro { margin-top: 1.8rem; }
.story-intro > p { max-width: 65ch; margin-top: .75rem; color: var(--muted); }
.game-mechanics { margin-top: 2.25rem; }
.game-mechanics > h2 { margin-bottom: 1rem; }
.mechanics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18.5rem, 100%), 1fr)); gap: 1rem; }
.mechanic-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.mechanic-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #12141b; }
.mechanic-card figcaption { padding: .5rem .9rem; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.mechanic-copy { padding: .9rem; }
.mechanic-copy p { margin-top: .5rem; color: var(--muted); }
.mechanic-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 3px solid color-mix(in srgb, var(--accent), transparent 35%);
  background: linear-gradient(160deg, var(--wash), var(--surface) 72%);
}
.mechanic-text .mechanic-copy { padding: 1.15rem; }

.clip { position: relative; margin: 0; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #08080c; cursor: pointer; }
.clip-toggle {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid #ffffff45;
  border-radius: .45rem;
  background: #121019d9;
  color: #fff;
  opacity: .78;
  transition: opacity .2s ease, background .2s ease;
}
.clip:is(:hover, :focus-within) .clip-toggle, .clip:not(.is-playing) .clip-toggle { opacity: 1; }
.clip-toggle:hover { background: #333144; }
.clip-toggle span { width: .62rem; height: .74rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.clip-toggle[aria-pressed="true"] span { border-inline: 2px solid currentColor; background: none; clip-path: none; }

.stat-band {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 1.25rem 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: linear-gradient(110deg, var(--wash), var(--surface) 62%);
}
/* Each tile draws its top and left divider; the outer edge hides the ones on the border. */
.stat-band li {
  display: grid;
  align-content: start;
  gap: .3rem;
  min-width: 0;
  margin: -1px 0 0 -1px;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat-band strong { color: var(--accent); font: 700 clamp(1.75rem, 3.2vw, 2.45rem)/1 var(--display); letter-spacing: -.05em; }
.stat-band span { color: var(--muted); font-size: .9rem; line-height: 1.3; }

.play-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  border-radius: .72rem;
  background: linear-gradient(120deg, var(--wash), var(--surface) 75%);
}
.play-cta-label { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.play-cta-title { margin-top: .2rem; color: var(--text); font: 700 clamp(1.25rem, 2.2vw, 1.6rem)/1.15 var(--display); letter-spacing: -.035em; }
.play-cta-body { max-width: 52ch; margin-top: .35rem; color: var(--muted); font-size: .93rem; }
.play-cta-button { flex: none; gap: .6rem; padding-inline: 1.35rem; }
.play-cta-wide {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 16rem;
  margin-top: 2.6rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-color: color-mix(in srgb, var(--accent), transparent 70%);
  background: #0d1424;
}
.play-cta-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 32%; }
.play-cta-wide::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0d1424 0%, #0d1424 42%, #0d1424a6 56%, #0d142400 72%);
  content: '';
}
.play-cta-wide .play-cta-title { max-width: 17ch; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.play-cta-wide .play-cta-body { max-width: 44ch; color: #d9d6e2; }
.play-cta-wide .play-cta-button { margin-top: .35rem; }

.clip-showcase { margin-top: 2.8rem; }
.clip-showcase-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .75rem 1.5rem; align-items: end; margin-bottom: 1.1rem; }
.clip-showcase-heading h2 { font-size: clamp(1.58rem, 3vw, 2.13rem); }
.clip-showcase-heading p { max-width: 68ch; color: var(--muted); }
.gallery-clips {
  display: grid;
  grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr);
  grid-template-areas: 'stage picker' 'caption picker';
  grid-template-rows: auto 1fr;
}
.gallery-clips .gallery-stage { grid-area: stage; }
.clip-caption {
  grid-area: caption;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.clip-caption-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
.clip-caption-title strong { color: var(--text); font: 700 1.2rem/1.2 var(--display); letter-spacing: -.025em; }
.clip-caption-title span { color: var(--accent); font-size: .86rem; font-weight: 600; }
.clip-caption-body { margin-top: .3rem; color: var(--muted); font-size: .93rem; }
.clip-picker {
  grid-area: picker;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: .7rem .55rem;
  padding: .75rem;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), var(--bg) 55%);
}
.clip-thumb {
  display: grid;
  align-content: start;
  gap: .32rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
  text-align: start;
}
.clip-thumb-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid transparent; border-radius: .35rem; background: #08080c; }
.clip-thumb-art img { width: 100%; height: 100%; object-fit: cover; }
.clip-thumb .thumb-play { opacity: 0; transition: opacity .2s ease; }
.clip-thumb:is(:hover, :focus-visible) .thumb-play, .clip-thumb[aria-pressed="true"] .thumb-play { opacity: 1; }
.clip-thumb:hover { color: var(--text); }
.clip-thumb:hover .clip-thumb-art { border-color: var(--muted); }
.clip-thumb:focus-visible { outline-offset: 2px; }
.clip-thumb[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.clip-thumb[aria-pressed="true"] .clip-thumb-art { border-color: var(--accent); }
.clip-thumb-label { overflow-wrap: anywhere; }
.feature-list { margin-top: 2.15rem; }
.feature-list > h2 { margin-bottom: .9rem; font-size: 1.6rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .75rem;
  border-radius: .58rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature:last-child { margin-bottom: 0; }
.feature-text { display: block; padding: 1rem; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: .28rem; background: #111117; }
.feature p { margin-top: .38rem; color: var(--muted); line-height: 1.55; }

.project-facts { display: grid; align-content: start; gap: .85rem; }
@media (min-width: 52.01rem) and (min-height: 44rem) {
  /* Long pages keep the fact sheet in view while the mechanics scroll by. */
  .project-body:has(#mechanics) .project-facts { position: sticky; top: 1.25rem; align-self: start; }
}
.info-card { container: info-card / inline-size; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .58rem; background: var(--surface); }
.info-card h2 { margin-bottom: .65rem; font-size: 1.17rem; }
.facts > div { display: grid; grid-template-columns: minmax(8.25rem, .92fr) minmax(0, 1.08fr); gap: .65rem; padding-block: .5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.facts dt { display: flex; align-items: flex-start; gap: .45rem; color: var(--dim); }
.facts dt svg { flex: none; margin-top: .2rem; color: var(--accent); opacity: .82; }
.facts dt span, .facts dd { overflow-wrap: anywhere; }
.facts dd { margin: 0; color: #e3dfea; }
.fact-person { display: flex; align-items: center; gap: .52rem; }
.fact-person img { flex: none; width: 1.85rem; height: 1.85rem; object-fit: cover; border-radius: 50%; }
.facts > div:has(.fact-person) { align-items: center; }
.info-card .text-link { display: block; width: fit-content; padding: .26rem 0; font-size: .91rem; }
.mobile-info-icon { display: none; }
@container info-card (max-width: 16.5rem) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .facts dd { margin-inline-start: 1.45rem; }
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .83fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2.4rem;
  padding: clamp(1.2rem, 3.3vw, 2.4rem);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: .72rem;
  background: linear-gradient(135deg, var(--wash), var(--surface));
}
.install-copy > p { margin-top: .7rem; color: #dcd5e1; }
.install-steps { border-left: 1px solid color-mix(in srgb, var(--accent), transparent 76%); padding-left: 1.65rem; }
.install-steps ol { padding-left: 1.35rem; margin-top: .7rem; }
.install-steps li + li { margin-top: .65rem; }
.install-steps li::marker { color: var(--accent); font-weight: 700; }
.install-steps p { color: var(--muted); font-size: .94rem; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; margin-top: 2.8rem; }
.faq h2 { font-size: clamp(1.58rem, 3vw, 2.13rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding-block: .85rem; color: var(--text); font-weight: 700; }
.faq summary::marker { color: var(--accent); }
.faq p { color: var(--muted); padding: 0 0 .85rem 1.1rem; }
.other-project { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; }
.other-project > span { color: var(--dim); }
.other-project a { font-weight: 700; }
.other-project a:hover { text-decoration: underline; text-underline-offset: .22rem; }

.site-footer { border-top: 1px solid var(--line); background: #13131a; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-block: 2.45rem 1.8rem;
}
.footer-brand p { margin: .9rem 0; max-width: 26ch; color: var(--muted); font-size: .92rem; }
.site-footer .footer-socials { gap: .55rem; justify-content: flex-start; }
.site-footer .footer-socials a {
  display: grid;
  place-items: center;
  width: 2.32rem;
  height: 2.32rem;
  border: 1px solid var(--line);
  border-radius: .38rem;
  color: #f0edf3;
}
.footer-socials a:hover { border-color: var(--muted); background: var(--surface-strong); }
.site-footer .footer-col { display: grid; align-content: start; justify-items: start; gap: .48rem; }
.footer-col h2 { margin-bottom: .35rem; font-size: 1rem; letter-spacing: -.012em; }
.footer-col small { display: block; color: var(--dim); font-size: .82rem; font-weight: 400; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }
.footer-bottom nav { gap: .45rem 1rem; }
.footer-bottom nav a { font-size: .86rem; }

@property --avatar-progress {
  syntax: "<angle>";
  inherits: true;
  initial-value: 1turn;
}

.about-me {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.85rem;
  padding: clamp(1.2rem, 3.6vw, 2.65rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: radial-gradient(ellipse at 5% -5%, #2a202d 0%, var(--surface) 65%);
}
.about-avatar {
  --avatar-size: clamp(9rem, 16vw, 12rem);
  --avatar-gradient: conic-gradient(from .08turn, #f8c964, #ff8669, #f44582, #9557ef, #f44582, #f8c964);
  --avatar-reveal-duration: .36s;
  position: relative;
  isolation: isolate;
  width: calc(var(--avatar-size) + .86rem);
  aspect-ratio: 1;
  padding: .21rem;
  transition: --avatar-progress var(--avatar-reveal-duration) ease-out;
}
.about-avatar::before,
.about-avatar::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--avatar-gradient);
  pointer-events: none;
  content: '';
}
.about-avatar::before {
  z-index: -1;
  mask-image: conic-gradient(#000 0turn var(--avatar-progress, 1turn), transparent var(--avatar-progress, 1turn) 1turn);
}
.about-avatar::after {
  z-index: -2;
  filter: blur(.6rem);
  opacity: 0;
  transition: opacity .4s ease var(--avatar-reveal-duration);
}
.about-avatar.is-ring-complete::before,
.about-avatar.is-ring-complete::after {
  animation: avatar-ring-colors 7.2s linear var(--avatar-reveal-duration) infinite;
}
.about-avatar.is-ring-complete::after { opacity: .68; }
@keyframes avatar-ring-colors { to { transform: rotate(1turn); } }

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: .22rem solid var(--surface);
  border-radius: 50%;
}
.about-copy {
  display: grid;
  grid-template-columns: fit-content(100%) minmax(0, 1fr);
}
.about-copy > * { grid-column: 1 / -1; }
.about-copy > :is(.about-profile-actions, .actions) { grid-column: 1; min-width: 0; }
.about-copy h2 { margin: .45rem 0 .7rem; }
.about-handle { display: none; }
.about-profile-actions {
  display: flex;
  gap: .55rem;
  margin-top: 1rem;
}
.about-apps-action { flex: 1; }
.about-follow-action { flex: none; inline-size: 2.85rem; padding: 0; }
.about-copy p:not(.kicker) { max-width: 70ch; color: var(--muted); }
.about-copy p + p { margin-top: .65rem; }
.about-copy .actions { justify-content: space-between; margin-top: 1.15rem; gap: .75rem 1.1rem; }
.about-copy .actions a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  transition: color .18s ease, text-shadow .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.about-copy .actions a svg { transition: filter .18s ease; }
.about-copy .text-link { color: var(--muted); font-size: .95rem; }
.about-copy .actions a:is(:hover, :focus-visible) {
  color: #fff;
  text-shadow: 0 0 .65rem #ffffff80;
}
.about-copy .actions a:is(:hover, :focus-visible) svg { filter: drop-shadow(0 0 .35rem #ffffffa8); }
.about-copy .actions .button:is(:hover, :focus-visible) { box-shadow: 0 0 .85rem #ffffff2e; }

@media (max-width: 67rem) {
  .shell { width: min(100% - 3rem, 77.5rem); }
  .hero-copy { padding-inline: clamp(1.25rem, 4vw, 3rem); }
  .hero-art { min-height: 27rem; }
  .app-strip { gap: .45rem 1.2rem; }
}
@media (max-width: 58rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .7rem .9rem; padding-block: .85rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: .7rem 1.3rem; padding-top: .45rem; border-top: 1px solid var(--line); }
}
@media (max-width: 52rem) {
  .recommendations-track { grid-auto-columns: calc((100% - var(--card-gap)) / 2); }
  .project-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .showcase, .project-body { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
  .summary-art { aspect-ratio: auto; min-height: 12rem; }
  .summary-art > img { position: absolute; inset: 0; }
  .project-facts { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
  .install { gap: 1.35rem; }
  .stat-band { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clip-showcase-heading { grid-template-columns: minmax(0, 1fr); }
  .gallery-clips { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'caption' 'picker'; grid-template-rows: auto; }
  .clip-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); }
  .play-cta-wide::before { background: linear-gradient(90deg, #0d1424 0%, #0d1424 56%, #0d1424b3 72%, #0d142400 90%); }
}
@media not ((max-width: 42rem) or ((max-width: 56rem) and (hover: none) and (pointer: coarse))) {
  [data-home-visibility="mobile"] { display: none !important; }
}
@media (max-width: 42rem), (max-width: 56rem) and (hover: none) and (pointer: coarse) {
  [data-home-visibility="desktop"] { display: none !important; }
  .shell { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .45rem; }
  .header-inner .brand {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row-reverse;
    justify-self: end;
    text-align: right;
    white-space: normal;
  }
  .header-actions { display: contents; }
  .site-nav, .header-source { display: none; }
  .theme-toggle { grid-area: 1 / 3; }
  .site-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .search-field input { font-size: 1rem; }
  .mobile-menu {
    display: block;
    position: relative;
    z-index: 5;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: .45rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .2s ease-out;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { border-color: var(--accent); }
  .mobile-menu-links {
    position: absolute;
    inset-block-start: calc(100% + .5rem);
    inset-inline-start: 0;
    display: grid;
    width: min(15rem, calc(100vw - 2rem));
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: var(--surface);
    box-shadow: 0 .65rem 1.5rem #09080d99;
  }
  @supports selector(::details-content) {
    .mobile-menu::details-content {
      position: absolute;
      inset-block-start: calc(100% + .5rem);
      inset-inline-start: 0;
      opacity: 0;
      transform: translateY(-.4rem) scale(.98);
      transform-origin: top left;
      transition: opacity .2s ease, transform .24s cubic-bezier(.22, 1, .36, 1), content-visibility .24s allow-discrete;
      pointer-events: none;
    }
    .mobile-menu[open]::details-content {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }
    .mobile-menu-links { position: static; }
  }
  .mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.65rem;
    padding: .5rem .65rem;
    border-radius: .3rem;
    color: var(--text);
    font-weight: 600;
  }
  .mobile-menu-links svg { flex: none; }
  .mobile-menu-links a:is(:hover, :focus-visible) { background: var(--surface-strong); }
  .home, .project, .site-footer { text-align: center; }
  .home { row-gap: 2rem; padding-top: 1.1rem; padding-bottom: 2.8rem; }
  .story-slides {
    display: flex;
    gap: .7rem;
    overflow: hidden;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border: 0;
    border-radius: 0;
  }
  .story-slides::-webkit-scrollbar { display: none; }
  .story-slides .hero-slide {
    position: relative;
    flex: 0 0 calc(100% - 1.85rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    opacity: 1;
    visibility: visible;
    scroll-snap-align: start;
    transition: none;
  }
  .story-slides .hero-slide:only-child { flex-basis: 100%; }
  .story-arrow { display: none; }
  .hero-art { grid-area: 1 / 1; min-height: 0; aspect-ratio: 1.55; }
  .hero-copy { grid-area: 2 / 1; align-items: center; justify-content: start; padding: 1.15rem 1rem; }
  .hero-copy h2, .theme-ps5 .hero-copy h2 { margin-block: .25rem .6rem; font-size: clamp(2.15rem, 7.7vw, 3.6rem); line-height: .94; }
  .app-strip { grid-area: 3 / 1; justify-content: center; padding-block: .55rem; font-size: .79rem; }
  .app-strip > :last-child { display: none; }
  .offers-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .65rem; }
  .offers-heading h2 { font-size: clamp(1.28rem, 5.5vw, 1.55rem); }
  .offers-actions { display: contents; }
  .offers-actions .carousel-controls { grid-area: 1 / 2; }
  .offer-more { grid-area: 2 / 1; justify-self: start; }
  .offers-track {
    --offer-gap: .75rem;
    grid-template-rows: auto;
    grid-auto-columns: 84%;
  }
  .offers-track > .offer-entry { grid-row: auto; }
  .offer-entry:not(:nth-child(3n + 1)) .has-offer-art {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .offer-entry:not(:nth-child(3n + 1)) .offer-art { aspect-ratio: 3 / 1; }
  .offer-entry:not(:nth-child(3n + 1)) .offer-art img { position: static; }
  .recommendations-heading h2 { font-size: clamp(1.28rem, 5.5vw, 1.55rem); text-wrap: wrap; }
  .recommendations-track {
    --card-gap: .75rem;
    grid-auto-columns: 84%;
  }
  .recommendations-track:has(> li:only-child) { grid-auto-columns: 100%; }
  .catalog-heading, .catalog-filters, .tags { justify-content: center; }
  .catalog-search { width: 100%; }
  .catalog-filters button { gap: .28rem; padding-inline: .3rem; font-size: .84rem; }
  .catalog-filters button svg { width: .875rem; height: .875rem; }
  .catalog-list { gap: 0; }
  .catalog-list .catalog-entry {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    padding: .9rem .2rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .catalog-list .catalog-entry.has-catalog-icon { grid-template-columns: 4rem minmax(0, 1fr); }
  .catalog-preview { display: none; }
  .catalog-app-icon { display: block; border: 1px solid var(--line); border-radius: .85rem; }
  .catalog-app-icon img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: inherit; }
  .catalog-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'title action' 'category category' 'summary summary';
    align-items: center;
    align-self: start;
    gap: .15rem .6rem;
    padding: 0;
    text-align: start;
  }
  .catalog-copy h3 { grid-area: title; margin: 0; font-size: 1.08rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .catalog-copy .kicker { grid-area: category; color: var(--muted); font-size: .83rem; font-weight: 500; letter-spacing: normal; text-transform: none; }
  .catalog-copy .catalog-summary { grid-area: summary; margin-top: .2rem; font-size: .88rem; line-height: 1.4; }
  .catalog-copy :is(.catalog-lede, .tags), .catalog-footer .actions { display: none; }
  .catalog-footer { display: contents; }
  .catalog-mobile-action {
    grid-area: action;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .3rem .68rem;
    border: 1px solid color-mix(in srgb, var(--accent) 27%, var(--line));
    border-radius: 1rem;
    background: var(--wash);
    color: var(--accent);
    font-size: .83rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .catalog-list .repo-stars { display: none; }
  .hero-copy .actions,
  .install-copy .actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: min(100%, 22rem);
    margin-inline: auto;
  }
  .summary-copy .button,
  .summary-copy .text-link { width: min(100%, 22rem); margin-inline: auto; }
  .summary-copy .text-link,
  .info-card .text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: .62rem 1rem;
    border: 1px solid var(--line);
    border-radius: .46rem;
    background: #ffffff06;
    font-size: .94rem;
    line-height: 1.25;
  }
  .project { padding-bottom: 2.8rem; }
  .project-hero { padding-top: 1rem; }
  .breadcrumb { justify-content: center; flex-wrap: wrap; }
  .project-heading { flex-direction: column; align-items: center; margin-top: 1rem; }
  .section-nav { justify-content: center; gap: .65rem 1rem; }
  .story-intro { padding-right: 0; }
  .story-intro > p { margin-inline: auto; }
  .gallery-thumbs { justify-content: safe center; }
  .gallery-caption { flex-direction: column; }
  .showcase, .project-body, .summary, .feature, .install, .faq { grid-template-columns: minmax(0, 1fr); }
  .summary-art { min-height: 0; aspect-ratio: 2.5; }
  .summary-art > img { position: absolute; inset: 0; }
  .summary .summary-art::after { background: linear-gradient(0deg, #101016e8, #10101622 82%); }
  .summary-art span { left: 50%; width: max-content; transform: translateX(-50%); }
  .project :is(.summary-copy, .info-card, .feature, .mechanic-card, .install, .faq details, .other-project, .clip-caption) { text-align: start; }
  .stat-band li { padding: .85rem .9rem; }
  .stat-band span { font-size: .84rem; }
  .play-cta { flex-direction: column; align-items: center; text-align: center; }
  .play-cta-body { margin-inline: auto; }
  .play-cta-button { width: min(100%, 22rem); }
  .play-cta-wide { min-height: 0; padding: 1.5rem 1.1rem; }
  .play-cta-wide::before { background: linear-gradient(0deg, #0d1424f2 45%, #0d1424b3); }
  .play-cta-wide .play-cta-title { margin-inline: auto; }
  .clip-showcase { margin-top: 2.2rem; }
  .clip-showcase-heading p { margin-inline: auto; }
  .clip-caption { flex-direction: column; gap: .35rem; }
  .clip-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .65rem; }
  .clip-thumb { text-align: center; }
  .summary-copy .tags { justify-content: flex-start; }
  .project-facts { grid-template-columns: minmax(0, 1fr); }
  .info-card { padding: .85rem; }
  .info-card h2, .platform, .install h2, .install-steps h3, .other-project > span {
    display: flex;
    align-items: center;
    gap: .55rem;
  }
  .mobile-info-icon, .facts dt svg {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: .25rem;
    background: var(--wash);
    color: var(--accent);
  }
  .facts > div, .info-card .text-link { border: 0; border-radius: .28rem; background: #ffffff07; }
  .facts > div {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
    padding: .5rem .6rem .5rem 2.9rem;
  }
  .facts > div + div, .info-card .text-link + .text-link { margin-top: .3rem; }
  .facts dt { display: block; color: var(--text); font-weight: 600; }
  .facts dt svg {
    position: absolute;
    inset-block-start: .5rem;
    inset-inline-start: .55rem;
    margin: 0;
    padding: .38rem;
    opacity: 1;
  }
  .facts dd { margin-inline-start: 0; color: var(--muted); }
  .info-card .text-link {
    justify-content: flex-start;
    gap: .55rem;
    width: 100%;
    padding: .45rem .55rem;
  }
  .info-card .facts + .text-link { margin-top: .55rem; }
  .gallery-nav { width: 2.05rem; height: 2.05rem; }
  .feature { gap: .7rem; }
  .install-steps { border-left: 0; padding: .9rem 0 0; border-top: 1px solid #ffffff35; }
  .install-steps ol { padding-inline-start: 1.3rem; }
  .faq { gap: .75rem; }
  .other-project { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .other-project > a { margin-inline-start: 2.35rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 1.55rem 1.2rem; gap: 1.3rem 1.1rem; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand :is(.brand, p) { margin-inline: auto; }
  .site-footer .footer-socials, .footer-bottom, .footer-bottom nav { justify-content: center; }
  .site-footer .footer-col { justify-items: center; }
  .about-me { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .about-avatar { --avatar-size: clamp(8rem, 28vw, 10rem); justify-self: center; }
  .about-copy { grid-template-columns: minmax(0, 1fr) fit-content(100%) minmax(0, 1fr); }
  .about-copy > :is(.about-profile-actions, .actions) { grid-column: 2; }
  .about-copy .kicker { justify-content: center; }
  .about-copy h2 { margin-block: .35rem .15rem; }
  .about-handle { display: block; margin-bottom: .75rem; color: var(--dim); font-size: .88rem; }
  .about-copy p:not(.kicker) { max-width: 32ch; margin-inline: auto; }
  .about-bio-details, .about-copy .actions a span { display: none; }
  .about-profile-actions { justify-content: center; }
  .about-copy .actions { gap: .5rem; margin-top: .85rem; }
  .about-copy .actions a {
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: #ffffff06;
    color: var(--muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .mobile-menu::details-content { transition: none; }
  .hero-slide.is-current .featured-ribbon::after { animation: none; }
  .about-avatar { --avatar-progress: 1turn !important; }
  .about-avatar.is-ring-complete::before,
  .about-avatar.is-ring-complete::after { animation: none; }
}
