/* Starwide for Developers — profile pieces: Apps tab and the "Token(s) for Sale" badge. */

.swdev-profile-apps { --swdev-border: var(--sw-border, rgba(255, 255, 255, .14)); padding: 8px 0 24px; }
.swdev-profile-apps .swdev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.swdev-profile-apps__manage { margin: 0 0 16px; }
.swdev-profile-apps .swdev-muted { color: var(--sw-text-muted, rgba(255, 255, 255, .72)); }
.swdev-profile-apps .swdev-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--swdev-border); color: var(--sw-text, #fff); text-decoration: none; font-weight: 700; font-size: .88rem; }
.swdev-profile-apps .swdev-appcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--sw-radius-card, 10px); border: 1px solid var(--swdev-border); background: rgba(255, 255, 255, .045); color: var(--sw-text, #fff); text-decoration: none; }
.swdev-profile-apps a.swdev-appcard:hover { border-color: rgba(255, 255, 255, .3); }
.swdev-profile-apps .swdev-appcard__top { display: flex; gap: 12px; align-items: center; }
.swdev-profile-apps .swdev-appcard__name h3 { margin: 0; font-size: 1rem; color: inherit; }
.swdev-profile-apps .swdev-appcard__name small { color: var(--sw-text-muted, rgba(255, 255, 255, .72)); }
.swdev-profile-apps .swdev-appcard__desc { margin: 0; flex: 1; font-size: .88rem; color: var(--sw-text-muted, rgba(255, 255, 255, .72)); }
.swdev-profile-apps .swdev-appcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.swdev-profile-apps .swdev-appicon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.swdev-profile-apps .swdev-appicon--letter { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 60% 30%)); }
.swdev-profile-apps .swdev-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.swdev-profile-apps .swdev-pill--early_access { background: rgba(245, 185, 71, .16); color: #f5b947; }
.swdev-profile-apps .swdev-pill--published { background: rgba(52, 199, 123, .16); color: #34c77b; }
.swdev-profile-apps .swdev-pill--unrated { border: 1px dashed var(--swdev-border); }
.swdev-profile-apps .swdev-rating { color: #fff; }
.swdev-profile-apps .swdev-rating--e { background: var(--sw-rating-g, #3f9142); }
.swdev-profile-apps .swdev-rating--e10 { background: var(--sw-rating-pg, #3f7f9e); }
.swdev-profile-apps .swdev-rating--t { background: var(--sw-rating-pg13, #c98a2e); }
.swdev-profile-apps .swdev-rating--m { background: var(--sw-rating-r, #b23a3a); }
.swdev-profile-apps .swdev-rating--ao { background: var(--sw-rating-nsfw, #7a1f3d); }

/* Bottom-right of the profile, at the very bottom. */
.swdev-forsale { display: flex; justify-content: flex-end; padding: 18px 0 8px; clear: both; }
.swdev-forsale__badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(245, 213, 71, .12); border: 1px solid rgba(245, 213, 71, .45); color: var(--sw-link, #f5d547) !important; font-weight: 800; font-size: .88rem; text-decoration: none; }
.swdev-forsale__badge:hover { background: rgba(245, 213, 71, .2); }
.swdev-forsale__oct { display: grid; place-items: center; width: 24px; height: 24px; background: var(--sw-link, #f5d547); color: #1a1a1a; font-size: .74rem; clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); }

/* Leaderboards (game pages and [starwide_leaderboard]). */
.swdev-board { margin: 28px 0; padding: 18px 20px; border-radius: var(--sw-radius-card, 10px); border: 1px solid var(--sw-border, rgba(255, 255, 255, .14)); background: rgba(255, 255, 255, .045); }
.swdev-board h3 { margin: 0 0 12px; font-size: 1.05rem; }
.swdev-board__empty { margin: 0; color: var(--sw-text-muted, rgba(255, 255, 255, .72)); }
.swdev-board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.swdev-board__list li { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.swdev-board__list li.is-me { box-shadow: inset 0 0 0 1px var(--sw-link, #f5d547); }
.swdev-board__list img { width: 28px; height: 28px; border-radius: 50%; }
.swdev-board__list a { color: var(--sw-text, #fff); text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swdev-board__rank { font-weight: 900; text-align: center; color: var(--sw-text-muted, rgba(255, 255, 255, .72)); }
.swdev-board__list li:nth-child(1) .swdev-board__rank { color: #f5d547; }
.swdev-board__list li:nth-child(2) .swdev-board__rank { color: #d4d8de; }
.swdev-board__list li:nth-child(3) .swdev-board__rank { color: #d99a5b; }
.swdev-board__score { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.swdev-via { opacity: .7; font-size: .9em; }
