/* GameRoch website — Characters (r19 candidate). Website only, loaded after app-web.css.
 * The builder's own states, drawn by js/screens/shop.js only on the website (IS_WEB_APP):
 *   the filter chips (All · Free · Owned, each with its count), and on a tile
 *   "Equipped" (your saved look wears it), "Trying on" (only on the mirror) and a lock beside a price. */
#gr-complete[data-platform=web] .nxs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
#gr-complete[data-platform=web] .nxs button.nxs-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 8px 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--gr-line); background: var(--gr-panel); color: var(--gr-ink);
  font: 700 13.5px/1 'DM Sans', sans-serif; box-shadow: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#gr-complete[data-platform=web] .nxs .nxs-chip-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gr-tint); color: color-mix(in srgb, var(--gr-sub) 70%, var(--gr-ink)); font-size: 12px; font-weight: 800;
}
@media (hover: hover) {
  #gr-complete[data-platform=web] .nxs button.nxs-chip:hover { border-color: color-mix(in srgb, var(--gr-blue) 55%, var(--gr-line)); }
}
#gr-complete[data-platform=web] .nxs button.nxs-chip[aria-pressed=true] { background: var(--gr-blue); border-color: var(--gr-blue); color: var(--gr-on, #fff); }
#gr-complete[data-platform=web] .nxs button.nxs-chip[aria-pressed=true] .nxs-chip-n { background: rgba(255, 255, 255, .22); color: inherit; }
#gr-complete[data-platform=web] .nxs button.nxs-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--gr-blue) 45%, transparent); outline-offset: 2px; }

/* on a narrow shell the wardrobe's parts are laid out by order (css/nx-store.css): the chips follow the tab bar */
@container gr-shell (max-width: 900px) {
  #gr-complete[data-platform=web] .nxs-chips { order: 2; }
}

/* a tile's own state, top-left on its picture (the worn tick keeps the top-right) */
#gr-complete[data-platform=web] .nxs .nxs-badge {
  position: absolute; top: 9px; inset-inline-start: 9px; z-index: 2; max-width: calc(100% - 18px);
  padding: 3px 7px; border-radius: 999px; font: 800 10.5px/1.1 'DM Sans', sans-serif; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 2px var(--gr-panel);
}
#gr-complete[data-platform=web] .nxs .nxs-badge[data-b=""] { display: none; }
#gr-complete[data-platform=web] .nxs .nxs-badge[data-b=equipped] { background: #18a058; color: #fff; }
#gr-complete[data-platform=web] .nxs .nxs-badge[data-b=trying] { background: #ffb21e; color: #3a2400; }
#gr-complete[data-platform=web] .nxs button.nxs-tile[aria-pressed=true] .nxs-badge { box-shadow: 0 0 0 2px var(--gr-tint); }
/* a tile that names its state needs no tick as well: the words say it */
#gr-complete[data-platform=web] .nxs button.nxs-tile[aria-pressed=true]:has(.nxs-badge:not([data-b=""]))::before,
#gr-complete[data-platform=web] .nxs button.nxs-tile[aria-pressed=true]:has(.nxs-badge:not([data-b=""]))::after { display: none; }

/* locked: a price, with a small lock in front of it */
#gr-complete[data-platform=web] .nxs .nxs-lock { display: inline-flex; color: color-mix(in srgb, var(--gr-sub) 80%, var(--gr-ink)); }
#gr-complete[data-platform=web] .nxs .nxs-lock svg { width: 11px; height: 11px; stroke-width: 2.6; }

/* an empty filter: the shared empty state, kept compact inside the wardrobe */
#gr-complete[data-platform=web] .nxs-panel > .nx-empty { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  #gr-complete[data-platform=web] .nxs button.nxs-chip { transition: none; }
}
