:root {
  color-scheme: light;
  --bg: #f6f3eb;
  --paper: #fffdf8;
  --ink: #24251f;
  --muted: #6c6c63;
  --line: #dfded5;
  --accent: #be421b;
  --orange: #ef632f;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
.availability-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); margin-bottom: 14px; }
.availability-bar strong { font-size: 12px; }
.availability-bar p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.availability-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; cursor: pointer; flex-shrink: 0; min-height: 40px; }
.availability-toggle input { width: 34px; height: 20px; appearance: none; border-radius: 20px; background: #d3d4c9; cursor: pointer; position: relative; margin: 0; }
.availability-toggle input::before { content: ""; position: absolute; height: 14px; width: 14px; border-radius: 50%; top: 3px; left: 3px; background: white; box-shadow: 0 1px 3px #0003; }
.availability-toggle input:checked { background: var(--accent); }
.availability-toggle input:checked::before { transform: translateX(14px); }
.availability-toggle span { font-weight: 400; color: var(--muted); }
.availability { display: inline-flex; gap: 5px; align-items: center; border-radius: 4px; padding: 2px 6px; background: #ecebe5; color: #66665c; font-size: 9px; font-weight: 650; white-space: nowrap; }
.availability::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.availability[data-state="live"] { background: #e5eedf; color: #42613b; }
.availability[data-state="error"] { background: #fae5df; color: #a13424; }
.availability[data-state="unknown"] { background: #f2ead4; color: #78602d; }
.next-tabs h2 { font-size: 21px; letter-spacing: -.6px; margin: 0; }
.next-tabs { max-width: 900px; margin: 30px 0 40px; }
.next-tabs table { border-collapse: collapse; width: 100%; margin: 16px 0; text-align: left; font-size: 12px; }
.next-tabs th, .next-tabs td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.next-tabs thead th { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.next-tabs tbody th { width: 26%; padding-left: 0; }
.next-tabs td > span { display: inline-block; margin: 0 18px 4px 0; color: var(--muted); }
.next-tabs td a { color: var(--ink); font-weight: 600; }
.next-tabs > p { font-size: 11px; color: var(--muted); }
.discovery { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 25px 0 35px; border-top: 1px solid var(--line); font-size: 12px; }
.discovery span { font-weight: 700; margin-right: auto; }
@media (max-width: 760px) {
  .availability-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .next-tabs h2 { font-size: 19px; }
  .discovery { gap: 14px; }
  .discovery span { flex-basis: 100%; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.55 var(--sans);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1320px;
  padding: 0 30px;
  margin: auto;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.9px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--orange);
  color: #251b13;
  font-size: 15px;
  letter-spacing: -0.6px;
}
.catalog-count {
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.3px;
}
/* Between 1100 and ~1340 px the header row has no room for the count on one line
   (it pushed "Suggest a game" 10 px off a 1280 px screen): it wraps between its
   phrases, never inside one. The shell's nowrap rule loads later, hence .gallery-page. */
.gallery-page .catalog-header > .catalog-count { min-width: 0; white-space: normal; text-align: right; line-height: 1.15; }
.catalog-count .count-part { white-space: nowrap; }
.catalog-count .count-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.share {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.share .button {
  gap: 7px;
  padding: 9px 11px;
  color: var(--ink);
}
.share .button.copied {
  border-color: #7fae7c;
  background: #e9f3e6;
}
.share-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 37px;
  background: var(--paper);
  font-weight: 650;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  border-color: #b7b5a8;
}
.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #281c11;
}
.button.primary:hover {
  background: #ff7745;
}
.controls {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 21px 0 7px;
}
.search {
  flex: 1;
  min-width: 230px;
}
.search input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
}
.control select {
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 24px 8px 10px;
  max-width: 180px;
  font-size: 11px;
}
.filter-toggle[aria-pressed="true"] {
  background: #fae2d4;
  border-color: #e5aa91;
  color: #973012;
}
.filter-toggle span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
  color: var(--muted);
  font-size: 10px;
}
.list-meta p {
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  color: var(--accent);
}
.game-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.game article {
  display: grid;
  grid-template-columns: 35px 76px minmax(0, 1fr) 235px 115px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.game[aria-busy="true"] {
  opacity: 0.75;
}
.votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.vote {
  width: 32px;
  height: 27px;
  border: 0;
  background: transparent;
  color: #818278;
  border-radius: 4px;
  font-size: 12px;
}
.vote:hover {
  background: #ebe8df;
  color: var(--ink);
}
.vote.up[aria-pressed="true"] {
  background: #f9e0d2;
  color: #b6431f;
}
.vote.down[aria-pressed="true"] {
  background: #dee8f4;
  color: #34608c;
}
.score {
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.votes:has(.up[aria-pressed="true"]) .score {
  color: var(--accent);
}
.votes:has(.down[aria-pressed="true"]) .score {
  color: #34608c;
}
.thumbnail {
  height: 64px;
  width: 76px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #e6dfc8;
  display: block;
  text-decoration: none;
}
.thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fallback-art {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 28px;
  font-weight: 750;
  color: #706548;
  background: #eee3c5;
}
.thumbnail.no-image .fallback-art {
  display: grid;
}
.thumbnail.no-image img {
  display: none;
}
.game-info,
.credits {
  min-width: 0;
}
.title-line {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.title-line h2 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  font-weight: 750;
}
.game-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.game-title:hover {
  color: var(--accent);
}
.category-tag {
  font-size: 9px;
  color: #747569;
  white-space: nowrap;
}
.description {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.game-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--muted);
}
.ai-kind {
  color: #9c4024;
  font-weight: 600;
}
.game-tags .text-button {
  font-size: 9px;
}
.credits {
  font-size: 11px;
}
.author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.author {
  font-weight: 650;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.author:hover,
.author-x:hover {
  color: var(--accent);
}
.author-x {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--muted);
  text-decoration: none;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-line {
  margin: 5px 0 0;
  font-size: 10px;
  color: #52594e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-line a {
  text-decoration: underline;
  text-decoration-color: #aeb3a5;
  text-decoration-style: dotted;
}
.model-line.unknown {
  color: var(--muted);
}
.tool-line {
  margin: 3px 0 0;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.numbers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.open-count {
  white-space: nowrap;
}
.favorite {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 4px;
  min-height: 30px;
  padding: 3px 5px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.favorite:hover {
  background: #ece8df;
}
.favorite[aria-pressed="true"] {
  color: var(--accent);
  background: #fae8de;
}
.heart {
  font-size: 18px;
  line-height: 1;
}
.count-note {
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 28px;
  line-height: 1.7;
}
.count-note .text-button {
  margin-left: 4px;
}
.notice {
  padding: 11px 13px;
  background: #fae6d9;
  border: 1px solid #f0c6ad;
  border-radius: 6px;
  font-size: 12px;
  margin: 7px 0 12px;
}
.empty {
  text-align: center;
  padding: 45px 15px;
  border-bottom: 1px solid var(--line);
}
.empty h2 {
  font-size: 20px;
  margin: 0 0 6px;
}
.empty p {
  color: var(--muted);
}
dialog {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  max-width: min(650px, calc(100% - 24px));
  width: 650px;
  max-height: calc(100dvh - 30px);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1f251aa6;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 0 35px 12px 0;
  overflow-wrap: anywhere;
}
dialog h3 {
  font-size: 13px;
  margin: 22px 0 8px;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dialog-close {
  position: absolute;
  right: 9px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 26px;
  width: 37px;
  height: 37px;
  border-radius: 6px;
}
.dialog-close:hover {
  background: #eae7dd;
}
.detail-fields {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  font-size: 12px;
  row-gap: 12px;
  column-gap: 15px;
}
.detail-fields dt {
  color: var(--muted);
}
.detail-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-fields dd a {
  color: var(--ink);
}
.detail-fields .model-detail {
  display: block;
  margin-bottom: 8px;
}
.source-list {
  padding-left: 18px;
  font-size: 11px;
}
.source-list li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.source-list a {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dialog-intro {
  margin-bottom: 16px;
}
.suggest-dialog {
  width: min(520px, calc(100% - 24px));
}
.suggest-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 10px;
  background: #eceae2;
}
.suggest-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 38px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.suggest-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px #24251f14;
}
.simple-form {
  grid-template-columns: 1fr;
  gap: 12px;
}
.simple-form label {
  display: block;
}
.simple-form label input,
.simple-form label textarea,
.simple-form label select {
  display: block;
  margin-top: 5px;
}
.paste-label {
  display: block;
}
.paste-label textarea,
#pasteField {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  background: var(--paper);
  border: 1px solid #cfcec3;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-family: inherit;
}
.suggest-dialog .form-bottom {
  margin-top: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  min-width: 0;
}
.form-grid label span {
  display: inline;
  color: var(--accent);
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #cfcec3;
  border-radius: 5px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 400;
}
.form-grid textarea {
  resize: vertical;
  min-height: 65px;
}
.private-fields {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.private-fields summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
}
.private-fields .form-grid {
  margin-top: 14px;
}
.private-fields p {
  font-size: 10px;
}
.form-status {
  font-size: 12px !important;
  margin: 15px 0 0;
  white-space: pre-line;
}
.form-status.error {
  color: #a8341d;
}
.form-status.success {
  color: #326231;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 10px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 1100px) {
  .shell {
    padding: 0 24px;
  }
  .game article {
    grid-template-columns: 32px 65px minmax(0, 1fr) 205px 95px;
    gap: 12px;
  }
  .thumbnail {
    width: 65px;
    height: 60px;
  }
  .author-line {
    display: block;
  }
  .author-x {
    display: block;
    max-width: none;
    margin-top: 2px;
  }
  .controls {
    gap: 7px;
  }
  .control select {
    max-width: 160px;
  }
  .title-line {
    gap: 7px;
  }
  .category-tag {
    display: none;
  }
}
@media (max-width: 850px) {
  .game article {
    grid-template-columns: 32px 65px minmax(0, 1fr) 95px;
    gap: 9px 13px;
    padding: 14px 0;
  }
  .credits {
    grid-column: 3;
    grid-row: 2;
  }
  .game-info {
    grid-column: 3;
    grid-row: 1;
  }
  .game-actions {
    grid-column: 4;
    grid-row: 1/3;
  }
  .votes,
  .thumbnail {
    grid-row: 1/3;
  }
  .author-line {
    display: flex;
  }
  .author-x {
    margin-top: 0;
    max-width: 120px;
  }
  .model-line,
  .tool-line {
    display: inline-block;
    margin: 3px 8px 0 0;
    max-width: 100%;
  }
  .game-tags {
    gap: 8px;
  }
  .search {
    flex-basis: 100%;
  }
  .control {
    flex: 1;
  }
  .control select {
    width: 100%;
    max-width: none;
  }
  .catalog-count {
    font-size: 10px;
  }
  .description {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .credits {
    font-size: 10px;
  }
  .model-line {
    font-size: 9px;
  }
}
@media (max-width: 560px) {
  .shell {
    padding: 0 14px;
  }
  header {
    height: 66px;
    gap: 10px;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .catalog-count {
    display: none;
  }
  header > .button {
    font-size: 10px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .share {
    gap: 6px;
  }
  .share .button {
    width: 36px;
    min-height: 36px;
    padding: 0;
  }
  .share-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .controls {
    padding-top: 15px;
    gap: 7px;
  }
  .search {
    min-width: 100%;
  }
  .control {
    flex: 1 1 calc(50% - 4px);
  }
  .control select {
    width: 100%;
    max-width: none;
    padding: 7px 15px 7px 7px;
    font-size: 10px;
  }
  .filter-toggle {
    font-size: 10px;
    min-height: 32px;
    padding: 6px 10px;
  }
  .list-meta {
    min-height: 34px;
    font-size: 9px;
  }
  .game article {
    grid-template-columns: 29px 47px minmax(0, 1fr) 58px;
    gap: 7px 9px;
    padding: 14px 0;
  }
  .thumbnail {
    height: 44px;
    width: 47px;
    grid-row: 1;
    align-self: start;
    margin-top: 3px;
  }
  .votes {
    grid-column: 1;
    grid-row: 1/3;
    align-self: start;
    margin-top: 0;
  }
  .vote {
    width: 29px;
    height: 30px;
  }
  .score {
    font-size: 12px;
  }
  .game-info {
    grid-column: 3/5;
    grid-row: 1;
  }
  .title-line h2 {
    font-size: 14px;
  }
  .description {
    font-size: 10px;
    line-height: 1.55;
    margin: 4px 0;
  }
  .game-tags {
    gap: 6px;
    font-size: 8px;
  }
  .game-tags .text-button {
    font-size: 8px;
  }
  .credits {
    grid-column: 2/4;
    grid-row: 2;
    padding-top: 3px;
  }
  .author-line {
    display: block;
  }
  .author {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    font-size: 10px;
  }
  .author-x {
    display: inline-block;
    margin-left: 7px;
    font-size: 8px;
    max-width: 112px;
    vertical-align: bottom;
  }
  .model-line {
    display: block;
    font-size: 9px;
    max-width: 100%;
    margin-top: 4px;
  }
  .tool-line {
    font-size: 8px;
    margin-top: 0;
  }
  .game-actions {
    grid-column: 4;
    grid-row: 2;
    align-self: end;
    gap: 4px;
  }
  .numbers {
    gap: 1px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 9px;
  }
  .favorite {
    font-size: 9px;
    min-height: 28px;
    padding: 2px 4px;
  }
  .heart {
    font-size: 17px;
  }
  .open-count {
    font-size: 9px;
    white-space: nowrap;
  }
  .count-note {
    font-size: 9px;
    line-height: 1.7;
  }
  .count-note .text-button {
    font-size: 9px;
    margin-left: 0;
  }
  dialog {
    padding: 22px 18px;
  }
  dialog h2 {
    font-size: 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid label {
    font-size: 11px;
  }
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  #pasteField {
    font-size: 16px;
  }
  .detail-fields {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 10px;
    font-size: 11px;
  }
  .source-list {
    font-size: 10px;
  }
  .form-bottom {
    gap: 10px;
  }
  .fallback-art {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Editorial collections keep scores distinct from the community counters. */
.collections { display: flex; gap: 5px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.collections button { border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 9px 14px; min-height: 40px; font-size: 12px; font-weight: 650; }
.collections button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.collections button:hover:not([aria-pressed="true"]) { background: #eae6da; }
.collections button span { margin-left: 7px; font-size: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.collection-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.controls { padding-top: 10px; }
/* Five columns: the creator, model and tools moved into the info column's meta line (12 Sep 2026). */
.game article { grid-template-columns: 56px 62px 76px minmax(0, 1fr) 48px; grid-template-areas: "community rating art info actions"; gap: 14px; padding: 13px 0; align-items: center; }
/* Community column: the stars and opens. */
.game .community { grid-area: community; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.game .community .numbers { flex-direction: column; align-items: center; gap: 0; font-size: 10px; }
.game .community .favorite { min-height: 26px; padding: 2px 6px; gap: 4px; }
.game .community .heart { font-size: 15px; }
.game .community .open-count { color: var(--muted); padding: 2px 0; }
/* Editorial score as a small card: rank, score, scale. */
.game .thumbnail { grid-area: art; }
.game .game-info { grid-area: info; }
.game .credits { display: contents; }
.game .votes { grid-area: votes; }
.game .game-actions { grid-area: actions; }
.game .game-tags { gap: 2px 12px; font-size: 10px; margin-top: 2px; line-height: 1.6; }
.game .author-line { display: inline-flex; gap: 6px; align-items: baseline; min-width: 0; max-width: 100%; }
.game .author { display: inline-block; font-weight: 650; color: var(--ink); max-width: 220px; }
.game .author-x { display: inline-block; margin: 0; }
.game .model-line, .game .tool-line { display: inline-block; margin: 0; font-size: 10px; max-width: 260px; vertical-align: bottom; }
.game .tool-line[hidden] { display: none; }
.game .description { white-space: normal; font-size: 12px; line-height: 1.5; margin: 2px 0; display: block; }
.ranking-reason { margin: 1px 0 3px; color: #505247; font-size: 11px; line-height: 1.55; }
.x-posts { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 4px 0; font-size: 10px; color: var(--accent); }
/* Device chip: honest three-state flag from the catalog's devices field. */
.device-tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 2px 6px; font-size: 9px; font-weight: 650; white-space: nowrap; background: #ecebe5; color: #66665c; line-height: 1.5; }
.device-tag[data-devices="both"], .device-tag[data-devices="mobile"] { background: #e2ebf5; color: #2f5680; }
.device-tag[data-devices="unknown"] { background: transparent; border: 1px dashed #cfcdc2; color: var(--muted); padding: 1px 5px; }
.device-tag:empty { display: none; }
.x-posts a { text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.x-posts a:hover { text-decoration: underline; }
.x-posts > span { color: var(--muted); }
/* Play is a round start button: icon only, the label stays for assistive tech. */
.game .game-actions { grid-area: actions; display: flex; align-items: center; justify-content: center; align-self: center; }
#detailsPlay { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 12px; font-weight: 750; min-height: 44px; padding: 10px 13px; gap: 12px; border-radius: 7px; box-shadow: 0 2px 0 #762b17; }
#detailsPlay:hover { background: #9e3214; border-color: #9e3214; }
#detailsPlay:active { transform: translateY(1px); box-shadow: none; }
/* Round start control: flat green disc, white triangle, no text. */
.game .play, .featured-game .play { --go: #16a34a; width: 40px; height: 40px; min-height: 0; padding: 0; gap: 0; border-radius: 50%; border: 0; background: var(--go); color: #fff; box-shadow: none; transition: background 0.12s ease, transform 0.12s ease; }
.game .play .play-label, .featured-game .play .play-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game .play:hover, .featured-game .play:hover { background: #15803d; transform: scale(1.06); }
.game .play:active, .featured-game .play:active { transform: scale(0.96); }
.game .play:focus-visible, .featured-game .play:focus-visible, #detailsPlay:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
#detailsPlay:focus-visible { outline-color: #f2a98f; }
.play-icon { display: grid; place-items: center; line-height: 1; }
.play-icon svg { display: none; width: 18px; height: 18px; }
#detailsPlay .play-icon svg { width: 15px; height: 15px; }
[data-kind="play"] .icon-play, [data-kind="external"] .icon-external, [data-kind="retry"] .icon-retry { display: block; }
.game .play[data-kind="play"] .icon-play, .featured-game .play[data-kind="play"] .icon-play { margin-left: 2px; } /* optical centre for the triangle */
.game .play.retry-link, .featured-game .play.retry-link, #detailsPlay.retry-link { background: #fae5df; color: #983620; border: 1px solid #dfad9f; box-shadow: none; }
.game .play.retry-link:hover, .featured-game .play.retry-link:hover { background: #f4d3c9; transform: none; }
.x-post-link, .source-list .x-post-link { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); text-decoration: none; }
.x-post-link:hover, .source-list .x-post-link:hover { background: #eae6da; border-color: #b8b4a6; text-decoration: none; }
.x-post-link span { overflow: hidden; text-overflow: ellipsis; }
.x-logo { width: 13px; height: 13px; flex: 0 0 13px; }
main { padding-top: 14px; }
.featured { margin: 0 0 12px; }
.featured h2 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); }
.featured-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.featured-game article { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.featured-art, .featured-art.thumbnail { display: block; aspect-ratio: 16 / 9; width: 100%; height: auto; border-radius: 0; background: #e6dfc8; }
.featured-art img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 10px 12px 12px; min-width: 0; }
.featured-body h3 { margin: 0; font-size: 16px; letter-spacing: -0.3px; font-weight: 750; }
.featured-body .game-title { white-space: nowrap; }
.featured-body .description { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 10px; }
.featured-game .play { position: absolute; right: 10px; top: 10px; z-index: 1; }
.featured-body { cursor: pointer; }
.featured-community { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.featured-community .vote { width: auto; height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 11px; color: var(--muted); }
.featured-community .vote .score { font-size: 12px; color: var(--ink); }
.featured-community .vote.up[aria-pressed="true"] .score { color: var(--accent); }
.featured-community .favorite { min-height: 30px; padding: 0 8px; }
.featured-community .heart { font-size: 15px; }
.featured-community .open-count { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; min-height: 30px; }
.featured-community .details { margin-left: auto; font-size: 11px; }
.stars-summary { color: #8a6d1d; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stars-summary[hidden] { display: none; }
.your-take { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.your-take h3 { margin: 0 0 10px; }
.take-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; font-size: 12px; }
.take-label { font-weight: 650; min-width: 118px; }
.mobile-vote { display: inline-flex; gap: 4px; }
.mobile-vote .button { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.mobile-vote .button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.take-tally { color: var(--muted); font-size: 11px; }
#detailsStars { width: 180px; accent-color: #c9961a; margin: 0; }
.stars-output { font-size: 20px; letter-spacing: 2px; color: #c9961a; line-height: 1; min-width: 118px; }
.take-status { margin: 6px 0 0; font-size: 11px; }
@media (max-width: 560px) {
  .take-label { min-width: 100%; }
  #detailsStars { width: min(180px, 55vw); }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.toolbar .search { flex: 1 1 220px; min-width: 0; }
.toolbar .search input { min-height: 38px; }
.browse { flex: 0 0 auto; }
.browse > summary { list-style: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 12px; font-weight: 650; cursor: pointer; }
.browse > summary::-webkit-details-marker { display: none; }
.browse[open] { flex: 1 1 100%; }
.browse-body { margin-top: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.browse .availability-bar { margin: 0; padding: 0 0 10px; border: 0; border-radius: 0; background: transparent; }
.browse .collections { padding-bottom: 8px; }
.browse .collection-note { margin: 0 0 8px; }
.browse .controls { padding: 8px 0 0; }
.rating-method { border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 12px; }
.rating-method summary { cursor: pointer; font-weight: 650; }
.rating-method p { color: var(--muted); max-width: 850px; line-height: 1.8; }
.details-rating { color: var(--accent); font-weight: 700; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin: 14px 0; }
@media (max-width: 1100px) {
  .game article { grid-template-columns: 52px 58px 65px minmax(0, 1fr) 48px; gap: 12px; }
  .game .thumbnail { width: 65px; height: 54px; }
}
@media (max-width: 560px) {
  .featured-list { gap: 8px; }
  .featured-art, .featured-art.thumbnail { width: 100%; height: auto; }
  .featured-body { padding: 8px 10px 10px; }
  .featured-body h3 { font-size: 14px; }
  .featured-game .play { width: 36px; height: 36px; right: 8px; top: 8px; }
  .collections { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .collections button { padding: 8px; font-size: 11px; border-color: var(--line); }
  .collection-note { line-height: 1.7; }
  .game article { grid-template-columns: 54px minmax(0, 1fr) 48px; grid-template-areas: "rating info info" "art info info" "community community actions"; gap: 8px 12px; padding: 14px 0; align-items: start; }
  .game .community { align-self: center; }
  .game .thumbnail { width: 48px; height: 44px; margin: 0; align-self: start; }
  .game .game-actions { align-self: center; }
  .game .description { font-size: 11px; }
  .game .title-line h2 { font-size: 16px; }
  .game .votes { flex-direction: column; flex-wrap: nowrap; }
  .game .vote { width: 30px; height: 25px; }
  .game .ranking-reason { font-size: 11px; }
  .game .model-line { max-width: 100%; }
}

/* Leave room for the dock at every viewport size. */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: 85px; }
.x-preview { position: fixed; inset: auto; margin: 0; padding: 12px; width: min(390px, calc(100vw - 24px)); max-height: min(610px, calc(100dvh - 90px)); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 45px #24251f33; z-index: 100; overflow-y: auto; overscroll-behavior: contain; }
.x-preview::backdrop { background: transparent; pointer-events: none; }
.x-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -12px; padding: 4px 0 8px; background: var(--paper); z-index: 1; }
.x-preview-heading a { font-size: 12px; color: var(--accent); font-weight: 650; }
.x-preview-heading button { border: 0; border-radius: 5px; width: 30px; height: 30px; font-size: 23px; line-height: 1; background: transparent; }
.x-preview-heading button:hover { background: var(--bg); }
#xPreviewStatus { margin: 12px 0; font-size: 12px; color: var(--muted); }
.x-preview-body { min-width: 0; }
.x-preview-body iframe { max-width: 100% !important; }

/* Phone (11 Sep 2026): community row under the credits with finger-sized targets,
   no text under 10px, play disc bottom-right. */
@media (max-width: 560px) {
  .game article { grid-template-columns: 54px minmax(0, 1fr) 48px; grid-template-areas: "rating info info" "art info info" "community community actions"; gap: 8px 12px; padding: 14px 0; align-items: start; }
  .game .author { max-width: 100%; }
  .game .model-line, .game .tool-line { font-size: 10px; margin: 0; max-width: 100%; }
  .device-tag { font-size: 10px; }
  .game .author-x, .game .model-line a { display: inline-block; padding: 4px 0; }
  .game .community { flex-direction: row; align-items: center; gap: 6px; padding-left: 66px; align-self: center; }
  .game .community .votes { flex-direction: row; align-items: center; gap: 0; }
  .game .vote { width: 38px; height: 34px; font-size: 13px; }
  .game .score { min-width: 2ch; text-align: center; font-size: 14px; }
  .game .community .numbers { flex-direction: row; align-items: center; gap: 4px; font-size: 11px; }
  .game .community .favorite { min-height: 34px; padding: 4px 8px; font-size: 11px; }
  .game .community .heart { font-size: 16px; }
  .game .community .open-count { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 6px; font-size: 11px; }
  .game .community .opens { font-size: 11px; }
  .game .author-x { font-size: 10px; }
  .game .game-tags { font-size: 10px; }
  .game .game-actions { align-self: center; justify-self: end; }
  .game .description { font-size: 12px; }
  .game .ranking-reason { font-size: 11.5px; }
  .game .ai-kind, .game .access-label { font-size: 10px; }
  .game .game-tags .text-button { font-size: 10.5px; min-height: 32px; padding: 6px 0; }
  .availability { font-size: 10px; }
  .list-meta { font-size: 10px; }
  .list-meta .text-button { min-height: 32px; }
  .count-note, .count-note .text-button { font-size: 10.5px; }
}

/* Featured: two picks side by side; stack on phones so both cards stay fully visible. */
.featured-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.featured-body .description { -webkit-line-clamp: 2; font-size: 11.5px; }
@media (max-width: 560px) {
  .featured-list { grid-template-columns: 1fr; }
}

/* List rows v3 (12 Sep 2026): picture-led rows that echo the featured cards. Art | info | play.
   The score is a small pill before the title; votes, favorites and opens sit on one line under the meta. */
.game article { grid-template-columns: 152px minmax(0, 1fr) 48px; grid-template-areas: "art info actions"; gap: 16px; padding: 14px 0; align-items: start; }
.game .thumbnail { grid-area: art; width: 152px; height: 86px; border-radius: 8px; background: #e6dfc8; margin: 0; align-self: start; box-shadow: inset 0 0 0 1px #0000000d; }
.game .thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.game .fallback-art { font-size: 26px; }
.game .game-info { grid-area: info; }
.game .game-actions { grid-area: actions; align-self: start; margin-top: 22px; justify-self: end; }
.game .title-line { flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.game .title-line h2 { font-size: 15px; }
.game .description { margin: 3px 0 0; }
.game .ranking-reason { margin: 2px 0 0; }
.game .x-posts { margin: 5px 0 0; }
.game .game-tags { margin-top: 5px; }
.game .community { flex-direction: row; align-items: center; gap: 2px 4px; margin-top: 5px; padding: 0; align-self: auto; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.game .community .votes { flex-direction: row; align-items: center; gap: 0; }
.game .vote { width: 30px; height: 28px; font-size: 11px; }
.game .score { font-size: 12px; min-width: 2ch; text-align: center; }
.game .community .numbers { flex-direction: row; align-items: center; gap: 2px; font-size: 11px; }
.game .community .favorite { min-height: 28px; padding: 2px 7px; gap: 4px; font-size: 11px; }
.game .community .heart { font-size: 14px; }
.game .community .open-count { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 6px; font-size: 11px; }
.game .community .opens { font-size: 11px; }
@media (max-width: 1100px) {
  .game article { grid-template-columns: 132px minmax(0, 1fr) 48px; gap: 14px; }
  .game .thumbnail { width: 132px; height: 75px; }
}
@media (max-width: 560px) {
  .game article { grid-template-columns: 96px minmax(0, 1fr) 44px; grid-template-areas: "art info actions"; gap: 10px; padding: 12px 0; align-items: start; }
  .game .thumbnail { width: 96px; height: 62px; border-radius: 7px; }
  .game .fallback-art { font-size: 20px; }
  .game .game-actions { margin-top: 14px; }
  .game .play { width: 38px; height: 38px; }
  .game .title-line h2 { font-size: 14.5px; }
  .game .description { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .game .ranking-reason { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .game .community { padding: 0; gap: 0 2px; }
  .game .vote { width: 34px; height: 32px; font-size: 12px; }
  .game .community .favorite, .game .community .open-count { min-height: 32px; }
}

/* Phone rows v3: art beside the title only; text runs full width below; counts and Play share the last line. */
@media (max-width: 560px) {
  .game article { grid-template-columns: 96px minmax(0, 1fr) 44px; grid-template-areas: "art head head" "body body body" "community community actions"; gap: 8px 10px; }
  .game .game-info { display: contents; }
  .game .title-line { grid-area: head; align-self: center; align-content: center; }
  .game .game-body { grid-area: body; min-width: 0; }
  .game .community { grid-area: community; margin-top: 0; }
  .game .game-actions { grid-area: actions; margin-top: 0; align-self: center; }
  .game .description { -webkit-line-clamp: 2; }
}

/* Omarchy plugins tab ------------------------------------------------------ */
.gallery-collections .gallery-omarchy { position: relative; }
.gallery-collections .gallery-omarchy::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--platform-omarchy, #449dab); vertical-align: 1px; }
.gallery-collections .gallery-omarchy[aria-pressed="true"]::before { background: #7fd3df; }
.omarchy { padding: 0 0 40px; }
.omarchy-head { max-width: 980px; margin: 0 auto 14px; text-align: center; }
.omarchy-head h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -1px; }
.omarchy-head p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: #6f7075; }
.omarchy-head code, .omarchy-builtin code, .omarchy-warning code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; background: #f2f2f3; padding: 1px 6px; border-radius: 6px; color: #2b2c30; }
.omarchy-warning { display: inline-block; padding: 8px 14px; border-radius: 12px; font-size: 12px !important; line-height: 1.55; background: #fff7ed; color: #7c4a12 !important; border: 1px solid #fde4c4; }
.omarchy-warning strong { color: #9a4b0a; }
.omarchy-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.omarchy-groups button { border: 0; border-radius: 999px; background: #f2f2f3; color: #5b5c61; padding: 9px 14px; font-size: 12px; font-weight: 500; cursor: pointer; }
.omarchy-groups button::after { content: attr(data-count); margin-left: 7px; font-size: 10px; color: #9a9ba0; }
.omarchy-groups button:hover { background: #e9e9eb; color: var(--ink); }
.omarchy-groups button[aria-pressed="true"] { background: #191a1c; color: #fff; }
.omarchy-groups button[aria-pressed="true"]::after { color: #b8b9bd; }
.omarchy-toolbar { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.omarchy-search { flex: 1; min-width: 0; }
.omarchy-search input { width: 100%; }
.omarchy-count { margin: 0; font-size: 11px; color: #7d7e83; white-space: nowrap; }
.omarchy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.omarchy-plugin { min-width: 0; }
.omarchy-plugin article { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.omarchy-art { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; padding: 0; border: 0; border-radius: 22px; background: #15171b; overflow: hidden; cursor: zoom-in; }
.omarchy-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.omarchy-art:hover img { transform: scale(1.04); }
.omarchy-art.no-image img { display: none; }
.omarchy-art .fallback-art, .omarchy-figure .fallback-art { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 42px; font-weight: 700; letter-spacing: -2px; color: #7fd3df; background: radial-gradient(circle at 30% 20%, #23313a, #12151a 70%); }
.omarchy-art.no-image .fallback-art, .omarchy-figure.no-image .fallback-art { display: flex; }
.omarchy-demo-badge { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: #ffffffeb; color: #191a1c; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; box-shadow: 0 2px 10px #00000022; }
.omarchy-art:focus-visible { outline: 2px solid #4e6ef2; outline-offset: 3px; }
.omarchy-body { display: flex; flex-direction: column; flex: 1; padding: 12px 3px 0; min-width: 0; }
.omarchy-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.omarchy-title-line h3 { flex-basis: 100%; margin: 0 0 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.3; }
.omarchy-name { color: inherit; text-decoration: none; }
.omarchy-name:hover { text-decoration: underline; }
.omarchy-kind, .omarchy-verified { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 600; letter-spacing: 0.2px; text-transform: uppercase; background: #f2f2f4; color: #73747a; }
.omarchy-verified[data-state="verified"] { background: #e8f6ee; color: #1d7a45; }
.omarchy-verified[data-state="unverified"] { background: #f5f5f6; color: #85868b; }
.omarchy-pick { margin: 7px 0 0; font-size: 10.5px; font-weight: 600; color: #8a5a0a; }
.omarchy-pick a { color: inherit; }
.omarchy-pick[hidden] { display: none; }
.omarchy-why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.omarchy-description { display: none; }
.omarchy-code { display: flex; align-items: stretch; gap: 6px; margin: 12px 0 0; min-width: 0; }
.omarchy-code code, .omarchy-code pre { flex: 1; min-width: 0; margin: 0; padding: 9px 12px; border-radius: 12px; background: #15171b; color: #d7f5f8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.5; overflow-x: auto; white-space: pre; }
.omarchy-code code.no-command { color: #9a9ba0; font-style: italic; white-space: normal; }
.omarchy-copy { flex-shrink: 0; min-height: 0; padding: 0 14px; font-size: 11px; }
.omarchy-copy[hidden] { display: none; }
.omarchy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #eeeef0; font-size: 10.5px; color: #77797e; }
.omarchy-copy-install { margin-left: auto; min-height: 30px; padding: 0 12px; font-size: 11px; background: #191a1c; border-color: #191a1c; color: #fff; }
.omarchy-copy-install:hover { background: #36373c; border-color: #36373c; }
.omarchy-copy-install:disabled { opacity: 1; background: #1d7a45; border-color: #1d7a45; }
.omarchy-meta a { color: #4e6ef2; text-decoration: none; }
.omarchy-meta a:hover { text-decoration: underline; }
.omarchy-meta .omarchy-repo { margin-left: 0; }
.omarchy-meta span:empty { display: none; }
.omarchy-empty { text-align: center; color: #7d7e83; font-size: 13px; padding: 40px 0; }
.omarchy-shortlist, .omarchy-builtin { margin: 44px auto 0; max-width: 960px; min-width: 0; }
.omarchy-shortlist h3, .omarchy-builtin h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.5px; }
.omarchy-shortlist p, .omarchy-builtin > p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #6f7075; }
.omarchy-shortlist .omarchy-code { align-items: flex-start; }
.omarchy-shortlist .omarchy-copy { min-height: 38px; }
.omarchy-builtin-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.omarchy-builtin-list li { padding: 10px 12px; border-radius: 12px; background: #f7f7f8; font-size: 12px; line-height: 1.55; color: #5b5c61; min-width: 0; }
.omarchy-builtin-list strong { color: var(--ink); }
.omarchy-builtin-cmd { display: block; margin-top: 6px; overflow-x: auto; white-space: nowrap; }
.omarchy-sources { max-width: 960px; margin: 28px auto 0; font-size: 11px; line-height: 1.6; color: #8a8b90; text-align: center; }
.omarchy-sources a { color: #6b6c71; }
.omarchy-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; }
.omarchy-dialog h2 { margin-right: 44px; }
.omarchy-figure { position: relative; margin: 14px 0; border-radius: 16px; overflow: hidden; background: #15171b; aspect-ratio: 2 / 1; }
.omarchy-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.omarchy-figure.no-image img { display: none; }
.omarchy-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px; font-size: 11px; color: #d8d9dd; background: linear-gradient(transparent, #000000aa); }
.omarchy-figure.no-image figcaption { color: #b8b9bd; background: none; }
.omarchy-dialog .omarchy-meta { border: 0; padding: 0; }
@media (max-width: 1100px) { .omarchy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .omarchy-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .omarchy-count { white-space: normal; }
  .omarchy-builtin-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .omarchy-list { grid-template-columns: 1fr; gap: 26px; }
  .omarchy-art { border-radius: 16px; }
  .omarchy-head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .omarchy-art img { transition: none; } }

@media (max-width: 560px) {
  .omarchy-warning { font-size: 11px !important; padding: 8px 12px; text-align: left; }
  .omarchy-head { margin-bottom: 10px; }
}

/* ------------------------------------------------------------------------
   Stars, cards, details sheet and motion (11 Oct 2026). Half-star ratings
   live on every card; the thumbs left the interface. This block is the last
   layer for the games page: `body.games-page` outranks shell.css's
   `.gallery-page …` rules, which load after this file. */

/* The star widget itself lives in software/shell.css since 13 Oct 2026: every AI Apps tab rates. */

/* Card footer: stars on the left, opens and details on the right. */
body.games-page .game .community { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; min-height: 0; border-top: 1px solid #efeff1; }
body.games-page .game .numbers, body.games-page .featured-community { display: flex; align-items: center; gap: 2px; }
body.games-page .game .open-count, body.games-page .featured-community .open-count { min-height: 32px; padding: 0 6px; color: #8a8b90; font-size: 12px; font-variant-numeric: tabular-nums; }
body.games-page .open-count .opens, body.games-page .download-count .downloads { display: inline-block; }
body.games-page .info-button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a8b90; cursor: pointer; transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.3,1.6,.5,1); }
body.games-page .info-button:hover { background: #f1f1f3; color: #1d1e21; transform: scale(1.08); }
body.games-page .info-button:focus-visible { outline: 2px solid var(--section, #16a34a); outline-offset: 1px; }
body.games-page .featured-community { margin-top: auto; padding-top: 14px; gap: 4px; }
body.games-page .featured-community .rate-wrap { margin-right: auto; }
body.games-page .game .game-tags { margin-top: auto; }
body.games-page .game article, body.games-page .featured-game article { cursor: default; }
body.games-page .game .game-body, body.games-page .featured-body { cursor: pointer; }

/* Hover hint on the art: a glass "Play" pill. Touch screens never see it. */
body.games-page .thumbnail, body.games-page .featured-art { position: relative; }
body.games-page .thumb-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px 9px 13px; border-radius: 999px; background: #ffffffd9; -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); color: #15161a; font-size: 12.5px; font-weight: 650; box-shadow: 0 10px 30px -10px #0008; opacity: 0; transform: translate(-50%, -50%) scale(.86); transition: opacity .22s ease, transform .3s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
body.games-page .thumb-play svg { color: #16a34a; }
body.games-page .no-image .thumb-play { display: none; }
@media (hover: hover) {
  body.games-page .thumbnail:hover .thumb-play, body.games-page .thumbnail:focus-visible .thumb-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (hover: none) { body.games-page .thumb-play { display: none; } }

/* Details sheet. The hero and the body scroll; the close button and the Play bar stay. */
body.games-page #detailsDialog { width: min(560px, calc(100vw - 24px)); max-width: none; max-height: min(88dvh, 860px); padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -24px #0f172a66, 0 0 0 1px #0000000d; }
body.games-page #detailsDialog[open] { display: flex; flex-direction: column; }
body.games-page #detailsDialog::backdrop { background: #0f172a52; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.games-page #detailsDialog .sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.games-page #detailsDialog .dialog-close { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #0f172a66; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .15s ease, transform .25s cubic-bezier(.3,1.6,.5,1), opacity .25s ease; }
body.games-page #detailsDialog .dialog-close:hover { background: #0f172a99; transform: rotate(90deg); }
body.games-page #detailsDialog .dialog-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.games-page .sheet-hero { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: #ececee; }
body.games-page .sheet-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.games-page .sheet-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 30%, #0f172a14 50%, #0f172ad0); pointer-events: none; }
body.games-page .sheet-hero .fallback-art { display: none; position: absolute; inset: 0; font-size: 64px; color: #ffffff59; background: radial-gradient(circle at 30% 25%, #2b8a57, #12352a 75%); }
body.games-page .sheet-hero.no-image img { display: none; }
body.games-page .sheet-hero.no-image .fallback-art { display: grid; }
body.games-page .sheet-hero-text { position: absolute; left: 22px; right: 60px; bottom: 16px; z-index: 1; color: #fff; }
body.games-page .sheet-hero-text h2 { margin: 0; font-size: 27px; font-weight: 700; line-height: 1.08; letter-spacing: -.9px; color: #fff; text-shadow: 0 2px 16px #0007; overflow-wrap: anywhere; }
body.games-page .sheet-byline { margin: 5px 0 0; font-size: 12.5px; color: #ffffffd0; }
body.games-page .sheet-byline:empty { display: none; }
body.games-page .sheet-byline a { color: #fff; text-decoration: none; font-weight: 600; }
body.games-page .sheet-byline a:hover { text-decoration: underline; }
body.games-page .sheet-body { padding: 18px 22px 6px; }
body.games-page .sheet-description { margin: 0; font-size: 14px; line-height: 1.55; color: #3d3e44; }
body.games-page .sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
body.games-page .sheet-chips li { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 10px; border: 0; border-radius: 999px; background: #f3f3f5; color: #55575d; font-size: 11.5px; font-weight: 550; white-space: nowrap; }
body.games-page .sheet-chips li[data-state="live"] { background: #e8f6ee; color: #15803d; }
body.games-page .sheet-chips li[data-state="live"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #16a34a26; }
body.games-page .sheet-chips li[data-state="error"] { background: #fdecec; color: #b42318; }
body.games-page .sheet-chips li[data-state="unknown"] { background: #fff6e0; color: #8a5a0a; }
body.games-page .sheet-chips li[data-kind="ai"] { background: #f3effe; color: #6d28d9; }
body.games-page .sheet-chips li[data-kind="apk"] { background: #e9f0fe; color: #1d4ed8; }
body.games-page .sheet-chips li[data-devices="unknown"] { background: transparent; box-shadow: inset 0 0 0 1px #dcdce0; color: #85868b; }
body.games-page .sheet-rate { display: grid; gap: 12px; margin: 18px 0 0; padding: 16px 18px 14px; border-radius: 20px; background: linear-gradient(135deg, #fff8e8, #fff2d6 55%, #fdeedd); }
body.games-page .sheet-rate[hidden] { display: none; }
body.games-page .sheet-rate-main { display: grid; justify-items: start; gap: 0; }
body.games-page .sheet-rate h3 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #a16207; }
body.games-page .rate.rate-lg { --star: 36px; --gap: 6px; --off: #f3e2bd; }
body.games-page .sheet-tally { margin: 8px 0 0; font-size: 12.5px; color: #8a6a2a; white-space: normal; flex-wrap: wrap; }
body.games-page .sheet-tally strong { color: #5b4a1c; }
body.games-page .sheet-phone { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; border-top: 1px solid #f0dfbd; font-size: 12.5px; font-weight: 550; color: #5b4a1c; }
body.games-page .sheet-phone-buttons { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #ffffff8c; }
body.games-page .sheet-phone button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #5b4a1c; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease, transform .2s cubic-bezier(.3,1.6,.5,1); }
body.games-page .sheet-phone button:hover:not(:disabled) { background: #fff; }
body.games-page .sheet-phone button:active:not(:disabled) { transform: scale(.94); }
body.games-page .sheet-phone button[aria-pressed="true"] { background: #1d1e21; color: #fff; }
body.games-page .sheet-phone button:disabled { opacity: .55; cursor: default; }
body.games-page .phone-n { font-variant-numeric: tabular-nums; opacity: .6; }
body.games-page .phone-n:empty { display: none; }
body.games-page .sheet-why { margin: 16px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--section, #16a34a); font-size: 13px; line-height: 1.55; color: #55575d; }
body.games-page .sheet-why[hidden], body.games-page #detailsQuickLinks[hidden] { display: none; }
body.games-page #detailsQuickLinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
body.games-page #detailsQuickLinks a { padding: 5px 11px; border-radius: 999px; background: #f3f3f5; color: #1d1e21; font-size: 11.5px; text-decoration: none; }
body.games-page .sheet-more { margin: 16px 0 4px; border-top: 1px solid #efeff1; }
body.games-page .sheet-more > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; list-style: none; font-size: 12.5px; font-weight: 650; color: #3d3e44; cursor: pointer; }
body.games-page .sheet-more > summary::-webkit-details-marker { display: none; }
body.games-page .sheet-more > summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #9a9ba0; border-bottom: 2px solid #9a9ba0; transform: rotate(45deg) translateY(-2px); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
body.games-page .sheet-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
body.games-page .sheet-more .detail-fields { grid-template-columns: 92px minmax(0, 1fr); gap: 10px 14px; margin: 0 0 12px; font-size: 12px; line-height: 1.5; }
body.games-page .sheet-more .detail-fields dt { color: #8a8b90; }
body.games-page .sheet-more .source-list { margin: 0; padding-left: 16px; font-size: 11.5px; }
body.games-page .sheet-more .muted { margin: 8px 0 6px; font-size: 11px; color: #9a9ba0; }
body.games-page .sheet-actions { display: flex; align-items: center; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f0f2; background: #fff; }
body.games-page #detailsPlay { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 16px; background: #16a34a; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px; box-shadow: 0 10px 24px -12px #16a34acc; transition: background .15s ease, transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s ease; }
body.games-page #detailsPlay:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 14px 28px -12px #16a34acc; }
body.games-page #detailsPlay:active { transform: scale(.98); }
body.games-page #detailsPlay.retry-link { background: #fae5df; color: #983620; box-shadow: none; }
body.games-page #detailsPlay .play-icon svg { width: 16px; height: 16px; }
body.games-page .sheet-apk { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 16px; background: #f1f1f3; color: #1d1e21; font-size: 13px; font-weight: 650; text-decoration: none; }
body.games-page .sheet-apk[hidden] { display: none; }
body.games-page .sheet-apk:hover { background: #e7e7ea; }
@media (max-width: 560px) {
  /* Phones: a bottom sheet. */
  body.games-page #detailsDialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  body.games-page .sheet-hero { aspect-ratio: 16 / 9; }
  body.games-page .sheet-hero-text h2 { font-size: 24px; }
  body.games-page .sheet-body { padding: 16px 18px 4px; }
  body.games-page .rate.rate-lg { --star: 38px; --gap: 5px; }
  body.games-page .sheet-more .detail-fields { grid-template-columns: 78px minmax(0, 1fr); }
}

/* ---- Motion. Everything here is off with prefers-reduced-motion (shell.css). ---- */
@keyframes gm-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes gm-fade { from { opacity: 0; } }
@keyframes gm-fade-out { to { opacity: 0; } }
@keyframes gm-pop-in { from { opacity: 0; transform: translateY(18px) scale(.965); } }
@keyframes gm-pop-out { to { opacity: 0; transform: translateY(10px) scale(.975); } }
@keyframes gm-sheet-up { from { transform: translateY(100%); } }
@keyframes gm-sheet-down { to { transform: translateY(100%); } }
@keyframes gm-hero { from { transform: scale(1.14); filter: saturate(.7) brightness(.9); } }
@keyframes gm-star-in { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
@keyframes gm-draw { from { transform: scaleX(0); } }
@keyframes gm-pulse { from { box-shadow: 0 0 0 0 #16a34a66; } to { box-shadow: 0 0 0 14px #16a34a00; } }
@keyframes gm-fill { from { clip-path: inset(0 100% 0 0); } }
@keyframes gm-settle { from { transform: scale(1.14); filter: saturate(.6); } }
@keyframes gm-sheet-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes gm-sheet-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: no-preference) {
  /* Cards rise into view (app.js adds .reveal, then .revealed when visible). */
  body.games-page .reveal { opacity: 0; transform: translateY(22px) scale(.98); }
  body.games-page .reveal.revealed { opacity: 1; transform: none; transition: opacity .5s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms); }
  /* Hover: the card lifts, its picture glows and the play button pulses. */
  @media (hover: hover) {
    body.games-page .game article { transition: transform .4s cubic-bezier(.16,1,.3,1); }
    body.games-page .game article:hover { transform: translateY(-4px); }
    body.games-page .game .thumbnail { transition: box-shadow .4s ease; }
    body.games-page .game article:hover .thumbnail { box-shadow: 0 22px 40px -22px #0f172a73, inset 0 0 0 1px #0000000a; }
    body.games-page .featured-game article { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease; }
    body.games-page .featured-game article:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px #0f172a66; }
    body.games-page .game article:hover .play:not(.retry-link), body.games-page .featured-game article:hover .play:not(.retry-link) { animation: gm-pulse 1.3s ease-out infinite; }
    /* Featured pictures shift against the pointer (app.js sets --mx / --my, −1 to 1). */
    body.games-page .featured-art img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
    body.games-page .featured-art:hover img { transform: scale(1.07) translate(calc(var(--mx, 0) * -1.6%), calc(var(--my, 0) * -1.6%)); }
  }
  /* As a card arrives its stars fill from the left, one after the other (14 Oct 2026),
     and a featured picture settles from a slow zoom. */
  body.games-page .reveal.revealed .rate .star-fill { animation: gm-fill .5s cubic-bezier(.3,.7,.2,1) backwards; animation-delay: calc(var(--reveal-delay, 0ms) + 260ms); }
  body.games-page .reveal.revealed .rate .star:nth-child(2) .star-fill { animation-delay: calc(var(--reveal-delay, 0ms) + 320ms); }
  body.games-page .reveal.revealed .rate .star:nth-child(3) .star-fill { animation-delay: calc(var(--reveal-delay, 0ms) + 380ms); }
  body.games-page .reveal.revealed .rate .star:nth-child(4) .star-fill { animation-delay: calc(var(--reveal-delay, 0ms) + 440ms); }
  body.games-page .reveal.revealed .rate .star:nth-child(5) .star-fill { animation-delay: calc(var(--reveal-delay, 0ms) + 500ms); }
  body.games-page .featured-game.reveal.revealed .featured-art img { animation: gm-settle 1.5s cubic-bezier(.16,1,.3,1) backwards var(--reveal-delay, 0ms); }
  body.games-page .gallery-intro h1::after { animation: gm-draw .9s .15s cubic-bezier(.16,1,.3,1) backwards; }
  /* Dialogs: pop in over a fading backdrop, leave quickly (.closing from app.js). */
  body.games-page dialog[open] { animation: gm-pop-in .38s cubic-bezier(.16,1,.3,1); }
  body.games-page dialog[open]::backdrop { animation: gm-fade .3s ease; }
  body.games-page dialog.closing { animation: gm-pop-out .19s ease-in forwards; }
  body.games-page dialog.closing::backdrop { animation: gm-fade-out .19s ease-in forwards; }
  body.games-page #detailsDialog[open] .sheet-hero img { animation: gm-hero 1.1s cubic-bezier(.16,1,.3,1) backwards; }
  body.games-page #detailsDialog[open] .sheet-hero-text > * { animation: gm-rise .55s cubic-bezier(.16,1,.3,1) backwards; }
  body.games-page #detailsDialog[open] .sheet-hero-text > :nth-child(1) { animation-delay: .08s; }
  body.games-page #detailsDialog[open] .sheet-hero-text > :nth-child(2) { animation-delay: .12s; }
  body.games-page #detailsDialog[open] .sheet-hero-text > :nth-child(3) { animation-delay: .17s; }
  body.games-page #detailsDialog[open] .sheet-body > * { animation: gm-rise .5s cubic-bezier(.16,1,.3,1) backwards; }
  body.games-page #detailsDialog[open] .sheet-body > :nth-child(1) { animation-delay: .1s; }
  body.games-page #detailsDialog[open] .sheet-body > :nth-child(2) { animation-delay: .14s; }
  body.games-page #detailsDialog[open] .sheet-body > :nth-child(3) { animation-delay: .18s; }
  body.games-page #detailsDialog[open] .sheet-body > :nth-child(n+4) { animation-delay: .22s; }
  body.games-page #detailsDialog[open] .rate-lg .star { animation: gm-star-in .5s cubic-bezier(.3,1.6,.5,1) backwards; }
  body.games-page #detailsDialog[open] .rate-lg .star:nth-child(1) { animation-delay: .24s; }
  body.games-page #detailsDialog[open] .rate-lg .star:nth-child(2) { animation-delay: .29s; }
  body.games-page #detailsDialog[open] .rate-lg .star:nth-child(3) { animation-delay: .34s; }
  body.games-page #detailsDialog[open] .rate-lg .star:nth-child(4) { animation-delay: .39s; }
  body.games-page #detailsDialog[open] .rate-lg .star:nth-child(5) { animation-delay: .44s; }
  body.games-page #detailsDialog[open] .sheet-actions { animation: gm-rise .45s .16s cubic-bezier(.16,1,.3,1) backwards; }
  body.games-page .sheet-more[open] > :not(summary) { animation: gm-rise .35s cubic-bezier(.16,1,.3,1) backwards; }
  @media (max-width: 560px) {
    body.games-page #detailsDialog[open] { animation: gm-sheet-up .45s cubic-bezier(.16,1,.3,1); }
    body.games-page #detailsDialog.closing { animation: gm-sheet-down .2s ease-in forwards; }
  }
  /* Collections, filters and sorts: cards glide to their new places (View Transitions). */
  body.games-page .gallery-collections button[aria-pressed="true"] { view-transition-name: games-pill; }
  /* Details: the card's picture flies into the sheet and back (app.js morph). Only the
     picture and the sheet move; the cards and the pill keep still under the backdrop. */
  html.morphing body.games-page :is(#gameList, #featuredList) > li, html.morphing body.games-page .gallery-collections button { view-transition-name: none !important; }
  body.games-page #detailsDialog.morph { view-transition-name: game-sheet; }
  body.games-page #detailsDialog.morph .dialog-close { opacity: 0; }
  body.games-page #detailsDialog.morph[open], body.games-page #detailsDialog.morph[open] .sheet-hero img { animation: none; }
  /* The sheet appears only in the new state, so its layer would come last and cover the
     flight: the picture's layer goes on top. */
  ::view-transition-group(game-art) { z-index: 2; animation-duration: .52s; animation-timing-function: cubic-bezier(.2,.8,.2,1); overflow: clip; border-radius: 18px; }
  ::view-transition-old(game-art), ::view-transition-new(game-art) { height: 100%; object-fit: cover; animation-duration: .3s; }
  ::view-transition-new(game-sheet) { animation: gm-sheet-in .44s cubic-bezier(.16,1,.3,1) both; }
  ::view-transition-old(game-sheet) { animation: gm-sheet-out .24s ease-in both; }
  @media (max-width: 560px) {
    ::view-transition-new(game-sheet) { animation: gm-sheet-up .46s cubic-bezier(.16,1,.3,1) both; }
    ::view-transition-old(game-sheet) { animation: gm-sheet-down .26s ease-in both; }
  }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
  ::view-transition-group(games-pill) { animation-duration: .35s; }
}

/* Date added on every card (18 Oct 2026) and the Most popular (7 days) note. */
.added-date { white-space: nowrap; color: #77797e; }
.added-date[hidden] { display: none; }
.popular-note { margin: 0 0 12px; font-size: 12px; color: #77797e; }
.popular-note[hidden] { display: none; }

/* ---------------------------------------------------------------- owner sign-in (8 Nov 2026) */
.account { position: relative; flex-shrink: 0; }
.account-button { gap: 8px; min-height: 37px; padding: 6px 13px; border-radius: 999px; font-size: 12px; }
.account-button[data-state="in"] { padding: 4px 10px 4px 4px; }
.account-avatar {
  position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; overflow: hidden;
  border-radius: 50%; background: linear-gradient(135deg, #4ade80, #60a5fa 55%, #c084fc); color: #fff; font-size: 12px; font-weight: 800;
}
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-badge { padding: 2px 7px; border-radius: 999px; background: #15161a; color: #fff; font-size: 10px; letter-spacing: .02em; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 250px; padding: 14px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -18px #15161a55; transform-origin: top right;
  animation: account-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes account-pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.account-who { display: grid; gap: 2px; margin: 0 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.account-who span { color: #696b71; font-size: 12px; }
.account-menu .button { width: 100%; }
@media (max-width: 760px) {
  .gallery-page.games-page .catalog-header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand action account" "nav nav nav"; }
  .gallery-page.games-page .catalog-header > .account { grid-area: account; justify-self: end; }
  .account-button { min-height: 34px; padding: 6px 11px; font-size: 11px; }
  .account-button[data-state="in"] .account-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .account-menu { animation: none; } }

/* ---------------------------------------------------------------- gameplay previews (8 Nov 2026) */
body.games-page .thumbnail video.preview {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
body.games-page .thumbnail video.preview.on { opacity: 1; }
/* A small "preview" mark on pictures that have one (mouse screens: it plays on hover). */
@media (hover: hover) and (pointer: fine) {
  body.games-page .thumbnail.has-preview::after {
    content: ""; position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
    background: #15161ab3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7.5v9l7.5-4.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: opacity .2s; pointer-events: none;
  }
  body.games-page .thumbnail.has-preview:hover::after { opacity: 0; }
}

/* The AI Apps spark draws itself in on the games page (Vivus' line-drawing technique, in CSS). */
body.games-page .catalog-header .brand-mark path {
  stroke: url(#aiAppsMark); stroke-width: 1.3; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; fill-opacity: 0;
  animation: brand-draw 1s cubic-bezier(.6, 0, .2, 1) .15s forwards, brand-fill .45s ease .95s forwards;
}
@keyframes brand-draw { to { stroke-dashoffset: 0; } }
@keyframes brand-fill { to { fill-opacity: 1; stroke-width: 0; } }
@media (prefers-reduced-motion: reduce) {
  body.games-page .catalog-header .brand-mark path { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-width: 0; }
  body.games-page .thumbnail video.preview { display: none; }
}
