/* ==========================================================================
   2000sGaming: Friends + player cards.
   Default / Xbox themes: an Xbox Live-style friends list (dark rows, green presence).
   Wii theme: soft white channel tiles. PlayStation theme: XMB black and blue.
   ========================================================================== */
.fr { --fr-bg: #15171b; --fr-row: #20242a; --fr-row2: #262b32; --fr-ink: #f1f4f7; --fr-muted: #a9b2bd; --fr-acc: #7ed321; --fr-acc-ink: #0d1a03; --fr-radius: 14px; padding-top: 14px; padding-bottom: 40px; color: var(--fr-ink); }
html[data-sg-theme="wii"] .fr { --fr-bg: #f7fbff; --fr-row: #ffffff; --fr-row2: #eef6fd; --fr-ink: #1d3550; --fr-muted: #6a8099; --fr-acc: #33a9ef; --fr-acc-ink: #fff; --fr-radius: 26px; }
html[data-sg-theme="playstation"] .fr { --fr-bg: #070b16; --fr-row: #0f1830; --fr-row2: #13203f; --fr-ink: #eef3ff; --fr-muted: #9fb0d4; --fr-acc: #3d7bff; --fr-acc-ink: #fff; --fr-radius: 6px; }

.fr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.fr-panel { padding: 16px; border-radius: calc(var(--fr-radius) + 4px); background: var(--fr-bg); box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.07); }
.fr-panel + .fr-panel { margin-top: 16px; }
html[data-sg-theme="wii"] .fr-panel { box-shadow: 0 8px 24px rgba(40,90,140,.18), inset 0 0 0 2px #d7e9f8; }
.fr h2, .fr h3, .fr h1 { color: var(--fr-ink) !important; }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fr-head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.fr-count { display: inline-block; min-width: 26px; padding: 2px 8px; margin-left: 4px; border-radius: 999px; font-size: 13px; text-align: center; color: var(--fr-acc-ink); background: var(--fr-acc); vertical-align: middle; }
.fr-online { font-size: 13px; font-weight: 800; color: var(--fr-muted); }
.fr-sub { margin: 18px 0 8px; font-size: 14px; font-weight: 900; text-transform: none; color: var(--fr-muted) !important; }
.fr-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.fr-empty { margin: 8px 0; color: var(--fr-muted); }

.fr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fr-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--fr-radius); background: var(--fr-row); }
.fr-row:nth-child(even) { background: var(--fr-row2); }
.fr-row.is-online { box-shadow: inset 3px 0 0 var(--fr-acc); }
.fr-row__pic { display: block; width: 52px; height: 52px; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.2); }
.fr-row__pic > *, .fr-row__pic svg, .fr-row__pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fr-row__who { min-width: 0; display: grid; gap: 2px; }
.fr-row__name { font-weight: 900; color: var(--fr-ink) !important; text-decoration: none; }
.fr-row__name:hover { text-decoration: underline; }
.fr-row__status { font-size: 13px; color: var(--fr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row__motto { font-style: italic; }
.fr-row__act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fr-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #7a828c; vertical-align: 1px; }
.fr-dot--on { background: var(--fr-acc); box-shadow: 0 0 6px var(--fr-acc); }

.fr-form { display: inline; margin: 0; }
.fr-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: 800 13px/1 inherit; font-family: inherit; color: var(--fr-acc-ink); background: var(--fr-acc); cursor: pointer; text-decoration: none; }
.fr-btn:hover { filter: brightness(1.08); }
.fr-btn--decline, .fr-btn--cancel, .fr-btn--remove, .fr-btn--unblock, .fr-btn--quiet { color: var(--fr-ink); background: rgba(127,127,127,.22); }
.fr-btn:focus-visible { outline: 3px solid #ffb800; outline-offset: 2px; }

.fr-find { display: flex; gap: 8px; margin: 0 0 10px; }
.fr-find input { flex: 1; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; color: #111; background: #fff; }
.fr-me { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fr-me a { color: var(--fr-acc); }
.fr-me__pic { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; }
.fr-me__pic > *, .fr-me__pic svg, .fr-me__pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fr-settings label { display: block; font-size: 13px; font-weight: 800; color: var(--fr-muted); }
.fr-settings input[type="text"], .fr-settings select { width: 100%; min-height: 36px; margin-top: 4px; padding: 0 10px; border: 0; border-radius: 10px; font: inherit; color: #111; background: #fff; }
.fr-settings fieldset { margin: 10px 0; padding: 0; border: 0; }
.fr-settings legend { margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--fr-muted); }
.fr-chip { display: inline-flex !important; align-items: center; gap: 5px; margin: 0 4px 6px 0; padding: 4px 10px; border-radius: 999px; font-size: 12.5px !important; color: var(--fr-ink) !important; background: rgba(127,127,127,.2); cursor: pointer; }
.fr-chip--static { cursor: default; }
.fr-check { display: flex !important; align-items: center; gap: 8px; color: var(--fr-ink) !important; }

/* player card */
.fr-cardhead { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.fr-cardhead__pic { width: 140px; height: 140px; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 4px var(--fr-acc); }
.fr-cardhead__pic > *, .fr-cardhead__pic svg, .fr-cardhead__pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fr-cardhead__name { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 900; }
.fr-cardhead__motto { margin: 4px 0; font-style: italic; color: var(--fr-muted); }
.fr-cardhead__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0; font-size: 13px; font-weight: 700; color: var(--fr-muted); }
.fr-cardhead__act { display: flex; flex-direction: column; gap: 8px; }
.fr-mc-icon { width: 22px; height: 26px; border-radius: 3px 3px 5px 5px; background: linear-gradient(#9aa3ad, #5d6670); box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.fr-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fr-tiles a { display: grid; gap: 6px; color: var(--fr-ink); text-decoration: none; }
.fr-tile__art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.2); }
.fr-tile__art img, .fr-tile__art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-tile__name { font-size: 13px; font-weight: 800; }
.fr-links { margin: 0; padding-left: 18px; }
.fr-links a { color: var(--fr-acc); }
.fr-report summary { cursor: pointer; font-weight: 800; color: var(--fr-muted); }
.fr-report label { display: block; font-size: 13px; font-weight: 800; color: var(--fr-muted); }
.fr-report select, .fr-report textarea { width: 100%; margin-top: 4px; padding: 8px 10px; border: 0; border-radius: 10px; font: inherit; color: #111; background: #fff; }
.fr-guest { text-align: center; }
.sg-prose > .fr, .sg-prose .fr { max-width: none !important; }
@media (max-width: 899px) {
	.fr-grid { grid-template-columns: 1fr; }
	.fr-cardhead { grid-template-columns: 96px 1fr; }
	.fr-cardhead__pic { width: 96px; height: 96px; }
	.fr-cardhead__act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.fr-row { grid-template-columns: 44px minmax(0, 1fr); }
	.fr-row__pic { width: 44px; height: 44px; }
	.fr-row__act { grid-column: 1 / -1; justify-content: flex-start; }
}
