/* /random-hero (randomhero.js), on top of playerstats.css (.ps). */
.rh-lead { max-width: 760px; margin: -6px 0 16px; font-size: 14.5px; }
.rh-main { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: 16px; }

.rh-result { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rh-stage { width: 256px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ps-card-2); display: flex; align-items: center; justify-content: center; }
.rh-placeholder { font-size: 64px; color: #333; }
.rh-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .1s; }
.rh-rolling .rh-img { filter: blur(1px) brightness(.8); }
.rh-name { font-size: 26px; font-weight: 600; color: #fff; min-height: 34px; }
.rh-meta { font-size: 13px; min-height: 18px; }
.rh-links { display: flex; gap: 16px; justify-content: center; font-size: 14px; min-height: 20px; }
.rh-spin { min-width: 180px; margin-top: 4px; }
.rh-pool { font-size: 12.5px; }

.rh-group { margin-bottom: 14px; }
.rh-label { color: var(--ps-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; margin: 10px 0 6px; }
.rh-group .rh-label { margin-top: 0; }
.rh-hint { font-size: 12.5px; margin: 6px 0 0; }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-chip { background: var(--ps-card-2); color: var(--ps-text); border: 1px solid #333; border-radius: 14px; padding: 3px 12px; font-size: 13px; }
.rh-chip:hover { border-color: #555; }
.rh-chip.active { background: var(--ps-accent); border-color: var(--ps-accent); color: #fff; }
.rh-chip.rh-attr-1.active { background: #b9503c; border-color: #b9503c; }
.rh-chip.rh-attr-2.active { background: #3f9a4b; border-color: #3f9a4b; }
.rh-chip.rh-attr-3.active { background: #2f7fc1; border-color: #2f7fc1; }
.rh-chip.rh-attr-4.active { background: #8a6cc9; border-color: #8a6cc9; }
.rh-login { margin-top: 8px; }
.rh .ps-chip:empty { display: none; }
.rh .ps-about h3 { font-size: 17px; font-weight: 600; margin-top: 0; }
.rh-saved { font-size: 12px; min-height: 16px; }

.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.rh-hero { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; position: relative; line-height: 0; }
.rh-hero img { width: 100%; height: auto; border-radius: 2px; }
.rh-hero:hover { border-color: #555; }
.rh-hero.rh-filtered img { opacity: .45; }
.rh-hero.active img { opacity: .2; filter: grayscale(1); }
.rh-hero.active::after { content: '\f00d'; font-family: FontAwesome; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ps-bad); font-size: 22px; line-height: 1; }

.rh-weights summary { cursor: pointer; list-style: revert; }
.rh-weights summary h3 { display: inline; font-size: 17px; font-weight: 600; }
.rh-weights .ps-table-wrap { max-height: 480px; overflow-y: auto; }
.rh-weights thead th { position: sticky; top: 0; background: var(--ps-card); z-index: 1; }
.rh-weights .ps-table td.num, .rh-weights .ps-table th.num { text-align: right; }
.rh-weights .ps-hero img { border-radius: 2px; }

@media (max-width: 767px) {
	.rh-main { grid-template-columns: 1fr; }
}
