.search.is-open { background:#16191f }
.search .search-clear .shell-icon { color:rgb(73 76 86 / 72%) }
.search-panel,.download-card,.services-card,.account-links,dialog { background:var(--wash) }
.search-tags button { background:#292b32 }
.search-ranks,.search-ranks section+section,.download-card>div,.site-legal-jump,#site-footer .healthy-play { border-color:rgb(217 220 227 / 6%) }
.search-title button,.search-ranks li::before { color:var(--hint) }
.search-list a:is(:hover,:focus-visible),.nav-link:not(.current):hover { background:rgb(255 255 255 / 5%) }
.sidebar-scroll:is(:hover,:focus-within) { scrollbar-color:var(--control-line) transparent }
.sidebar-buttons { border-color:rgb(217 220 227 / 12%) }
.sidebar-buttons>:not(.current) { color:#828892 }
#site-footer { color:#797e88 }
.services-card h2 { color:var(--brand-text) }
.download-card figcaption { color:var(--ink) }
dialog::backdrop { background:rgb(0 0 0 / 40%) }

@media (max-width:767px) {
  .mobile-nav { background:#16191f; box-shadow:0 -.5px 0 rgb(25 49 55 / 30%) }
  .mobile-nav a:not([aria-current]) { color:var(--hint) }
  header:has(.search.is-open)::before { background:var(--wash) }
}

@media (max-width:479px) {
  .search:not(.is-open)::before,.search:not(.is-open) #search-hint,.search:not(.is-open) .search-submit { background:#292b32 }
}

.filters button:not([aria-pressed=true]),.filter-arrows button { color:var(--secondary-ink); background:var(--wash); border-color:var(--line) }
.filters button:not([aria-pressed=true]):hover,.filter-arrows button:enabled:hover { color:var(--ink); background:rgb(255 255 255 / 5%); border-color:rgb(217 220 227 / 12%) }
.filter-arrows button:disabled { opacity:.4 }
.controls .round,.progress { color:var(--muted) }
.controls .round:hover { color:var(--ink); background:rgb(255 255 255 / 5%) }
#play:hover { color:var(--ink); background:transparent }
#play::before { background:rgb(217 220 227 / 6%) }
.dot::after { background:rgb(115 120 132 / 40%) }
.dot[aria-current=true]::after { background:linear-gradient(to right,var(--muted) var(--fill,0%),rgb(115 120 132 / 40%) var(--fill,0%)) }
.slide-name small { color:rgb(255 255 255 / 72%) }

.rank-column {
  background:var(--wash);
  box-shadow:0 4px 24px rgb(0 0 0 / 6%);
}
.rank-tabs a { background:var(--wash); color:var(--secondary-ink) }
.rank-tabs [aria-current=true] { background:var(--brand); color:var(--on-brand); border-color:var(--brand) }
.rank-entry:hover,.rank-entry:focus-visible { background:rgb(255 255 255 / 5%) }
.rank-entry .rank-position,.rank-column li:nth-child(n+3) .rank-position,.rank-count { color:var(--control-line) }
.rank-column li:nth-child(2) .rank-position { color:var(--muted) }
.rank-copy p { color:var(--secondary-ink) }
.detail-facts { background:var(--surface) }
.detail-back { background:var(--wash) }
.detail-facts dd,.detail-tabs button { color:var(--secondary-ink) }
.detail-summary>span { color:var(--secondary-ink); background:var(--wash); border-color:transparent }
.screenshot-viewer { background:black }
.screenshot-viewer button,.screenshot-count { background:rgb(0 0 0 / 60%) }
.pagenumber a:not([href]) { color:var(--control-line) }
main.auth-page {
  --canvas:#191919;
  --surface:#191919;
  --wash:#353535;
  --ink:#fff;
  --secondary-ink:rgb(255 255 255 / 50%);
  --muted:rgb(255 255 255 / 35%);
  --hint:var(--muted);
  --line:rgb(255 255 255 / 20%);
  --control-line:#353535;
  background:var(--canvas);
  color:var(--ink);
}
.auth-page .auth-box { background:transparent }
.auth-page .stack-form label { color:var(--ink) }
.auth-page .stack-form input:not([type=checkbox]):focus { outline:none; border-bottom-color:var(--brand) }
.auth-page .stack-form .check-label { color:var(--muted) }
.auth-page .check-label input {
  appearance:none; width:16px; height:16px; margin:0; flex:none; border:1.5px solid var(--line);
  border-radius:50%; background:var(--canvas); cursor:pointer;
}
.auth-page .check-label input:checked { background:var(--brand); border-color:var(--brand) }
.auth-page .check-label input:checked::after {
  content:""; display:block; width:7px; height:4px; margin:3px auto; border:solid var(--on-brand);
  border-width:0 0 1.5px 1.5px; transform:rotate(-45deg);
}
.auth-page .section-tabs>* { color:var(--brand-text) }
.auth-page .auth-links { color:var(--secondary-ink) }
.auth-page .stack-form:invalid .action,.auth-page .action:disabled,.auth-page .soft-button:disabled { opacity:.5 }
.auth-page .scan-dialog { background:var(--surface) }
.auth-page .scan-dialog p { color:var(--secondary-ink) }
.auth-page .layui-layer-msg { background:var(--wash); color:var(--ink); border-color:var(--control-line) }

@media (max-width:700px) {
  .auth-page .auth-box { border-color:transparent }
}
