:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--canvas);
  --ink: #1d1d1f;
  --canvas: #f5f5f7;
  --surface: #fff;
  --card-shadow: 0 4px 12px #00000014, 0 1px 3px #0000000a;
  --sidebar: #efeff1;
  --hover: #e4e4e7;
  --selected: #dddde0;
  --field-rule: #81818f;
  --detail-panel: #211a2d;
  --detail-cover: linear-gradient(108deg, #151026ef, #221831d9 57%, #251338bc);
  --ambient-opacity: 0.62;
  --ambient-color: saturate(1.65) brightness(1.12);
  --ambient-header-fade: linear-gradient(var(--canvas) 44px, transparent 116px);
  --art-text-shade: linear-gradient(#0001, #0002 21%, #000a 36%, #000c 58%, #000e);
  --genre: #b2e4bb;
  --genre-ink: #102914;
  font-synthesis: none;
  --neon: #7047eb;
  --accent: #5330b5;
  --accent-soft: #eee8ff;
  --accent-dark: #30205b;
  --accent-ink: #fff;
  --quiet: #65656a;
  --rule: #d5d5d9;
  --rail: 260px;
  --gap: var(--space-5);
  /* Radix Themes spacing and type scales, with storefront surface roles. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --text-1: 0.75rem;
  --text-2: 0.875rem;
  --text-3: 1rem;
  --text-4: 1.125rem;
  --text-5: 1.25rem;
  --text-6: 1.5rem;
  --text-7: 1.75rem;
  --text-8: 2.1875rem;
  --radius-control: 8px;
  --radius-category: 10px;
  --radius-media: 12px;
  --radius-card: 16px;
  --radius-app-icon: 24px;
  --radius-pill: 999px;
}
:root[data-palette="orange"] {
  --neon: #ff651f;
  --accent-ink: #000;
  --accent: #9b3300;
  --accent-soft: #ffede3;
  --accent-dark: #432518;
}
:root[data-palette="blue"] {
  --neon: #376bff;
  --accent-ink: #000;
  --accent: #183eab;
  --accent-soft: #e8eeff;
  --accent-dark: #192647;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2f2;
  --canvas: #141414;
  --surface: #222;
  --card-shadow: 0 5px 13px #0006, 0 1px 3px #0005;
  --sidebar: #1b1b1b;
  --hover: #292929;
  --selected: #343434;
  --field-rule: #7b7b7b;
  --detail-panel: #242424;
  --detail-cover: linear-gradient(108deg, #0c0c0cf5, #171717e6 57%, #191919c7);
  --ambient-opacity: 0.34;
  --ambient-color: saturate(1.55) brightness(0.92);
  --genre: #303030;
  --genre-ink: #e1e1e1;
  --neon: #b49aff;
  --accent: #c4afff;
  --accent-ink: #181818;
  --accent-soft: #303030;
  --accent-dark: #272727;
  --art-fallback: #282828;
  --quiet: #b8b8b8;
  --rule: #3e3e3e;
}
:root[data-theme="dark"][data-palette="orange"] {
  --neon: #ffab83;
  --accent: #ffbea0;
  --accent-ink: #351b10;
}
:root[data-theme="dark"][data-palette="blue"] {
  --neon: #9db6ff;
  --accent: #b2c6ff;
  --accent-ink: #141f3b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
/* Keyboard focus stays inside the control, without an outer ring. */
:where(a, button, input, select, textarea, summary):focus {
  outline: none;
}
:is(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
#query:focus,
#mobile-find:focus-within,
.repo-prompt-text:focus,
.ranking-controls select:focus,
.tool-field :is(input, select, textarea):focus {
  border-color: var(--ink);
}
@media (forced-colors: active) {
  :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
::selection {
  background: var(--accent);
  color: var(--canvas);
}
input::placeholder,
textarea::placeholder {
  color: var(--quiet);
  opacity: 1;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: block;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 30;
  top: 5px;
  left: 5px;
  background: var(--surface);
  padding: 8px;
}
#rail {
  --rail-search-gap: 19px;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--rule);
  padding: 25px;
  z-index: 5;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 1px 7px var(--rail-search-gap);
}
.brand img,
.mobile-brand img {
  height: auto;
}
/* The wordmark has black lettering and a purple crab. Keep both visible in dark mode. */
[data-theme="dark"] :is(.brand, .mobile-brand) img {
  filter: invert(1) hue-rotate(180deg) brightness(0.95);
}
#search-form {
  position: relative;
  margin: 0 7px var(--rail-search-gap);
}
#query {
  display: block;
  height: 32px;
  width: 100%;
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px 0 30px;
  font-size: var(--text-2);
}
#search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}
#search-icon svg,
#mobile-find > svg {
  width: 14px;
  height: 14px;
}
#quick-search {
  position: fixed;
  z-index: 12;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-1);
  border-radius: var(--radius-media);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.quick-search-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-control);
}
.quick-search-option:is(:hover, [aria-selected="true"], :focus-visible) {
  background: var(--hover);
}
.quick-search-option > :is(img, .fallback-icon) {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  object-fit: cover;
}
.quick-search-option > .fallback-icon { background: var(--accent-soft); }
.quick-search-copy { min-width: 0; }
.quick-search-copy > :is(strong, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-search-copy strong { font-size: var(--text-2); }
.quick-search-copy small { color: var(--quiet); font-size: var(--text-1); }
.quick-search-note {
  padding: var(--space-2) var(--space-2) var(--space-1);
  color: var(--quiet);
  font-size: var(--text-2);
}
.quick-search-all {
  justify-content: space-between;
  color: var(--accent);
  font-size: var(--text-2);
  font-weight: 650;
}
.quick-search-all svg { width: 15px; height: 15px; }
#navigation a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: var(--radius-control);
  min-height: 32px;
  font-size: var(--text-2);
  margin-bottom: 2px;
}
#navigation a:hover,
.theme-toggle:hover {
  background: var(--hover);
}
#navigation a[aria-current] {
  background: var(--selected);
  font-weight: 550;
}
#navigation svg {
  color: var(--neon);
  width: 19px;
  height: 19px;
}
.store-secondary::before {
  content: "";
  display: block;
  width: var(--space-6);
  margin: var(--space-2) var(--space-2);
  border-block-start: 1px solid var(--rule);
}
#navigation .nav-crab {
  width: 19px;
  height: 19px;
  flex: none;
}
.nav-caption {
  font-weight: 600;
  font-size: var(--text-1);
  color: var(--quiet);
  margin: 22px 0 3px;
}
.rail-foot {
  margin-block-start: auto;
  padding-block-start: var(--space-5);
}
.rail-tools {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  justify-items: center;
}
.rail-tools > :is(a, button) {
  display: grid;
  place-items: center;
  width: min(100%, 44px);
  height: 44px;
  padding: var(--space-1);
  border-radius: var(--radius-control);
  color: var(--accent);
  background-clip: content-box;
}
.rail-tools > :is(a, button):hover {
  background-color: var(--hover);
}
.rail-tools a[aria-current="page"] {
  background-color: var(--selected);
}
.rail-tools svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}
.theme-toggle {
  background: transparent;
  color: var(--ink);
}
.theme-toggle svg {
  color: var(--accent);
  width: 19px;
  height: 19px;
}
.theme-toggle svg:nth-child(2),
[data-theme="dark"] .theme-toggle svg:first-child {
  display: none;
}
[data-theme="dark"] .theme-toggle svg:nth-child(2) {
  display: block;
}
.mobile-bar,
#desktop-menu,
#scrim {
  display: none;
}
@media (min-width: 740px) {
  #desktop-menu {
    position: fixed;
    z-index: 6;
    inset-block-start: 30px;
    inset-inline-start: calc(var(--rail) - 22px);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--card-shadow);
  }
  #desktop-menu:hover { background: var(--hover); }
  #desktop-menu svg { width: 18px; height: 18px; }
  :root[data-nav-collapsed]:has(#desktop-menu) { --rail: 52px; }
  [data-nav-collapsed] #desktop-menu { inset-inline-start: var(--space-2); }
  [data-nav-collapsed]:has(#desktop-menu) #rail { padding: 0; }
  [data-nav-collapsed]:has(#desktop-menu) #rail > * { display: none; }
}
main {
  margin-left: var(--rail);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  outline: none;
}
.featured-region {
  position: relative;
  isolation: isolate;
}
main:has(.featured-region) {
  overflow-x: clip;
}
.ambient {
  position: absolute;
  z-index: -1;
  inset-block: 0 -24px;
  inset-inline-start: 50%;
  width: calc(100vw - var(--rail));
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  opacity: var(--ambient-opacity);
  mask-image: linear-gradient(#000 12%, #000d 48%, transparent);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--canvas), transparent 34%);
  opacity: .57;
}
@media (min-width: 740px) {
  :root:not([data-theme="dark"]) .frame:has(.store-account a) .ambient::after {
    background: var(--ambient-header-fade);
    opacity: 1;
  }
}
.ambient img {
  position: absolute;
  inset: -72px;
  width: calc(100% + 144px);
  height: calc(100% + 144px);
  max-width: none;
  object-fit: cover;
  filter: blur(clamp(30px, 3.2vw, 70px)) var(--ambient-color);
}
@media (max-width: 739px) {
  .ambient {
    width: 100vw;
    inset-block-end: -52px;
  }
  .ambient::after {
    background: var(--ambient-header-fade);
    opacity: 1;
  }
}
.frame {
  position: relative;
  max-width: 1680px;
  margin: auto;
  --frame-gutter: clamp(24px, 2.8vw, 48px);
  padding: 0 var(--frame-gutter) 65px;
}
.listing-frame {
  max-width: none;
}
.listing-frame > .project-detail > :not(.detail-banner),
.listing-frame > .footer {
  max-width: calc(1680px - 2 * var(--frame-gutter));
  margin-inline: auto;
}
.store-account {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: absolute;
  z-index: 1;
  inset-block-start: 10px;
  inset-inline-end: clamp(24px, 2.8vw, 48px);
}
.member-avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--accent);
}
.member-avatar-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.member-avatar-face > span {
  display: grid;
  place-items: center;
}
.member-avatar-face svg {
  width: 18px;
  height: 18px;
}
.member-avatar-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-toolbar .member-avatar {
  color: var(--secondary-color);
}
.seo-content:has(.store-account a) > h1 {
  padding-inline-end: 52px;
}
.store-account .pill {
  min-height: 34px;
  gap: 6px;
}
.frame:has(.store-account a) > .page-title {
  padding-inline-end: 224px;
}
.market-projects {
  padding-block-start: var(--space-3);
  line-height: 1.5;
}
.market-projects .member-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: var(--space-6);
  padding-inline-end: 56px;
}
.market-projects h1 {
  font-size: var(--text-7);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.market-projects h2 { font-size: var(--text-5); }
.market-projects p { color: var(--quiet); }
.market-projects .member-heading p { margin-block-start: var(--space-2); }
.market-projects .member-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: var(--space-5);
}
.market-projects .member-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.market-projects .member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: fit-content;
  min-height: 44px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  background: var(--neon);
  font-size: var(--text-2);
  font-weight: 700;
  text-decoration: none;
}
.market-projects .member-button:hover { filter: brightness(.9); }
.market-projects .member-button.secondary {
  color: var(--accent);
  background: transparent;
  border: 1.5px solid currentColor;
}
.market-projects .member-button svg { width: 16px; height: 16px; }
.market-projects .member-project-list { padding: var(--space-5); }
.market-projects .member-project-list ul,
.market-projects .member-guide ol {
  margin: 0;
  list-style: none;
}
.market-projects .member-project-list ul { padding: var(--space-3) 0 0; }
.market-projects .member-project-list li,
.market-projects .member-guide li + li { border-block-start: 1px solid var(--rule); }
.market-projects .member-project-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
  padding-block: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-control);
}
.market-projects .member-project-row:hover { background: var(--canvas); }
.market-projects .member-row-copy { display: grid; overflow-wrap: anywhere; }
.market-projects .member-row-copy span,
.market-projects .member-guide p { color: var(--quiet); font-size: var(--text-2); }
.market-projects .member-chevron svg { width: 16px; }
.market-projects .member-status {
  width: fit-content;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--hover);
  color: var(--ink);
  font-size: var(--text-1);
  font-weight: 700;
}
.market-projects .member-status-submitted { color: var(--accent); background: var(--accent-soft); }
.market-projects .member-status-approved,
.market-projects .member-status-published { color: #185438; background: #e0f2e7; }
.market-projects .member-status-changes { color: #714100; background: #ffedca; }
.market-projects .member-status-rejected { color: #83333c; background: #f9e7e8; }
.market-projects .member-project-icon,
.market-projects .member-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-media);
  color: var(--accent);
  background: var(--accent-soft);
}
.market-projects .member-guide { overflow: clip; }
.market-projects .member-guide-top {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--accent-soft);
}
.market-projects .member-guide ol { padding-inline: var(--space-4); }
.market-projects .member-guide li { padding-block: var(--space-3); }
.market-projects .member-empty { display: grid; gap: var(--space-3); }
.market-projects .member-empty p { max-width: 45ch; }
@media (max-width: 1000px) {
  .market-projects .member-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 739px) {
  .market-projects .member-heading { padding-inline-end: 0; margin-block-end: var(--space-5); }
  .market-projects .member-project-list { padding: var(--space-4); }
  .market-projects .member-project-row { grid-template-columns: 44px minmax(0, 1fr) 16px; row-gap: var(--space-1); }
  .market-projects .member-project-icon { grid-row: span 2; }
  .market-projects .member-status { grid-row: 2; grid-column: 2; }
  .market-projects .member-chevron { grid-row: 1 / span 2; grid-column: 3; }
}
h1,
h2,
h3,
p {
  margin: 0;
}
.page-title {
  font-size: var(--text-7);
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding: 12px 0 24px;
  font-weight: 700;
}
.open-source-summary {
  margin-block: calc(-1 * var(--space-2)) var(--space-4);
  max-width: 62ch;
  color: var(--ink);
}
.tab-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tab-title > svg {
  flex: none;
  width: 0.85em;
  height: 0.85em;
  color: var(--neon);
}
.launch-card,
.follow-card {
  display: grid;
  grid-template-columns: clamp(56px, 25%, 120px) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}
.follow-card {
  background: var(--surface);
}
.launch-card-art,
.follow-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-media);
  object-fit: cover;
}
.launch-card-copy,
.follow-card-copy {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}
.launch-card h2,
.follow-card h2 {
  margin: 0;
  font-size: clamp(1.0625rem, 1.65vw, var(--text-6));
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.launch-card p,
.follow-card p {
  margin: 0;
  max-width: 48ch;
  color: var(--quiet);
  font-size: var(--text-2);
  line-height: 1.35;
}
.launch-card .pill,
.follow-card .pill {
  min-height: 44px;
  min-width: 44px;
  padding-inline: var(--space-3);
}
.follow-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.feature,
.tile,
.connect-setup,
.connect-example,
.showcase-card img,
.article-cover,
.pill-track a,
.shots > :is(button, video),
.m-card,
.m-chart {
  box-shadow: var(--card-shadow);
}
.feature {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 2.04;
  background: #264d58;
  color: #fff;
}
.discover-intro {
  padding: var(--space-3) clamp(var(--space-4), 3vw, var(--space-7));
  margin-bottom: var(--space-5);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 15%, #774dcd, transparent 58%),
    radial-gradient(ellipse at 90% 85%, #3b395c, transparent 54%),
    #251642;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.intro-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  overflow-wrap: anywhere;
}
.intro-crab {
  flex: none;
  width: clamp(40px, 5vw, 56px);
  height: auto;
  aspect-ratio: 1;
  filter: brightness(0) invert(1);
}
.intro-content h2 {
  font-size: clamp(var(--text-3), 2vw, var(--text-6));
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (prefers-reduced-motion: no-preference) {
  .intro-motion {
    display: grid;
    place-items: center;
    min-height: clamp(300px, 40vw, 560px);
    padding-block: var(--space-7);
  }
  .intro-motion .intro-content {
    display: grid;
    justify-items: center;
    width: min(100%, 880px);
    container-type: inline-size;
    text-align: center;
  }
  .intro-motion .intro-crab {
    width: clamp(72px, 8vw, 108px);
    animation: intro-crab 3.55s cubic-bezier(.2,.75,.25,1) both;
  }
  .intro-motion h2 {
    font-size: clamp(var(--text-4), 7cqi, 3.75rem);
    line-height: 1.05;
    text-wrap: balance;
    animation: intro-heading 2.85s 2.15s cubic-bezier(.2,.75,.25,1) both;
  }
  .intro-motion h2 span {
    display: block;
  }
}
@keyframes intro-crab {
  0% { transform: translateY(clamp(40px, 6vw, 72px)) scale(2.65) rotate(-8deg); }
  30% { transform: translateY(clamp(40px, 6vw, 72px)) scale(2.75) rotate(4deg); }
  100% { transform: none; }
}
@keyframes intro-heading {
  0% { opacity: 0; transform: translateY(18px) scale(1.06); }
  55%, 100% { opacity: 1; transform: none; }
}
.feature-slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
.feature-slide[inert] {
  pointer-events: none;
}
.feature-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.feature-img,
.feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.feature-shade {
  background: linear-gradient(transparent 45%, #0001 66%, #0005);
}
.feature-copy {
  isolation: isolate;
  padding: 0 40px 41px;
  max-width: 73%;
}
.feature-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* The card clips the shade to its full width while the copy sets its height. */
  inset: -80px auto 0 0;
  width: 100vw;
  background: linear-gradient(transparent, #0002 28px, #0006 60px, #0009 100px, #0008);
}
:is(.feature-copy, .m-card-copy) > :is(.kicker, h2, p, small) {
  text-shadow: 0 1px 2px #000c, 0 2px 8px #0009;
}
.kicker {
  font-size: var(--text-1);
  line-height: 1.25;
  font-weight: 650;
}
.feature-copy .kicker {
  color: #ffffffe0;
}
.feature-copy h2 {
  font-size: clamp(var(--text-7), 3vw, var(--text-8));
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 7px 0;
}
.feature-copy p {
  font-size: var(--text-2);
  color: #fff;
  line-height: 1.4;
}
.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.dots button {
  background: none;
  padding: 8px 5px;
}
.dots button:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff80;
}
.dots button[aria-pressed="true"]:before {
  background: #fff;
  scale: 1.35;
}
.feature-step,
.shelf-step {
  display: grid;
  place-items: center;
  position: absolute;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 1px 5px #0002;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.feature-step svg,
.shelf-step svg,
#close-viewer svg {
  width: 17px;
  height: 17px;
}
.feature-step {
  top: 48%;
}
.prev {
  left: 9px;
}
.next {
  right: 9px;
}
.feature:hover .feature-step,
.feature:focus-within .feature-step,
.shelf:hover .shelf-step,
.shelf:focus-within .shelf-step {
  opacity: 1;
}
.shelf {
  position: relative;
  margin-top: 36px;
}
.featured-region + .shelf {
  margin-top: 44px;
}
.shelf-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.shelf-heading .section-title {
  margin-bottom: 0;
}
.shelf-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}
.shelf-title span,
.shelf-caption {
  color: var(--quiet);
  font-size: var(--text-2);
}
.shelf-guide {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.shelf-caption {
  margin-bottom: var(--space-3);
}
.shelf-heading .pill {
  padding-inline: var(--space-3);
}
@media (max-width: 739px) {
  .shelf-heading .section-title {
    font-size: var(--text-5);
  }
}
.shelf + .m-card,
.shelf + .m-chart {
  margin-top: var(--space-5);
}
.section-title {
  font-size: var(--text-6);
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 13px;
}
.track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 9px 14px 16px;
  margin: -6px -14px -11px;
  scroll-padding-inline: 14px;
}
.track::-webkit-scrollbar {
  display: none;
}
.track > * {
  min-width: 0;
  scroll-snap-align: start;
}
.stories {
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
}
.showcase-card { position: relative; }
.showcase-link { display: block; }
.showcase-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}
.showcase-link:focus-visible { outline: none; }
.showcase-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.showcase-link:is(:hover, :focus-visible) strong {
  color: var(--accent);
}
.showcase-card .listing-label { position: relative; }
.showcase-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.showcase-card .kicker {
  color: var(--quiet);
  margin: 9px 0 4px;
}
.showcase-card strong,
.showcase-card small {
  display: block;
}
.showcase-card strong {
  font-size: var(--text-3);
  font-weight: 550;
  line-height: 1.25;
}
.showcase-card small {
  color: var(--quiet);
  font-size: var(--text-2);
  margin-top: 3px;
  line-height: 1.35;
}
.shelf-step {
  top: 40%;
}
.tiles {
  grid-auto-columns: max(min(210px, 100%), calc((100% - 3 * var(--gap)) / 4));
}
.tile {
  --tile-fade: 52px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template: "actions" minmax(120px, 1fr) "copy" auto / minmax(0, 1fr);
  min-height: 272px;
  background: #211c31;
  color: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.tile-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.tile-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: filter 140ms ease-out;
}
.tile-art > .fallback-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: var(--space-3);
  background: rgb(255 255 255 / 10%);
  color: #fff;
}
.tile-copy {
  grid-area: copy;
  margin: calc(-1 * var(--tile-fade)) calc(-1 * var(--space-3)) calc(-1 * var(--space-3));
  padding: var(--tile-fade) var(--space-3) var(--space-3);
  display: grid;
  gap: 6px;
  background: linear-gradient(to bottom, transparent, rgb(17 14 25 / 15%) 16px, rgb(17 14 25 / 52%) 36px,
    rgb(17 14 25 / 80%) var(--tile-fade), rgb(17 14 25 / 95%));
}
.tile .listing-meta {
  margin: 0;
}
.tile small,
.tile .listing-meta .repo-stars {
  color: #f7f4ff;
}
.tile .listing-shortcuts {
  grid-area: actions;
  justify-self: end;
  align-self: start;
}
.tile .listing-shortcuts .pill:not([data-saved="true"]) {
  --secondary-color: #fff;
  background: #171421df;
  border-color: #fff9;
}
.tile .listing-shortcuts .pill:hover {
  border-color: #fff;
}
@media (hover: hover) {
  .tile:hover .tile-art > img { filter: brightness(1.09); }
}
:root:not([data-theme="dark"]) .listing-thumbnail {
  outline: 1px solid rgb(29 29 31 / 14%);
  outline-offset: -1px;
}
.tile strong {
  font-size: 1.1875rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tile small {
  font-size: var(--text-2);
  line-height: 1.4;
  margin-block-start: var(--space-1);
}
@media (max-width: 739px) {
  .tile {
    grid-template-rows: minmax(104px, 1fr) auto;
    min-height: 248px;
  }
  .tile strong { font-size: var(--text-3); }
  .tile small { font-size: .8125rem; }
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border: 1.5px solid transparent;
  font-size: var(--text-2);
  font-weight: 650;
  padding: 5px var(--space-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill:not(.primary) {
  color: var(--secondary-color, var(--neon));
  background: transparent;
  border-color: currentColor;
}
.pill:not(.primary):is(:hover, [aria-pressed="true"]) {
  box-shadow: inset 0 0 0 1px currentColor;
}
.pill:focus-visible {
  outline-offset: -4px;
}
:root[data-palette]:not([data-theme="dark"]) {
  --secondary-color: var(--accent);
}
:is(.detail-banner, .feature-action) {
  --secondary-color: #e2d3ff;
}
.pill svg {
  width: 0.9em;
  height: 0.9em;
}
.list-track {
  grid-template-rows: repeat(3, auto);
  row-gap: var(--space-3);
  grid-auto-columns: max(min(320px, 100%), calc((100% - 2 * var(--gap)) / 3));
}
.entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: 10px var(--space-2);
  border-radius: var(--radius-media);
  transition: background-color 140ms ease-out;
}
.entry:has(.entry-title:focus-visible) {
  background-color: var(--hover);
}
@media (hover: hover) {
  .entry:hover { background-color: var(--hover); }
}
.fallback-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-media);
  object-fit: cover;
  flex: none;
}
.entry-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.entry-info > :is(img, .fallback-icon) {
  width: 82px;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-media);
  object-fit: cover;
  flex: none;
}
.entry strong,
.entry small {
  display: block;
}
.entry strong {
  font-size: var(--text-4);
  line-height: 1.15;
  font-weight: 700;
}
.entry small {
  font-size: .8125rem;
  color: var(--quiet);
  margin-top: 2px;
  line-height: 1.25;
}
.ranking-source,
.ranking-count {
  color: var(--quiet);
  font-size: var(--text-2);
}
.ranking-source {
  margin-bottom: var(--space-4);
}
.ranking-count {
  margin: var(--space-4) 0 var(--space-1);
}
.ranking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.ranking-controls label {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  width: min(100%, 11rem);
  font-size: var(--text-2);
  font-weight: 600;
}
.ranking-controls select {
  width: 100%;
  min-height: 40px;
  padding-inline: var(--space-2);
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-3);
  font-weight: 400;
}
.grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: var(--space-3);
}
:is(.entry, .tile) .repo-stars { cursor: pointer; }
.listing-shortcuts {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--space-1);
}
.listing-shortcuts .listing-action-icon {
  position: relative;
  width: 32px;
  height: 32px;
}
.listing-shortcuts .listing-action-icon svg { width: 16px; height: 16px; }
:is(.entry .entry-title, .tile .tile-info):focus-visible { outline: none; }
:is(.entry .entry-title, .tile .tile-info):focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-media);
}
.tile .tile-info:focus-visible::after {
  outline-color: #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 5px #171421;
  border-radius: var(--radius-card);
}
@media (max-width: 1024px) {
  .grid-list { grid-template-columns: 1fr; }
}
@media (max-width: 739px) {
  .entry-info > :is(img, .fallback-icon) { width: 76px; }
  .tile .listing-action-icon { width: 28px; height: 28px; }
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: var(--text-2);
  margin: 18px 0;
}
.back svg {
  width: 14px;
  height: 14px;
}
.back-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
}
.back-icon svg {
  width: 22px;
  height: 22px;
}
.detail-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: calc(-1 * var(--frame-gutter));
  color: #fff;
  box-shadow: var(--card-shadow);
}
.detail-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--hero-cover, var(--detail-cover)),
    var(--art, none) center 48% / cover,
    var(--detail-panel);
}
.detail-banner-inner {
  max-width: 1680px;
  margin-inline: auto;
  padding: var(--space-2) var(--frame-gutter) var(--space-4);
}
.detail-toolbar,
.detail-toolbar-actions {
  display: flex;
  align-items: center;
}
.detail-toolbar {
  justify-content: space-between;
  margin: 0 calc(-1 * var(--space-2)) var(--space-3);
}
.detail-toolbar .back-icon {
  margin: 0;
  color: var(--secondary-color);
}
.detail-toolbar-actions {
  gap: var(--space-2);
}
.detail-toolbar .store-account {
  position: static;
}
.detail-intro {
  overflow-wrap: anywhere;
}
.detail-banner h1,
.article-cover h1 {
  font-size: var(--text-8);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.detail-banner p {
  line-height: 1.5;
  max-width: 75ch;
  margin: var(--space-2) 0 var(--space-4);
}
.actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.listing-actions {
  align-items: center;
}
.listing-actions > .pill {
  min-width: 0;
  min-height: 44px;
  padding-inline: var(--space-3);
  white-space: normal;
  text-align: center;
}
.listing-icon-actions {
  display: flex;
  gap: var(--space-2);
}
.listing-action-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
}
.listing-action-icon > span { display: inline-flex; }
.listing-action-icon svg { width: 19px; height: 19px; }
[data-save-listing][data-saved="true"] > span:first-child,
[data-save-listing]:not([data-saved="true"]) > span:last-child { display: none; }
.listing-action-icon[data-saved="true"] {
  background: var(--secondary-color, var(--neon));
  color: var(--detail-panel);
  border-color: transparent;
}
.facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: var(--listing-section-space, var(--space-5)) 0;
}
.facts > div {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}
.facts dt {
  font-size: var(--text-1);
  color: var(--quiet);
  font-weight: 600;
}
.facts dd {
  font-size: var(--text-3);
  font-weight: 650;
  margin: var(--space-2) 0 0;
}
.facts dd .repo-stars {
  color: inherit;
  font-size: inherit;
  margin: 0;
}
.facts dt.sr-only + dd {
  margin-top: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
}
.project-detail {
  --listing-section-space: clamp(var(--space-7), 5vw, var(--space-8));
}
.project-detail > :is(.detail-section, .shelf) {
  margin-top: var(--listing-section-space);
}
.project-detail > .facts + .detail-section {
  margin-top: 0;
}
.project-detail > .facts:has(+ .listing-health) {
  padding-block-end: var(--space-4);
}
.project-detail > .facts + .listing-health {
  margin: 0;
  padding: 0;
}
.project-detail + .footer {
  border: 0;
}
.project-detail + .footer {
  padding-top: 0;
}
.detail-copy > :is(p, ol, .repo-prompt) {
  max-width: 72ch;
  line-height: 1.55;
}
.detail-copy ol {
  padding-inline-start: var(--space-5);
  margin-block: 0;
}
.detail-copy li + li {
  margin-top: var(--space-2);
}
.play-instructions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  margin: 0;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.play-instructions > summary::-webkit-details-marker {
  display: none;
}
.play-instructions > summary::after {
  content: "";
  flex: none;
  width: .5em;
  height: .5em;
  margin-inline-end: .2em;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.play-instructions[open] > summary {
  margin-bottom: var(--space-2);
}
.play-instructions[open] > summary::after {
  transform: rotate(45deg);
}
.shots {
  grid-auto-columns: min(calc((100% - var(--gap)) / 2), 560px);
}
.shots:has(> :only-child) {
  grid-auto-columns: min(100%, 780px);
}
.shots > :is(button, video) {
  display: block;
  padding: 0;
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--radius-media);
  aspect-ratio: 16 / 10;
}
.shots > video {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--detail-panel);
}
.shots img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-credits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.preview-credits a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-1);
  color: var(--quiet);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.preview-credits svg {
  width: 12px;
  height: 12px;
}
.article {
  display: grid;
  grid-template-columns: minmax(240px, 0.83fr) minmax(0, 1.5fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.article-cover {
  position: sticky;
  top: 15px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  background: var(--art-fallback, #35313b);
  color: white;
  border-radius: var(--radius-card);
  padding: 24px;
}
.article-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.article-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--art-text-shade);
  z-index: -1;
}
.article-cover h1 {
  margin: 6px 0;
}
.article-copy {
  padding: 5px 0;
  font-size: var(--text-3);
  line-height: 1.5;
}
.article-copy .section-title {
  margin-top: 25px;
}
.article-copy p {
  margin-bottom: 16px;
}
.article-copy .actions {
  margin-top: 25px;
}
.article-copy ol {
  padding-inline-start: 1.4em;
}
.article-copy li + li {
  margin-top: 7px;
}
.article-copy p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pill-row {
  --pill-arrow-size: 30px;
  --pill-fade-size: var(--space-4);
  position: relative;
  display: flow-root;
}
.pill-track {
  --pill-fade-start: 0px;
  --pill-fade-end: 0px;
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-2) var(--space-3) var(--space-3);
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-3)) var(--space-2);
  scroll-padding-inline: var(--space-3);
}
.pill-track::-webkit-scrollbar {
  display: none;
}
.pill-row[data-can-scroll-back] > .pill-track {
  --pill-fade-start: var(--pill-fade-size);
}
.pill-row[data-can-scroll-forward] > .pill-track {
  --pill-fade-end: var(--pill-fade-size);
}
.pill-row:is([data-can-scroll-back], [data-can-scroll-forward]) > .pill-track:not(:has(a:focus-visible)) {
  mask-image: linear-gradient(to right, transparent, #000 var(--pill-fade-start),
    #000 calc(100% - var(--pill-fade-end)), transparent);
}
.pill-row[data-overflow] > .pill-track {
  scroll-padding-inline: calc(var(--pill-fade-size) + var(--space-1));
}
.pill-step {
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: var(--pill-arrow-size);
  height: var(--pill-arrow-size);
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--card-shadow);
}
.pill-step.prev {
  inset-inline-start: 0;
}
.pill-step.next {
  inset-inline-end: 0;
}
.pill-step[aria-disabled="true"] {
  cursor: default;
  opacity: 0.5;
}
@media (min-width: 740px) {
  .pill-row[data-overflow] {
    padding-inline: calc(var(--pill-arrow-size) + var(--space-2));
  }
  .pill-row > .pill-track {
    margin-inline: 0;
    padding-inline: 0;
  }
}
@media (max-width: 739px) {
  .pill-step {
    display: none;
  }
}
.pill-track a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) 10px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-category);
  background: var(--surface);
  font-weight: 650;
  font-size: var(--text-2);
  line-height: 1.2;
}
.pill-track a:hover {
  background: var(--hover);
}
.pill-track a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-track svg {
  width: 18px;
  height: 18px;
}
/* Match the tab icons in the sidebar and page heading. */
.discover-tab-pills svg {
  color: var(--neon);
  flex: none;
}
.discover-heading .pill-track {
  margin-block: calc(-1 * var(--space-2));
  padding-block: var(--space-2);
}
@media (min-width: 1000px) {
  .discover-heading {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding-block: var(--space-3) var(--space-5);
  }
  .discover-heading .page-title {
    flex: none;
    padding: 0;
  }
  .discover-heading .pill-row {
    min-width: 0;
  }
  .frame:has(> .store-account a) .discover-heading {
    padding-inline-end: 240px;
  }
}
@media (max-width: 999px) {
  .discover-heading .pill-row {
    margin-bottom: var(--space-3);
  }
}
@media (max-width: 739px) {
  .discover-tab-pills a {
    min-height: 44px;
  }
}
a[data-category] > svg {
  stroke: var(--category-ink, var(--neon));
  stroke-width: 1.7;
}
a[data-category] [data-paint="body"] {
  fill: var(--category-fill);
}
a[data-category] [data-paint="detail"] {
  stroke: var(--category-detail);
}
a[data-category] [data-paint="accent"] {
  fill: var(--category-detail);
}
[data-category="Puzzles"] {
  --category-ink: #146198;
  --category-fill: #37c6f1;
}
[data-category="Flying and driving"] {
  --category-ink: #0e675e;
  --category-fill: #44d3b3;
}
:is([data-category="Drawing and design"], [data-category="Game code"], [data-category="Design and making"]) {
  --category-ink: #a92272;
  --category-fill: #f478c2;
  --category-detail: #6847e2;
}
:is([data-category="Quick utilities"], [data-category="Creative experiments"], [data-category="Relaxing games"], [data-category="Video and sound"], [data-category="Learning games"]) {
  --category-ink: #a5490a;
  --category-fill: #f9bd46;
  --category-detail: #ce487b;
}
:is([data-category="Money and planning"], [data-category="Image tools"], [data-category="Files and system tools"], [data-category="ArtCraft collection"]) {
  --category-ink: #177752;
  --category-fill: #60dfa4;
  --category-detail: #2569c8;
}
:is([data-category="Developer tools"], [data-category="Writing and text"], [data-category="Source to study"], [data-category="GitHub Repos"], [data-category="Writing and planning"], [data-category="Code, science and learning"], [data-category="Programming tools"], [data-category="Science and learning"]) {
  --category-ink: #6651bc;
  --category-fill: #b8a5f8;
  --category-detail: #176f8d;
}
[data-category="Developer tools"] {
  --category-detail: #197f72;
}
[data-theme="dark"] a[data-category] > svg {
  filter: brightness(1.35) saturate(1.22);
}
.empty {
  margin: 40px 0;
  color: var(--quiet);
}
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  color: var(--quiet);
  font-size: var(--text-1);
}
.footer a {
  text-decoration: underline;
  color: var(--accent);
}
dialog {
  border: 0;
  background: transparent;
  padding: 18px;
  max-width: min(92vw, 1200px);
}
dialog::backdrop {
  background: #17171bd9;
}
dialog img {
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-media);
}
.listing-dialog {
  width: min(92vw, 520px);
  max-height: 90dvh;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.listing-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.listing-dialog-heading h2 {
  font-size: var(--text-6);
  line-height: 1.2;
}
.listing-dialog-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hover);
  color: var(--ink);
}
.listing-dialog-close svg {
  width: 18px;
  height: 18px;
}
.share-fields {
  display: grid;
  gap: var(--space-2);
}
.share-fields label {
  font-size: var(--text-2);
  font-weight: 650;
}
.share-fields label:not(:first-child) {
  margin-top: var(--space-2);
}
.share-url-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.share-fields :is(input, textarea) {
  min-width: 0;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.share-fields :is(input, textarea):focus {
  border-color: var(--ink);
}
.share-fields textarea {
  resize: vertical;
}
.share-url-row button {
  flex: none;
}
#share-status {
  color: var(--quiet);
  font-size: var(--text-2);
  min-height: 1lh;
}
.save-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-media);
  background: var(--canvas);
  overflow-wrap: anywhere;
}
.save-preview > :is(img, .fallback-icon) {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-control);
  object-fit: cover;
}
.save-preview small { display: block; color: var(--quiet); }
.save-body, .save-copy { margin-top: var(--space-4); }
.save-body .actions { margin-top: var(--space-4); }
.save-body .pill, .save-remove { min-height: 44px; }
.save-body .pill { white-space: normal; text-align: center; }
.save-body [aria-disabled="true"] { opacity: .65; cursor: wait; }
.save-remove {
  margin-top: var(--space-2);
  padding: 0;
  background: transparent;
  color: var(--quiet);
  font-size: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.save-hint { margin-top: var(--space-2); color: var(--quiet); font-size: var(--text-2); }
.save-hint a { text-decoration: underline; }
.viewer-stage {
  position: relative;
  overflow: hidden;
  width: min(84vw, 1040px);
  height: min(78dvh, 760px);
}
.viewer-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.viewer-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
#close-viewer {
  position: absolute;
  right: 25px;
  top: 24px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}
@media (min-width: 1700px) {
  .stories {
    grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  }
}
@media (max-width: 1099px) {
  :root {
    --rail: 210px;
    --gap: 15px;
  }
  #rail {
    padding: 23px 16px;
  }
  .list-track {
    grid-auto-columns: max(min(320px, 100%), calc((100% - var(--gap)) / 2));
  }
  .article {
    gap: 24px;
  }
  .feature-copy {
    padding: 0 26px 33px;
  }
  .featured-region + .shelf {
    margin-top: 30px;
  }
}
@media (max-width: 739px) {
  :root {
    --gap: 12px;
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 7;
    height: 48px;
    background: var(--canvas);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
  }
  .mobile-bar button {
    padding: 0;
    color: var(--accent);
    font-size: var(--text-4);
    min-width: 38px;
    height: 42px;
    display: grid;
    place-items: center;
  }
  #rail {
    transform: translateX(-101%);
    width: min(295px, 86vw);
    top: 48px;
    visibility: hidden;
  }
  .menu-open #rail {
    visibility: visible;
    transform: none;
  }
  .menu-open #scrim {
    display: block;
    position: fixed;
    inset: 48px 0 0;
    background: #0005;
    z-index: 4;
  }
  main {
    margin: 0;
  }
  .frame {
    padding: 0 18px 35px;
  }
  .page-title {
    font-size: var(--text-7);
    padding: 14px 0;
  }
  .feature {
    aspect-ratio: 1.26;
    border-radius: var(--radius-card);
  }
  .feature-copy {
    padding: 0 18px 32px;
    max-width: 98%;
  }
  .feature-copy h2 {
    font-size: var(--text-6);
  }
  .feature-copy p {
    font-size: var(--text-2);
  }
  .feature-step {
    width: 25px;
    height: 25px;
    top: 10px;
    opacity: 1;
  }
  .feature-step.prev {
    left: auto;
    right: 41px;
  }
  .shelf,
  .featured-region + .shelf {
    margin-top: 23px;
  }
  .stories {
    grid-auto-columns: 76%;
  }
  .tiles {
    grid-auto-columns: min(57vw, 225px);
  }
  .list-track {
    grid-auto-columns: max(min(320px, 100%), 93%);
  }
  .shelf-step {
    display: none;
  }
  .article {
    display: block;
  }
  .article-cover {
    position: relative;
    top: 0;
    aspect-ratio: 1.35;
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 739px) {
  :root {
    --phone-pad: 6vw;
  }
  .mobile-bar {
    height: 44px;
    background: var(--surface);
    gap: var(--space-2);
    padding-inline: max(0px, calc(var(--phone-pad) - 12px)) max(0px, calc(var(--phone-pad) - 16px));
    border-color: var(--rule);
    z-index: 9;
  }
  .mobile-actions {
    display: flex;
    align-items: center;
    flex: none;
  }
  .mobile-actions a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--accent);
  }
  #mobile-search {
    position: relative;
    isolation: isolate;
    background: transparent;
    border-radius: var(--radius-control);
  }
  #mobile-search::before {
    content: "";
    position: absolute;
    inset: 5px var(--space-1);
    z-index: -1;
    border-radius: var(--radius-control);
  }
  #mobile-search[aria-current="page"]::before {
    background: var(--accent-soft);
  }
  #mobile-search:active::before {
    background: var(--hover);
  }
  #mobile-search:focus-visible {
    outline-offset: -5px;
  }
  .mobile-actions svg { width: 20px; height: 20px }
  #mobile-member {
    display: flex;
  }
  .mobile-bar #menu {
    width: 44px;
    height: 44px;
    flex: none;
    background: transparent;
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 44px;
    margin-inline: auto;
  }
  .mobile-brand img {
    max-width: 100%;
  }
  #rail {
    top: 44px;
    bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 8;
    background: var(--surface);
    padding: 32px var(--phone-pad);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .rail-tools > :is(a, button) {
    width: min(100%, 52px);
    height: 52px;
  }
  .rail-tools svg {
    width: 28px;
    height: 28px;
  }
  body.menu-open {
    overflow: hidden;
  }
  #rail > .brand,
  #rail #search-form,
  .menu-open #scrim {
    display: none;
  }
  .store-account,
  .detail-toolbar .member-avatar {
    display: none;
  }
  .frame:has(.store-account a) > .page-title,
  .seo-content:has(.store-account a) > h1 {
    padding-inline-end: 0;
  }
  #navigation a {
    gap: var(--space-4);
    min-height: 44px;
    padding-inline: var(--space-2);
    font-size: var(--text-3);
  }
  #navigation svg {
    width: 20px;
    height: 20px;
  }
  .frame {
    --frame-gutter: var(--phone-pad);
    padding: 0 var(--frame-gutter) 40px;
  }
  .page-title {
    font-size: var(--text-7);
    padding: 13px 0 17px;
    letter-spacing: -0.035em;
  }
  .m-card,
  .m-chart {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 16px;
  }
  .m-card {
    isolation: isolate;
    background: var(--art-fallback, #262136);
    aspect-ratio: 3/4;
    display: grid;
    align-content: end;
    color: white;
  }
  .m-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  .m-card-copy {
    display: grid;
    gap: 7px;
    padding: var(--space-9) var(--space-4) var(--space-4);
    /* Keep the low, gradual shade with the copy when it wraps. */
    background: linear-gradient(transparent, #0002 24px, #0005 48px, #0009 76px, #000a);
  }
  .m-card-copy h2,
  .m-chart h3 {
    font-size: clamp(var(--text-6), 7.5vw, var(--text-8));
    letter-spacing: -0.035em;
    line-height: 1.12;
  }
  .m-card-copy > p {
    font-size: var(--text-2);
    line-height: 1.35;
    color: #fff;
  }
  .m-card-copy small,
  .m-tag,
  .m-chart > small,
  .m-promo small {
    font-size: var(--text-1);
    font-weight: 650;
  }
  .m-card-action {
    justify-self: end;
    margin-block-start: var(--space-1);
  }
  .m-card-action .pill {
    pointer-events: auto;
    white-space: normal;
    text-align: center;
  }
  .m-tag {
    position: absolute;
    left: 0;
    top: 0;
    padding: 7px 12px;
    background: var(--surface);
    border-bottom-right-radius: var(--radius-media);
  }
  .m-section {
    font-size: var(--text-3);
    line-height: 1.25;
    margin: 40px 0 12px;
  }
  .m-section a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .m-section svg {
    width: 15px;
    height: 15px;
  }
  .m-sub {
    font-size: var(--text-2);
    color: var(--quiet);
    margin: -7px 0 12px;
  }
  .m-chart {
    padding: 16px;
    background: var(--surface);
  }
  .m-chart h3 {
    margin: 7px 0 10px;
  }
  .m-chart > small {
    color: var(--quiet);
  }
  .m-chart-scroll {
    display: grid;
    gap: var(--space-3);
    max-height: 48vh;
    overflow: auto;
  }
  .m-list-track,
  .m-ranks,
  .m-media,
  .m-spot-track,
  .m-genres {
    scrollbar-width: none;
  }
  .m-genres,
  .m-ranks,
  .m-media {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
  }
  .m-genres {
    margin: 0 calc(-1 * var(--phone-pad)) 14px;
    padding: 3px var(--phone-pad) 7px;
  }
  .m-spot-track {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--phone-pad)) -13px;
    padding-bottom: 13px;
  }
  .m-feature-track {
    margin: 0 calc(-1 * var(--phone-pad)) 0 0;
    padding: 0 var(--space-6) 0 0;
    gap: var(--space-3);
    overflow-y: hidden;
  }
  .m-feature-track > .m-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin-bottom: 0;
  }
  .m-promo strong {
    font-size: var(--text-5);
  }
  .m-ranks,
  .m-list-track,
  .m-media {
    margin-right: calc(-1 * var(--phone-pad));
    padding-right: var(--phone-pad);
    scroll-snap-type: x mandatory;
  }
  .m-ranks {
    margin-inline-start: -14px;
    margin-block: -6px -11px;
    padding: 6px var(--phone-pad) 15px 14px;
    scroll-padding-inline-start: 14px;
  }
  .m-ranks > .tile,
  .m-media > * {
    scroll-snap-align: start;
  }
  .m-ranks > .tile {
    flex: 0 0 min(57vw, 225px);
    min-width: 0;
  }
  .m-list-track {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: max(min(320px, 100%), 83%);
    grid-auto-flow: column;
    overflow-x: auto;
    gap: var(--space-3) 20px;
  }
  .m-list-track .entry {
    scroll-snap-align: start;
  }
  .m-promo {
    background: #417400;
    color: white;
    margin: 32px 0;
    overflow: hidden;
    border-radius: var(--radius-card);
  }
  .m-promo a {
    display: grid;
    gap: 6px;
    padding-bottom: 20px;
  }
  .m-promo img {
    width: 100%;
  }
  .m-promo strong,
  .m-promo span,
  .m-promo small {
    margin-inline: 16px;
  }
  .m-genres a {
    padding: 32px 18px 12px;
    min-width: 125px;
    color: var(--genre-ink);
    background: var(--genre);
    border-radius: var(--radius-media);
    font-weight: 650;
  }
  #mobile-find {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--field-rule);
    background: var(--surface);
    border-radius: var(--radius-control);
    padding: 0 10px;
    color: var(--accent);
  }
  #mobile-find input {
    border: 0;
    color: var(--ink);
    background: transparent;
    min-width: 0;
    flex: 1;
    height: 45px;
    font: inherit;
  }
  #mobile-find button { min-height: 36px; flex: none }
  .m-detail header,
  .m-membership {
    margin-inline: calc(-1 * var(--phone-pad));
    color: white;
  }
  .m-detail header {
    background: linear-gradient(165deg, #c39959, #975603);
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 22px var(--phone-pad);
  }
  .m-detail header img {
    width: 34%;
    aspect-ratio: 1;
    border-radius: 24%;
  }
  .m-detail header h1 {
    font-size: var(--text-4);
    margin: 3px 0;
  }
  .m-detail header .pill {
    margin-top: 10px;
  }
  .m-membership {
    display: grid;
    gap: 7px;
    padding: 20px var(--phone-pad);
    margin-top: 24px;
    background: linear-gradient(165deg, #9d497e, #311e43 80%, #151225);
  }
  .m-membership strong {
    max-width: 180px;
  }
  .m-fact-region {
    overflow: auto;
    margin: 24px 0 10px;
  }
  .m-detail .facts {
    width: max-content;
    margin: 0;
    overflow: visible;
  }
  .m-detail .facts div {
    padding-inline: 15px;
  }
  .m-detail .facts div {
    flex: none;
    min-width: 25vw;
  }
  .m-media > * {
    flex: 0 0 80%;
    width: 80%;
    aspect-ratio: 2.16;
    background: var(--surface);
    border: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    padding: 0;
  }
  .m-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .m-detail details,
  .m-detail > p,
  .m-info {
    padding: 14px 0;
    font-size: var(--text-2);
    line-height: 1.45;
  }
  .m-detail details,
  .m-info {
    border-bottom: 1px solid var(--rule);
  }
  .m-detail h2 {
    margin: 34px 0 12px;
    font-size: var(--text-4);
  }
  .m-rating {
    font-size: var(--text-8);
  }
  .m-detail .m-privacy {
    background: var(--hover);
    text-align: center;
    border-radius: var(--radius-media);
    padding: 28px 10px;
  }
  .m-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
}
@media (max-width: 739px) {
  .m-event,
  .m-arcade-end {
    display: grid;
    gap: 8px;
    padding: 32px 20px;
    border-radius: var(--radius-card);
    color: white;
  }
  .m-event {
    background: linear-gradient(145deg, #805218, #623212);
    min-height: 140px;
    align-content: end;
  }
  .m-arcade-end {
    background: linear-gradient(140deg, #95355c, #170e28);
    margin: 30px 0;
    text-align: center;
    justify-items: center;
  }
  .m-info b {
    font-weight: 550;
    text-align: right;
  }
}

@media (max-width: 739px) {
  .detail-toolbar {
    margin-bottom: var(--space-2);
  }
  .detail-banner {
    --hero-cover: linear-gradient(108deg, #171024df, #171024bf 58%, #171024b2);
  }
  .detail-banner h1 {
    font-size: var(--text-6);
  }
  .detail-banner p {
    font-size: var(--text-2);
    margin-block: var(--space-1) var(--space-3);
  }
  .listing-dialog {
    padding: var(--space-4);
  }
  .facts {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts dd {
    font-size: var(--text-2);
  }
  .shots {
    grid-auto-columns: 92%;
  }
}

.repo-stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--quiet);
  font-size: var(--text-1);
  line-height: 1.3;
  margin-top: 3px;
}
.repo-stars svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.feature-copy .repo-stars,
.m-card-copy .repo-stars {
  color: #fff;
}
.entry-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}
.quick {
  flex: none;
}
.feature-action {
  position: absolute;
  bottom: 38px;
  right: 38px;
}
.feature-action:has(.quick)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px -32px;
  background: #000d;
  filter: blur(16px);
  pointer-events: none;
}
.feature-action .pill {
  min-height: 36px;
}
.feature-action .primary {
  padding: 9px 17px;
}
.feature-copy {
  padding-right: 100px;
}
/* Stack the hero copy above its actions when the side rail leaves less room. */
@media (min-width: 740px) and (max-width: 1050px) {
  .feature {
    min-height: 360px;
  }
  .feature-copy {
    max-width: 100%;
    padding-right: 26px;
    padding-bottom: 86px;
  }
}
.source-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 739px) {
  .feature-action {
    bottom: 10px;
    right: 10px;
  }
  .m-card .pill {
    min-height: 44px;
  }
}

.primary,
.feature-action .primary,
.m-card-action .pill {
  background: var(--neon);
  color: var(--accent-ink);
}
.m-card-action .pill { border-color: transparent; }
.play-dialog {
  width: min(94vw, 1160px);
  max-width: none;
  padding: 12px;
  background: var(--canvas);
  color: var(--ink);
  border-radius: var(--radius-card);
}
.play-dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.play-dialog iframe {
  width: 100%;
  height: min(74dvh, 760px);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface);
  display: block;
}
.demo-actions {
  margin-top: 12px;
}

.feature-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.built-in-tool {
  max-width: 680px;
}
.built-in-tool > p {
  margin-bottom: 24px;
  line-height: 1.5;
}
.tool-form,
.tool-field {
  display: grid;
  gap: 8px;
}
.tool-form {
  gap: 16px;
}
.tool-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.tool-field label {
  font-weight: 600;
}
.tool-field input,
.tool-field select,
.tool-field textarea {
  width: 100%;
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  color: inherit;
  background: var(--surface);
  font-size: var(--text-3);
}
.tool-field textarea {
  min-height: 120px;
  resize: vertical;
}
.tool-submit {
  justify-self: start;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--accent-ink);
  font-weight: 650;
}
.tool-result {
  padding: 16px;
  border-radius: var(--radius-media);
  background: var(--accent-soft);
}
.tool-result p,
.tool-result small {
  display: block;
  margin-top: 8px;
}
.split-total {
  font-size: var(--text-7);
  font-weight: 700;
}
.demo-post iframe {
  width: min(100%, 560px);
  height: 590px;
  border: 0;
  margin-top: 12px;
}

.fallback-icon {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
}
[data-prompt-toggle] svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}
[data-prompt-toggle][aria-expanded="true"] svg { transform: rotate(-90deg); }
.listing-prompt {
  display: grid;
  min-width: 0;
  max-width: 65ch;
  margin-top: var(--space-3);
  padding: var(--space-4);
  gap: var(--space-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.listing-prompt label { font-weight: 650; }
.listing-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.listing-prompt-actions .pill { min-height: 44px; }
.listing-prompt-status { font-size: var(--text-2); }
.listing-prompt textarea {
  width: 100%;
  min-height: 108px;
  margin: 0;
  resize: vertical;
}
.repo-prompt-text {
  margin: 0 0 var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:is(.entry, .tile) .entry-description,
.tile strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.search-filter-note { font-size: var(--text-2); color: var(--quiet) }
.search-empty .actions { margin-top: var(--space-3) }
.plain-result { white-space: pre-wrap; overflow-wrap: anywhere }
@media (max-width: 739px) and (hover: hover) {
  #mobile-search:not([aria-current]):hover::before {
    background: var(--hover);
  }
}

.seo-content { line-height: 1.5; padding-block: var(--space-6) }
.seo-content h1 { line-height: 1.15; margin: 0 0 var(--space-3) }
.seo-content .seo-hero { margin-bottom: var(--space-5) }
.seo-content .seo-hero p, .seo-content li { max-width: 70ch }
.seo-content .seo-cover { display: block; width: min(100%, 720px); height: auto; border-radius: var(--radius-card); }
.seo-list { display: grid; gap: var(--space-2); padding-left: 1.25em; }
.seo-list small { display: block; color: var(--quiet); font-size: var(--text-2); }
.seo-content a:not(.pill), .footer a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

.seo-standalone #content { margin-inline: auto; }
.seo-standalone .mobile-bar { display: none; }

.listing-health {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  margin: 0 0 1rem;
  padding: .85rem 0;
  font-size: var(--text-2);
  color: var(--quiet);
}
.listing-health strong {
  display: inline-flex;
  color: var(--ink);
}
.listing-health-fact dt { display: flex; }
.listing-health strong,
.listing-health-fact dt {
  align-items: center;
  gap: .45rem;
}
:is(.listing-health strong, .listing-health-fact dt)::before {
  content: "";
  inline-size: .55rem;
  block-size: .55rem;
  flex: none;
  border-radius: 50%;
  background: #76767b;
}
:is(.listing-health, .listing-health-fact)[data-state="working"] :is(strong, dt)::before { background: #16844a; }
.listing-health[data-state="archived"] strong::before { background: #ce3f46; }

.market-saved-view { max-width: 900px; }
.saved-library-intro { margin: 0 0 24px; }
.saved-library-intro > p { margin: 0 0 12px; color: var(--quiet); }
.saved-library-list { list-style: none; margin: 0; padding: 0; }
.saved-library-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.saved-library-list > li > .actions { flex-wrap: wrap; }
.saved-feedback:not([hidden]) { display: block; font-size: 13px; color: var(--quiet); }
@media (max-width: 650px) {
  .saved-library-list > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .saved-library-list > li > .actions { margin-top: 0; }
}

.saved-feedback a { text-decoration: underline; text-underline-offset: 3px; }

.about-frame {
  padding-block-start: clamp(var(--space-5), 4vw, var(--space-8));
}
.market-about {
  container-type: inline-size;
  max-inline-size: 1320px;
  margin-inline: auto;
}
.about-spread {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.about-copy {
  min-inline-size: 0;
}
.market-about h1,
.market-about h2 {
  margin: 0;
  padding: 0;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.market-about h1 {
  font-size: clamp(var(--text-8), 6cqi, calc(2 * var(--text-8)));
}
.market-about h2 {
  font-size: clamp(var(--text-7), 4.2cqi, calc(1.5 * var(--text-8)));
}
.market-about p {
  max-inline-size: 55ch;
  margin: var(--space-3) 0 0;
  color: var(--quiet);
  font-size: clamp(var(--text-4), 1.8cqi, var(--text-5));
  line-height: 1.52;
  text-wrap: pretty;
}
.about-hero .pill {
  margin-block-start: var(--space-5);
}
.feedback-frame .feedback-note {
  font-size: var(--text-2);
}
.feedback-frame .about-next {
  margin-block-start: var(--space-7);
}
.market-about .pill {
  min-block-size: 44px;
}
.about-art {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.about-sketch {
  box-shadow: none;
}
.about-story,
.about-chapter,
.about-values,
.about-next {
  margin-block-start: clamp(var(--space-8), 8cqi, 104px);
}
.about-principles {
  margin: var(--space-4) 0 0;
}
.about-principles div {
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--rule);
}
.about-principles div:last-child {
  border-block-end: none;
  padding-block-end: 0;
}
.about-principles dt {
  font-size: var(--text-4);
  font-weight: 700;
}
.about-principles dd {
  margin: var(--space-1) 0 0;
  color: var(--quiet);
  font-size: var(--text-3);
  line-height: 1.5;
}
.about-principles a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-next {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(var(--space-5), 4cqi, var(--space-7));
  background: var(--surface);
  border-radius: var(--radius-card);
}
.about-next h2 {
  font-size: clamp(var(--text-7), 3.4cqi, calc(1.2 * var(--text-8)));
}
.about-next .actions {
  margin: 0;
}

@container (min-width: 740px) {
  .about-spread {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    column-gap: clamp(var(--space-6), 5cqi, var(--space-9));
  }
  .about-story {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  }
  .about-story .about-art {
    grid-area: 1 / 1;
  }
  .about-story .about-copy {
    grid-area: 1 / 2;
  }
  .about-values .about-art {
    align-self: center;
  }
}

.market-review-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-media);
  background: var(--surface);
}
.market-review-fact,
.market-review-summary { display: inline-flex; align-items: center; gap: var(--space-2) }
.market-review-fact {
  min-height: 44px;
  padding: 0;
  background: none;
  color: var(--accent);
  text-align: start;
  font-size: var(--text-2);
  text-underline-offset: 3px;
}
.market-review-summary { flex-wrap: wrap }
.market-review-summary > span:last-child { text-decoration: underline }
.market-review-summary > strong { font-variant-numeric: tabular-nums }
.market-review-fact > svg { flex: none; width: 14px; height: 14px; rotate: 90deg }
.market-review-fact[aria-expanded="true"] > svg { rotate: -90deg }
.market-review-strip > .pill { min-height: 40px }
.market-reviews { scroll-margin-top: 20px }
.market-review-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px }
.market-review-results { flex: 1 0 100%; min-width: 0 }
.market-review-message { margin: 0; padding-block: var(--space-2) }
.market-review-stars { display: inline-flex; gap: 2px; color: var(--accent) }
.market-star { position: relative; display: inline-grid; width: 19px; height: 19px; flex: 0 0 19px }
.market-star svg { position: absolute; inset: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round }
.market-star .star-fill { fill: currentColor; stroke: none; clip-path: inset(0 100% 0 0) }
.market-star.fill-1 .star-fill { clip-path: inset(0 50% 0 0) }
.market-star.fill-2 .star-fill { clip-path: none }
.market-review { padding: var(--space-3) 0 }
.market-review-meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 14px }
.market-review-meta time { opacity: 0.78 }
.market-review p { max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0 }
.market-review-pagination { justify-content: flex-end; margin-top: 10px }
.market-review-pagination button:disabled { opacity: 0.5; cursor: default }

@media (max-width: 600px) {
  .market-review-strip { padding: var(--space-2) var(--space-3); gap: var(--space-2) }
  .market-review-strip .market-star { width: 16px; height: 16px; flex-basis: 16px }
  .market-review-fact { flex: 1 1 7rem }
  .market-review-strip > .pill { padding-inline: var(--space-3) }
}
@media (max-width: 760px) {
  .market-reviews { scroll-margin-top: 64px }
}

.feature-carousel {
  --rotation-control-size: 44px;
  position: relative;
}
.feature-rotation-toggle {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--rotation-control-size);
  height: var(--rotation-control-size);
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1.5px solid currentColor;
  background: transparent;
  color: var(--neon);
}
.feature-rotation-toggle:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
:is(.feature, .m-feature-track) + .feature-rotation-toggle {
  --rotation-edge: #fff;
  filter: drop-shadow(1px 0 var(--rotation-edge)) drop-shadow(-1px 0 var(--rotation-edge))
    drop-shadow(0 1px var(--rotation-edge)) drop-shadow(0 -1px var(--rotation-edge));
}
[data-theme="dark"] :is(.feature, .m-feature-track) + .feature-rotation-toggle {
  --rotation-edge: #171421;
}
.market-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: var(--space-2);
  color: var(--accent);
  background: var(--surface);
  border-radius: var(--radius-control);
  font-size: var(--text-2);
  text-decoration: none;
}
.market-social-icons a:hover {
  background: var(--hover);
}
.feature-rotation-toggle svg,
.market-social-icons svg,
.follow-card-actions svg {
  width: 18px;
  height: 18px;
}
.market-social-icons {
  display: flex;
  gap: var(--space-2);
}
.footer .market-social-icons {
  margin-block-start: var(--space-3);
}

.discover-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-end: var(--space-5);
}
.discover-promos > :is(.launch-card, .follow-card, .discover-intro) {
  margin: 0;
}
@media (max-width: 959px) {
  .launch-card,
  .follow-card {
    gap: var(--space-2);
  }
  .launch-card .pill,
  .follow-card .pill {
    padding-inline: var(--space-2);
  }
}
@media (max-width: 739px) {
  .m-spot-track + .feature-rotation-toggle {
    inset-inline-end: calc(var(--space-3) + var(--space-6) - var(--phone-pad));
  }
  .discover-promos.m-spot-track {
    display: flex;
    gap: var(--space-3);
    margin: 0 calc(-1 * var(--phone-pad)) var(--space-4) 0;
    padding: 0 var(--space-6) 0 0;
    overflow-y: hidden;
  }
  .discover-promos.m-spot-track > * {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .discover-promos.m-spot-track :is(.launch-card, .follow-card) h2 {
    min-block-size: var(--rotation-control-size);
    padding-inline-end: calc(var(--rotation-control-size) + var(--space-2));
  }
  .discover-promos.m-spot-track > .discover-intro {
    padding-inline-end: calc(var(--rotation-control-size) + 2 * var(--space-3));
  }
}

/* The guide uses the same pill styles as the listings. */
.label-guide {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4) var(--space-3);
  margin: 0;
  font-size: var(--text-2);
  line-height: 1.45;
}
.label-guide dd {
  margin: 0;
}
.listing-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.listing-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--label-fill);
  color: var(--label-text);
  font-size: var(--text-1);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.listing-label:is(.listing-label--play, .listing-label--create, .listing-label--work, .listing-label--develop) {
  --label-fill: var(--selected);
  --label-text: var(--ink);
}
.listing-label--free { --label-fill: #e0ebc8; --label-text: #354921; }
.listing-label--ai { --label-fill: #efe8ff; --label-text: #512a9a; }
.listing-label--open { --label-fill: #dff3ea; --label-text: #145745; }
.listing-label--github { --label-fill: #e5eefb; --label-text: #254f83; }
.listing-label--try { --label-fill: #fff0d5; --label-text: #74460e; }
.listing-label--paid { --label-fill: #f8e8ec; --label-text: #78354d; }
[data-theme="dark"] .listing-label--free { --label-fill: #38452b; --label-text: #dcebbd; }
[data-theme="dark"] .listing-label--ai { --label-fill: #3d2b5a; --label-text: #e5d6ff; }
[data-theme="dark"] .listing-label--open { --label-fill: #203e34; --label-text: #b9ecd9; }
[data-theme="dark"] .listing-label--github { --label-fill: #253a53; --label-text: #d1e4ff; }
[data-theme="dark"] .listing-label--try { --label-fill: #473521; --label-text: #ffe1b1; }
[data-theme="dark"] .listing-label--paid { --label-fill: #4e2d39; --label-text: #fcd6e2; }
button.listing-label { cursor: pointer; }
button.listing-label:hover { border-color: currentColor; }
.listing-label:focus-visible, .card-target:focus-visible, .entry-title:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.card-target {
  position: absolute;
  inset: 0;
}
.card-target:focus-visible { outline-offset: -4px; }
.feature-copy, .m-card-copy { position: relative; pointer-events: none; }
:is(.feature-copy, .m-card-copy) .listing-label { pointer-events: auto; }
.entry-title { display: block; }
:is(.entry-title, .tile-info)::after {
  content: "";
  position: absolute;
  inset: 0;
}
.listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}
.listing-meta:empty { display: none; }
.listing-meta .listing-label {
  position: relative;
  min-height: 22px;
  padding-inline: 7px;
  font-size: .6875rem;
}
.listing-meta .repo-stars {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
:is(.feature-copy, .showcase-card) .listing-labels { margin-block: var(--space-1); }
:is(.detail-intro, .seo-hero) .listing-labels { margin-block: var(--space-3); }
.listing-alternate { margin: var(--space-4) 0 0; font-size: var(--text-2); }
.listing-alternate a { color: var(--accent); text-underline-offset: 3px; }

.filter-toolbar,
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-toolbar {
  margin-block: var(--space-3) var(--space-4);
}
.browse-controls {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--space-6);
  margin-block: 0 var(--space-4);
}
.browse-controls > .filter-anchor::after {
  content: "";
  position: absolute;
  inset-block: var(--space-2);
  inset-inline-start: calc(100% + var(--space-4));
  width: 1px;
  background: #fff;
  pointer-events: none;
}
.browse-controls .pill-track {
  margin-block: calc(-1 * var(--space-2));
  padding-block: var(--space-2);
}
.browse-controls .active-filters { grid-column: 1 / -1; }
.filter-anchor { position: relative; }
.featured-region:has(.filter-trigger[aria-expanded="true"]) { z-index: 2; }
.filter-panel {
  position: absolute;
  z-index: 4;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: 0;
  width: min(400px, calc(100vw - 2 * var(--frame-gutter)));
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
#filter-form {
  display: flex;
  flex-direction: column;
  max-height: min(500px, 62dvh);
}
.filter-trigger, .filter-selection, .filter-clear {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--text-2);
  font-weight: 650;
  cursor: pointer;
}
.filter-trigger {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--field-rule);
}
.filter-trigger:is(:hover, [aria-expanded="true"]), .filter-selection:hover { border-color: var(--accent); }
.filter-trigger svg, .filter-selection svg { width: 16px; height: 16px; flex: none; }
.filter-trigger svg { color: var(--accent); }
.filter-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--surface);
  font-size: var(--text-1);
}
.filter-selection {
  color: var(--accent);
  background: var(--accent-soft);
  min-height: 32px;
}
.filter-clear { color: var(--quiet); background: transparent; padding-inline: var(--space-2); }
.filter-clear:hover { color: var(--accent); }
:is(.filter-trigger, .filter-selection, .filter-clear, #filter-form input, #filter-form select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#filter-fields {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.filter-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-3);
}
.filter-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-3);
}
#filter-fields fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-2);
  line-height: 1.3;
  cursor: pointer;
}
.filter-option input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
}
#filter-fields select {
  width: 100%;
  min-height: 44px;
  padding-inline: var(--space-2);
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  flex: none;
  padding: var(--space-2) var(--space-4);
}
.filter-actions button { min-height: 44px; }
.search-suggested-title {
  font-size: var(--text-3);
  margin: var(--space-5) 0 var(--space-1);
}
@media (max-width: 739px) {
  .filter-trigger, .filter-selection, .filter-clear { min-height: 44px; }
  #mobile-find { padding-block: var(--space-1); }
}
.connect-ai { max-width: 1040px; }
.connect-intro { padding-block: var(--space-3) var(--space-6); max-width: 62ch; }
.connect-intro img { margin-bottom: var(--space-3); }
.connect-intro p { margin: 0; color: var(--quiet); font-size: var(--text-4); }
.connect-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.connect-setup, .connect-example {
  min-width: 0;
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-card);
}
.connect-ai h2 { margin-top: 0; }
.connect-address, .connect-command {
  padding: var(--space-3);
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  overflow-wrap: anywhere;
}
.connect-address { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-block: var(--space-4); }
.connect-address .pill { margin: 0; }
.connect-command { white-space: pre-wrap; }
.connect-ai details { border-top: 1px solid var(--rule); padding-block: var(--space-3); }
.connect-ai summary { cursor: pointer; font-weight: 650; }
.connect-ai details p { margin-block: var(--space-2); }
.connect-layout textarea {
  display: block;
  width: 100%;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--field-rule);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  field-sizing: content;
  min-height: 7lh;
  resize: vertical;
}
.connect-setup > .pill, .connect-example > .pill { margin-bottom: var(--space-4); }
.connect-api { margin-block: var(--space-6); }
.connect-api code { overflow-wrap: anywhere; }
@media (max-width: 920px) {
  .connect-layout { grid-template-columns: minmax(0, 1fr); }
}
