:root {
  --ink: #111;
  --muted: #484848;
  --line: #dedede;
  --surface: #fff;
  --accent: #c9633f;
  --action: #111111;
  --action-hover: #333333;
  --focus: #873d26;
  --font: Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --regular: 400;
  --medium: 500;
  --semibold: 600;
  --bold: 700;
  --control-height: 2.5rem;
  --control-radius: .5rem;
  --icon-size: 1.125rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23434b51' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
body { font-size: var(--text-md); font-weight: var(--regular); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .site-header, body > .site-footer { flex: none; }
body > #app { flex: 1 0 auto; margin-block: 0; }
.site-footer { display: grid; justify-content: center; text-align: center; gap: .25rem; margin: 2rem auto 0; padding-block: 1.25rem; }
.filings { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.filings a { display: inline-flex; gap: .3rem; align-items: center; }
.filings a:hover { text-decoration: underline; }
.filings img { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-weight: var(--semibold); letter-spacing: -.02em; }
.brand-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.brand small, kbd, .count, .rating-demo, .badge, .hero-credit, .card-body .tag, .source-note { font-size: var(--text-xs); }
.hero h1 { font-size: var(--text-3xl); font-weight: var(--semibold); letter-spacing: -.025em; }
.section-head h1, .section-head h2 { font-size: var(--text-2xl); font-weight: var(--semibold); letter-spacing: -.02em; }
.panel h3, .callout h3 { font-size: var(--text-lg); }
.dialog-top h2 { font-size: var(--text-xl); }
.filter-group summary, .filter-title { font-weight: var(--semibold); }
.site-header { background: #080808; color: #fff; border-bottom-color: #333; color-scheme: dark; }
.site-header :focus-visible { outline-color: #fff; }
.header-inner { gap: clamp(.75rem, 2vw, 2rem); }
.header-actions { display: flex; align-items: center; gap: .625rem; }
.site-header .header-actions .button {
  background: #161616;
  color: inherit;
  border-color: #666;
}
.site-header .header-actions .button:hover { background: #303030; }
.browse-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  min-height: 3rem;
}
.browse-bar .main-nav { flex: none; width: auto; }
.browse-bar .category-nav { min-width: 0; }
.browse-bar .main-nav a, .browse-bar .category-tab {
  color: inherit;
  background: transparent;
  padding: .65rem 0;
  font-size: .9375rem;
  font-weight: var(--regular);
}
.browse-bar .main-nav a:hover, .browse-bar .category-tab:hover { background: #242424; }
.browse-bar .main-nav a:focus-visible, .browse-bar .category-tab:focus-visible { outline-offset: -3px; }
.browse-bar .main-nav a[aria-current]::after { height: 2px; background: #fff; }
.browse-bar .category-tab[aria-pressed=true] { border-bottom-color: #fff; }
.hero { min-height: 166.5px; }
.hero-content { padding-block: 16px; }
.hero .actions { margin-top: 12px; }
.title-button, .card-title, .price { font-size: var(--text-md); font-weight: var(--semibold); }
.card-author { font-size: var(--text-sm); }
.rating-line { font-size: var(--text-sm); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  min-height: var(--control-height);
  padding: .5rem .875rem;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--semibold);
}
.button:hover { background: #f6f5f4; color: var(--ink); border-color: #bbb9b6; }
.button.primary, .button.dark, .button.studio-link {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}
.button.primary:hover, .button.dark:hover, .button.studio-link:hover {
  color: #fff;
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.button:disabled, .button[aria-disabled=true] { opacity: .58; cursor: not-allowed; }
.button.filter-toggle { display: none; }
.sort, .form select {
  appearance: none;
  min-height: var(--control-height);
  padding: .5rem 2.5rem .5rem .875rem;
  background: var(--surface) var(--select-chevron) right .875rem center / 1rem no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  font-size: var(--text-sm);
}
.sort { min-width: 8rem; color: var(--ink); }
.form input:not([type=checkbox], [type=radio]), .form textarea { min-height: var(--control-height); padding: .5rem .75rem; border-radius: var(--control-radius); }
:is(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ui-icon { display: inline-block; width: var(--icon-size); height: var(--icon-size); flex: none; vertical-align: middle; }
.category-label { display: inline-flex; gap: .625rem; align-items: center; }
html, body { background-color: var(--surface); }
.catalog .sidebar { position: relative; border: 0; border-radius: 0; padding: 0; background: transparent; }
.sidebar .filter-group { padding: 0; border: 0; }
.sidebar .filter-group + .filter-group { margin-top: 1.5rem; }
.sidebar .filter-group summary {
  display: flex; align-items: center; gap: .5rem; min-height: 2.5rem;
  margin: 0 0 .25rem; padding: .25rem .5rem; list-style: none;
  font-size: 1rem; font-weight: var(--medium); color: var(--action);
}
.sidebar .filter-group summary::-webkit-details-marker { display: none; }
.sidebar .filter-group summary::after {
  content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.sidebar .filter-group[open] summary::after { transform: translateY(-2px) rotate(45deg); }
.sidebar .filter-group:first-of-type summary { margin-right: 3.5rem; }
.sidebar .filter-reset { position: absolute; top: 0; right: 0; min-height: 2.5rem; padding-inline: .5rem; font-weight: var(--regular); }
.sidebar .filter-list { gap: 0; }
.sidebar .count { color: #454545; background: #f4f4f4; border-radius: 4px; min-width: 1.5rem; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.sidebar .tags { padding-inline: .5rem; }
.sidebar .tag, .catalog .card-body .tag { font-size: .8125rem; }
.tag { color: var(--ink); }
.card-body .price, .rating-stars::before, .rating-line { color: var(--ink); }
.card-body .card-author, .card-body .rating-line { font-size: .9375rem; }
.card-body .between + .rating-line { margin-block: .375rem; }
.card-body .rating-count, .card-body .rating-demo { color: var(--muted); }
.catalog .card-body .title-button { font-weight: var(--medium); line-height: 1.45; color: var(--action); }
.sidebar .filter-item {
  font-family: inherit; font-size: var(--text-md); font-weight: 450;
  min-height: 2.5rem; padding: .375rem .5rem;
  line-height: 1.5; color: var(--action); background: transparent;
}
.category-label .ui-icon { width: 20px; height: 20px; color: #202020; stroke-width: 1.8; }
.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.quick-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px;
  margin: -4px;
}
.quick-filters .tag {
  flex: none;
  min-height: var(--control-height);
  padding: .375rem .875rem;
  border-radius: var(--control-radius);
  font-size: var(--text-md);
  font-weight: 450;
}
.favorite { display: grid; place-items: center; }
.favorite.saved .ui-icon { fill: currentColor; }
.close { display: inline-grid; place-items: center; }
.header-inner .global-search {
  width: min(100%, 39rem);
  min-width: 0;
  height: 2.75rem;
  margin-inline: auto;
  padding: 0 0 0 .875rem;
  border-color: #666;
  background: #181818;
}
.global-search:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.global-search input { color: inherit; font-size: var(--text-sm); }
.global-search input::placeholder { color: #fff; opacity: 1; }
.global-search kbd { color: inherit; border-color: #666; flex: none; }
.search-submit {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0;
  width: 2.75rem;
  flex: none;
  color: inherit;
  background: #2c2c2c;
  border: 0;
  border-inline-start: 1px solid #666;
  border-radius: 0 7px 7px 0;
}
.search-submit:hover { background: #444; }
.global-search .search-icon { display: inline-flex; border: 0; width: var(--icon-size); height: var(--icon-size); }
.global-search .search-icon::after { content: none; }
.sidebar .filter-item:hover, .sidebar .filter-item.selected { color: var(--focus); }
@media (max-width: 820px) {
  .header-inner { flex-wrap: nowrap; padding-block: .5rem; }
  .browse-bar { flex-direction: column; gap: 0; }
  .browse-bar .main-nav { padding: 0; justify-content: flex-start; }
  .browse-bar .main-nav a, .browse-bar .category-tab { font-size: .875rem; }
  #catalog { scroll-margin-top: 175px; }
}
@media (max-width: 580px) {
  .button.filter-toggle { display: inline-flex; }
  .brand-logo { width: 2rem; height: 2rem; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .header-inner .global-search { grid-area: 1 / 1 / 2 / -1; }
  .header-inner .brand { grid-area: 2 / 1; justify-self: start; }
  .header-actions { grid-area: 2 / 2; }
  #catalog { scroll-margin-top: 200px; }
  .hero h1, .section-head h1, .section-head h2 { font-size: var(--text-xl); }
  .hero .button, .account-actions .button, .header-inner .studio-link { min-height: 2rem; font-size: var(--text-xs); padding: .3rem .55rem; }
  .global-search input { font-size: var(--text-xs); }
  .hero-credit { font-size: var(--text-xs); }
  .hero { min-height: 136.5px; }
  .hero-content { padding-block: 12px; }
  .hero .actions { margin-top: 8px; }
}
