/* friends.css — PokeGuesser Navy/Yellow Theme */

.friends-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    color: #c8d8f0;
}

/* ── Shared Card Styles ──
   Fondo/borde/sombra ahora los da .pokebox-light (composición vía HTML,
   ver friends.php) -- aquí solo queda el layout. */
.friends-profile-card,
.friends-claim-section,
#friendsListSection,
.friends-requests-card,
.friends-rankings-section,
.friends-join-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* ── Profile card ── */
.friends-profile-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.friends-profile-identity {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.friends-avatar {
    font-size: 3rem;
    line-height: 1;
    background: rgba(14, 29, 56, 0.8);
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 203, 5, 0.5);
    box-shadow: 0 0 15px rgba(255, 203, 5, 0.15);
    overflow: hidden;
}
.friends-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.friends-nickname {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: var(--poke-navy);
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: none;
    line-height: 1.4;
}

.btn-show-code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    font-size: 0.58rem;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
}

.friends-code-row {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background: rgba(14, 29, 56, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(61, 125, 202, 0.3);
}

.friends-code-label {
    font-size: 0.75rem;
    color: #a3b7d7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.friends-code-badge {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--poke-yellow);
    letter-spacing: 0.2em;
    text-shadow: 0 0 8px rgba(255, 203, 5, 0.4);
}

.btn-copy-code, .btn-copy-invite {
    margin-top: 0;
    font-size: 0.58rem;
    padding: 0.4rem 0.9rem;
}
.btn-copy-code.copied, .btn-copy-invite.copied { background: linear-gradient(to bottom, #66bb6a, #43a047); border-color: #66bb6a; color: #fff; }

/* ── Join by invite link ── */
.friends-join-card {
    max-width: 480px;
    margin: 0 auto 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
}

.join-sender {
    color: #2a2a2a;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.join-sender strong { color: var(--poke-navy); }
.join-sender--error { color: #b71c1c; font-weight: bold; }

.friends-join-result {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 1rem;
    min-height: 1.2em;
}
.friends-join-result.error   { color: #b71c1c; }
.friends-join-result.success { color: #2e7d32; }

/* ── Claim-nickname section ── */
.friends-claim-section {
    padding: 2.5rem 2rem;
    text-align: center;
}

.friends-claim-section h3 {
    margin: 0 0 0.8rem;
    color: var(--poke-navy);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    text-shadow: none;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.friends-claim-section p {
    margin: 0 0 1.5rem;
    color: #2a2a2a;
    font-size: 1rem;
    line-height: 1.5;
}

.friends-claim-form {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Campo de texto claro -- dentro de .pokebox-light un input oscuro se lee
   como un hueco roto, no como parte del formulario. */
.friends-claim-input {
    background: #fff;
    border: 2px solid rgba(0, 58, 112, 0.4);
    border-radius: 8px;
    color: #2a2a2a;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    width: 250px;
    transition: all 0.3s;
    font-weight: bold;
}
.friends-claim-input::placeholder { color: rgba(0, 58, 112, 0.35); font-weight: normal; }
.friends-claim-input:focus { outline: none; border-color: var(--poke-navy); box-shadow: 0 0 10px rgba(0,58,112,0.18); }
.friends-claim-input.error { border-color: #e53935; }

.friends-claim-hint {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    color: rgba(0, 58, 112, 0.6);
    min-height: 1.2em;
    font-weight: bold;
}
.friends-claim-hint.error { color: #ef5350; }
.friends-claim-hint.ok    { color: #66bb6a; margin-top: 0.9rem; }

/* ── Pokémon Button ── */
.poke-button {
    display: inline-block;
    margin-top: 1.2rem;
    background: linear-gradient(to bottom, var(--poke-navy), var(--poke-navy-dark));
    border: 2px solid var(--poke-yellow);
    border-radius: 20px;
    color: var(--poke-yellow);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    font-weight: 400;
    padding: 9px 18px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.04em;
    line-height: 1.5;
    min-height: 36px;
}
.poke-button:hover:not(:disabled) { background: var(--poke-yellow); color: #141d38; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.5); }
.poke-button:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.poke-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

#claimBtn { margin-top: 0; padding: 0.65rem 1.8rem; align-self: center; }
#claimBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Variante "pestaña" de .poke-button: mismo look, pero con un estado
   .active persistente (no solo hover) para marcar cuál está seleccionada. */
.poke-button.active {
    background: var(--poke-yellow);
    color: #141d38;
}

/* Variantes de color para acciones donde el color comunica algo (aceptar =
   positivo, rechazar/cancelar/eliminar = irreversible) -- mismo tamaño/
   fuente/pill/hover-lift que .poke-button, solo cambia la paleta. */
.poke-button--success {
    background: linear-gradient(to bottom, #43a047, #2e7d32);
    border-color: #81c784;
    color: #fff;
}
.poke-button--success:hover:not(:disabled) { background: #81c784; color: #1b3a1b; }

.poke-button--danger {
    background: linear-gradient(to bottom, #e53935, #b71c1c);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.poke-button--danger:hover:not(:disabled) { background: #ef5350; color: #3a0000; }

/* ── Toggle Ranking / Lista de amigos ── */
.friends-main-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
}
.friends-main-tab {
    margin-top: 0;
    font-size: 0.62rem;
    padding: 0.7rem 1.4rem;
}

/* ── Section header ── */
.friends-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(61, 125, 202, 0.3);
}

.friends-section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--poke-navy);
    margin: 0;
    text-shadow: none;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.friends-action-box-row { width: 100%; padding-top: 0.8rem; }
.friends-toggle-row { margin-bottom: 1rem; }

.eye-icon { width: 15px; height: 15px; vertical-align: middle; flex-shrink: 0; }

/* ── Add friend dropdown ── */
.friends-add-dropdown { position: relative; }

.btn-add-friend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    font-size: 0.6rem;
    padding: 0.7rem 1.2rem;
    white-space: nowrap;
}
.btn-add-friend--inline { margin-top: 0; padding: 0.65rem 1.2rem; }
.dropdown-arrow { font-size: 0.75rem; transition: transform 0.2s; }
.btn-add-friend.active .dropdown-arrow { transform: rotate(180deg); }

.friends-add-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: linear-gradient(145deg, #1e2a4a, #141d38);
    border: 2px solid rgba(255, 203, 5, 0.4);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    z-index: 100;
    min-width: 200px;
    overflow: hidden;
}

.friends-add-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(61,125,202,0.2);
    color: #c8d8f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    text-align: left;
    transition: background 0.15s;
}
.friends-add-option:last-child { border-bottom: none; }
.friends-add-option:hover { background: rgba(255,203,5,0.12); color: var(--poke-yellow); }

.add-action-inner {
    padding: 1rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.friends-add-code-box {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Friend requests card ── */
.friends-requests-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--poke-navy);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.6;
}
.requests-badge {
    background: #e53935;
    color: #fff;
    font-size: 0.75rem;
    font-family: sans-serif;
    font-weight: 900;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.request-item {
    background: rgba(14, 29, 56, 0.6);
    border: 1px solid rgba(61, 125, 202, 0.3);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}
.request-item-outgoing { opacity: 0.7; border-style: dashed; }
.requests-outgoing-header {
    font-size: 0.72rem;
    color: rgba(0,58,112,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0.8rem 0 0.4rem;
}
.request-actions { display: flex; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }

.btn-accept-req,
.btn-decline-req, .btn-cancel-req {
    margin-top: 0;
    font-size: 0.55rem;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
}

/* ── Invite result box ── */
.friends-invite-box {
    background: rgba(14, 29, 56, 0.8);
    border: 1px solid rgba(61, 125, 202, 0.4);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.friends-invite-link {
    flex: 1;
    font-size: 0.9rem;
    color: var(--poke-yellow);
    word-break: break-all;
    min-width: 0;
    font-family: monospace;
}

/* ── Friends list ── */
.friends-list { display: flex; flex-direction: column; gap: 0.8rem; }

.friends-empty,
.friends-ranking-empty {
    color: rgba(0, 58, 112, 0.65);
    font-size: 1.05rem;
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 203, 5, 0.08);
    border-radius: 10px;
    border: 2px dashed rgba(255, 203, 5, 0.5);
    font-style: italic;
}

.friends-list-item {
    background: rgba(14, 29, 56, 0.6);
    border: 1px solid rgba(61, 125, 202, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.2s;
}
.friends-list-item:hover { background: rgba(14,29,56,0.9); border-color: rgba(255,203,5,0.4); transform: translateX(4px); }

.friend-avatar {
    font-size: 1.6rem;
    line-height: 1;
    background: rgba(14, 29, 56, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(61, 125, 202, 0.4);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

.friend-info { flex: 1; min-width: 0; }
.friend-nickname {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
}
.friend-code { font-size: 0.85rem; color: rgba(163,183,215,0.6); font-family: monospace; }

.btn-remove-friend {
    margin-top: 0;
    font-size: 0.55rem;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
}

/* ── Rankings ── */
.friends-game-tabs-scroll { overflow: visible; }

.friends-game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.friends-game-tab {
    margin-top: 0;
    font-size: 0.58rem;
    padding: 0.55rem 1.2rem;
    white-space: nowrap;
}

.friends-tab-group { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.tab-arrow { font-size: 0.65rem; opacity: 0.7; margin-left: 2px; }
.tab-sub-label { font-size: 0.72rem; font-weight: 600; opacity: 0.85; margin-left: 2px; }

.friends-tab-subdropdown {
    position: fixed;
    z-index: 1000;
    background: #1e2a4a;
    border: 1px solid rgba(255, 203, 5, 0.4);
    border-radius: 10px;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 110px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.55);
}
.friends-tab-subdropdown.hidden { display: none; }

.friends-tab-suboption {
    background: transparent;
    border: none;
    color: #a3b7d7;
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.friends-tab-suboption:hover { background: rgba(255,255,255,0.08); color: #fff; }
.friends-tab-suboption.active { color: var(--poke-yellow); font-weight: 800; }

/* ── Ranking table ── */
.friends-ranking-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}
.friends-ranking-table th {
    color: var(--poke-yellow);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(255, 203, 5, 0.3);
}
.friends-ranking-table td {
    padding: 0.8rem 1rem;
    background: rgba(14, 29, 56, 0.6);
    color: #c8d8f0;
    font-size: 1rem;
    text-align: center;
    border-top: 1px solid rgba(61, 125, 202, 0.15);
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
.friends-ranking-table th:first-child,
.friends-ranking-table td:first-child { width: 4rem; padding-inline: .35rem; }
.friends-ranking-table th:last-child,
.friends-ranking-table td:last-child { width: clamp(5rem, 25%, 12rem); overflow-wrap: anywhere; }
.friends-ranking-table tr td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-left: 1px solid rgba(61,125,202,0.15); }
.friends-ranking-table th:nth-child(2),
.friends-ranking-table td:nth-child(2) { text-align: left; }
.friends-ranking-table tr td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-right: 1px solid rgba(0,0,0,0.2); }
.friends-ranking-table tr:hover td { background: rgba(14,29,56,0.9); }
.friends-ranking-table tr.is-self td { background: rgba(255,203,5,0.08); border-color: rgba(255,203,5,0.2); }

.friends-ranking-player { display: flex; align-items: center; gap: .35rem; min-width: 0; max-width: 100%; }
.friends-ranking-avatar { display: inline-flex; flex: 0 0 auto; }
.friends-ranking-name { display: block; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 1.2; }

.rank-pos       { font-weight: 900; color: var(--poke-yellow); font-size: 1.1rem; }
.rank-failed    { color: #ef5350; font-weight: bold; display: block; text-align: center; }
.rank-notplayed { color: rgba(163,183,215,0.5); font-style: italic; }
.rank-value     { font-weight: 900; color: #81c784; font-size: 1.1rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.rank-piramide-good { color: #81c784; }
.rank-piramide-bad  { color: #ef5350; }
.rank-win-good  { color: #81c784; }

.rank-extra         { display: block; font-size: 0.8rem; margin-top: 4px; font-weight: bold; }
.rank-extra-clean   { color: #81c784; }
.rank-extra-hints   { color: #ffb74d; }
.rank-extra-life-ok { color: #ef5350; }
.rank-extra-life-used { color: rgba(163,183,215,0.5); }
.rank-timer-badge       { font-size: 0.85em; opacity: 0.75; margin-left: 2px; }
.rank-timer-badge--free { color: #90a4ae; }

.friends-ranking-loading {
    text-align: center;
    color: var(--poke-navy);
    padding: 2rem;
    font-size: 1rem;
    font-weight: bold;
    animation: poke-pulse 1.5s infinite;
}
@keyframes poke-pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* ── Avatar in ranking ── */
.ranking-avatar-wrap { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 0.4rem; }
.ranking-avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(61,125,202,0.4); vertical-align: middle; }

/* ── Skeleton Loader ── */
@keyframes skel-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}
.skel-card {
    /* fondo/borde ahora los da .pokebox-light -- se queda igual que la
       tarjeta real que sustituye, sin parpadeo oscuro→claro al cargar */
    border-radius: 16px;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
}
.skel-circle, .skel-line {
    background: linear-gradient(90deg, #d8d8cc 25%, #eaeae0 50%, #d8d8cc 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s infinite linear;
    border-radius: 999px;
}
.skel-profile-row { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 0.5rem 0; }
.skel-circle     { width: 44px; height: 44px; flex-shrink: 0; }
.skel-circle--lg { width: 72px; height: 72px; }
.skel-text-group { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.skel-line       { height: 13px; width: 70%; }
.skel-line--sm   { width: 40%; height: 10px; }
.skel-line--med  { width: 55%; }
.skel-line--lg   { width: 70%; height: 16px; }
.skel-line--xl   { width: 85%; }
.skel-line--title { width: 45%; height: 18px; margin-bottom: 1.2rem; }
.skel-friend-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(61,125,202,0.15); }
.skel-friend-row:last-child { border-bottom: none; }

/* ── Scrollable containers ── */
#friendsList { max-height: 740px; overflow-y: auto; padding-right: 4px; }
#rankingContent { max-height: 580px; overflow-y: auto; }
.requests-items-wrap { max-height: 680px; overflow-y: auto; padding-right: 4px; }

.friends-ranking-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1e2a4a;
}

#friendsList::-webkit-scrollbar,
#rankingContent::-webkit-scrollbar,
.requests-items-wrap::-webkit-scrollbar { width: 5px; }
#friendsList::-webkit-scrollbar-track,
#rankingContent::-webkit-scrollbar-track,
.requests-items-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
#friendsList::-webkit-scrollbar-thumb,
#rankingContent::-webkit-scrollbar-thumb,
.requests-items-wrap::-webkit-scrollbar-thumb { background: rgba(61,125,202,0.5); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    /* El gutter por defecto de .container (Bootstrap, 12px) es menor que
       el inset:-18px de las esquinas pokéball de .pokebox-light--corners
       (common.css) -- en móvil se salían del viewport. */
    .container { padding-left: 24px; padding-right: 24px; }

    .friends-profile-card { flex-direction: column; text-align: center; padding: 1.5rem; }
    .friends-code-row { justify-content: center; }
    .friends-section-header { flex-direction: column; align-items: center; text-align: center; }
    .friends-toggle-row { text-align: center; }
    .friends-add-menu { right: auto; left: 0; }
    .friends-ranking-table th:first-child,
    .friends-ranking-table td:first-child { display: none; }
    .friends-ranking-table th:nth-child(2) { text-align: center; }
    .friends-ranking-table th,
    .friends-ranking-table td { padding-inline: .2rem; }
    .friends-ranking-table th:last-child,
    .friends-ranking-table td:last-child { width: 5rem; padding-right: .35rem; text-align: right; white-space: nowrap; }
    .friends-ranking-table th:last-child { font-size: .7rem; padding-inline: .15rem; overflow-wrap: break-word; }
    .friends-ranking-table td { padding-block: .45rem; }
    .friends-ranking-table td:nth-child(2) { font-size: .83rem; }
    .friends-ranking-player { gap: .25rem; }
    .friends-ranking-table .rank-value,
    .friends-ranking-table .rank-failed { display: inline; font-size: .76rem; }
    .friends-ranking-table .rank-extra { display: inline; font-size: .68rem; margin: 0 0 0 .05rem; }
    .friends-ranking-table td:last-child .rank-notplayed { white-space: normal; }
    .friends-game-tabs-scroll {
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(61,125,202,0.5) rgba(0,0,0,0.2);
    }
    .friends-game-tabs-scroll::-webkit-scrollbar { height: 4px; }
    .friends-game-tabs-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 2px; }
    .friends-game-tabs-scroll::-webkit-scrollbar-thumb { background: rgba(61,125,202,0.5); border-radius: 2px; }
    .friends-game-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow: visible; margin-bottom: 0; }
    .friends-game-tab { flex-shrink: 0; }
    .request-item { gap: 0.5rem; }
    .btn-accept-req, .btn-decline-req, .btn-cancel-req {
        font-size: 0; padding: 0.35rem 0.7rem; min-width: 34px;
    }
    .btn-accept-req::after  { content: '✓'; font-size: 1rem; font-weight: 900; }
    .btn-decline-req::after, .btn-cancel-req::after { content: '✗'; font-size: 1rem; font-weight: 900; }
    .friend-nickname { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .friends-nickname { font-size: 0.9rem; }
}
