/* TeamAmour Community/Profile V1 */
.community-self-card{overflow:hidden;padding-top:0!important}.self-banner{height:48px;margin:0 -1px;background:linear-gradient(120deg,#4c1d95,#9f1239);border-bottom:1px solid var(--border-subtle)}.profile-title-line{min-height:16px;color:#b8a7ff;font-size:.68rem;font-weight:700}.avatar-shell,.public-avatar-shell{border-radius:50%;padding:3px;background:rgba(255,255,255,.08);display:grid;place-items:center}.avatar-shell{width:52px;height:52px}.avatar-shell img,.public-avatar-shell img{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover;border:2px solid #0b0712}.frame-centurion{background:linear-gradient(135deg,#f6d365,#fda085)}.frame-omnijoueur{background:conic-gradient(#ff4d6d,#9d5cff,#2fe6ac,#ffd166,#ff4d6d)}.frame-streak30{background:linear-gradient(135deg,#ff512f,#dd2476)}.frame-wordle{background:linear-gradient(135deg,#10b981,#84cc16)}.frame-quiz{background:linear-gradient(135deg,#8b5cf6,#ec4899)}.name-neon-purple{color:#d9ceff;text-shadow:0 0 9px rgba(157,92,255,.8)}.self-badges,.public-badges{display:flex;gap:.35rem;min-height:30px}.self-badges{padding:.2rem 1rem .6rem}.public-badge{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--border-subtle);border-radius:8px;background:rgba(255,255,255,.04)}.profile-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;padding:0 1rem .75rem}.profile-quick-grid>div{padding:.5rem;border:1px solid var(--border-subtle);border-radius:9px;background:rgba(255,255,255,.03)}.profile-quick-grid span{display:block;font-size:.55rem;color:var(--text-muted)}.profile-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;padding:0 1rem 1rem}.presence-item{cursor:pointer}.community-view{margin-top:.5rem}.community-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1rem}.community-toolbar h2{font:800 1.45rem Sora;margin:.15rem 0}.community-toolbar p{margin:0;color:var(--text-muted);font-size:.75rem}.community-search{display:flex;gap:.6rem;align-items:center}.community-search input{min-width:240px;padding:.6rem .75rem;border:1px solid var(--border-subtle);border-radius:9px;background:rgba(255,255,255,.04);color:var(--text-primary)}.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.community-player-card{overflow:hidden;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-raised,rgba(18,12,33,.8));cursor:pointer;transition:.18s}.community-player-card:hover{transform:translateY(-2px);border-color:rgba(157,92,255,.45)}.community-card-banner{height:44px;background:linear-gradient(120deg,#4c1d95,#9f1239)}.accent-pink{background:linear-gradient(120deg,#9d174d,#581c87)}.accent-red{background:linear-gradient(120deg,#7f1d1d,#581c87)}.accent-blue{background:linear-gradient(120deg,#1e3a8a,#581c87)}.accent-green{background:linear-gradient(120deg,#065f46,#312e81)}.accent-gold{background:linear-gradient(120deg,#92400e,#4c1d95)}.community-card-body{padding:0 .8rem .8rem}.community-avatar-row{display:flex;justify-content:space-between;align-items:flex-end;margin-top:-23px}.public-avatar-shell{width:58px;height:58px}.online-chip{font-size:.56rem;padding:.24rem .42rem;border-radius:999px;background:rgba(47,230,172,.1);color:#66e7be;border:1px solid rgba(47,230,172,.18)}.offline-chip{color:var(--text-muted);background:rgba(255,255,255,.04);border-color:var(--border-subtle)}.community-player-name{font:800 .9rem Sora;margin-top:.4rem}.community-player-title{font-size:.63rem;color:#ae9bff;min-height:16px}.community-player-activity{font-size:.62rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-card-stats{display:flex;gap:.65rem;font-size:.6rem;color:var(--text-muted);margin-top:.55rem}.community-modal{display:none;position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.68);backdrop-filter:blur(7px);align-items:center;justify-content:center;padding:1rem}.community-modal.active{display:flex}.community-modal-card{position:relative;width:min(700px,100%);max-height:90vh;overflow:auto;background:#100a1d;border:1px solid rgba(255,255,255,.1);border-radius:18px}.community-modal-close{position:absolute;right:10px;top:10px;z-index:3;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.35);color:#fff;font-size:1.2rem;cursor:pointer}.public-profile-banner{height:105px}.public-profile-main{padding:0 1.15rem 1.15rem}.public-profile-head{display:flex;justify-content:space-between;align-items:flex-end;margin-top:-38px}.public-profile-id{display:flex;gap:.75rem;align-items:flex-end}.public-profile-id .public-avatar-shell{width:80px;height:80px}.public-profile-name{font:800 1.15rem Sora}.public-profile-username,.public-profile-title{font-size:.65rem;color:var(--text-muted)}.public-profile-title{color:#ae9bff}.public-profile-bio{margin:.8rem 0;color:var(--text-muted);font-size:.76rem}.public-profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem;margin:.8rem 0}.public-profile-stats>div{padding:.6rem;border:1px solid var(--border-subtle);border-radius:9px;background:rgba(255,255,255,.03)}.public-profile-stats span{display:block;font-size:.54rem;color:var(--text-muted)}.achievement-showcase{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}.achievement-showcase>div,.recent-public-game{padding:.5rem;border:1px solid var(--border-subtle);border-radius:9px;background:rgba(255,255,255,.03);font-size:.62rem}.profile-section{margin-top:.9rem}.profile-section-title{font:800 .7rem Sora;margin-bottom:.4rem}.recent-public-games{display:flex;flex-direction:column;gap:.35rem}.recent-public-game{display:flex;justify-content:space-between}.edit-profile-card{padding:1.1rem}.edit-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.edit-profile-grid .wide{grid-column:1/-1}.edit-profile-grid label{font-size:.62rem;color:var(--text-muted)}.edit-profile-grid input,.edit-profile-grid textarea,.edit-profile-grid select,.cosmetic-editor-grid select{display:block;width:100%;margin-top:.25rem;padding:.6rem;border:1px solid var(--border-subtle);border-radius:8px;background:rgba(255,255,255,.04);color:var(--text-primary)}.privacy-toggles{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0;font-size:.62rem;color:var(--text-muted)}.cosmetic-editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.45rem}.cosmetic-slot{padding:.5rem;border:1px solid var(--border-subtle);border-radius:9px}.cosmetic-slot label{font-size:.55rem;color:var(--text-muted)}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.9rem}@media(max-width:900px){.community-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.community-toolbar{align-items:flex-start;flex-direction:column}.community-search{width:100%;flex-direction:column;align-items:flex-start}.community-search input{min-width:0;width:100%}.community-grid{grid-template-columns:1fr}.public-profile-stats{grid-template-columns:repeat(2,1fr)}.edit-profile-grid,.cosmetic-editor-grid{grid-template-columns:1fr}.profile-card-actions{grid-template-columns:1fr}}
/* V1.2 — profil plus intégré, moins "cartes dans des cartes" */
.public-profile-banner{height:150px;border-radius:0;background:radial-gradient(circle at 16% 20%,rgba(255,255,255,.12),transparent 30%),linear-gradient(125deg,#4c1d95,#8b1e59 72%,#20102f)}
.public-profile-main{padding:0 1.5rem 1.5rem}.public-profile-head{margin-top:-48px;align-items:flex-end}.public-profile-id{gap:1rem}.public-profile-id .public-avatar-shell{width:96px;height:96px;box-shadow:0 10px 35px rgba(0,0,0,.35)}.public-profile-name{font-size:1.35rem;letter-spacing:-.02em}.public-profile-username{display:none}.public-profile-title{margin-top:.25rem}.public-profile-bio{max-width:620px;margin:1.15rem 0 .8rem;padding:0;border:0;background:none;font-size:.8rem}.public-profile-stats{display:flex;gap:1.25rem;margin:1rem 0;padding:.8rem 0;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}.public-profile-stats>div{padding:0;border:0;background:none;min-width:70px}.public-profile-stats span{font-size:.53rem;letter-spacing:.08em;text-transform:uppercase}.public-profile-stats strong{font:800 1.05rem Sora}.profile-section{margin-top:1.25rem}.achievement-showcase{display:flex;gap:.45rem;flex-wrap:wrap}.achievement-showcase>div{min-width:0;border-radius:999px;padding:.45rem .65rem;background:rgba(157,92,255,.07)}.recent-public-games{border-top:1px solid var(--border-subtle)}.recent-public-game{border:0;border-bottom:1px solid var(--border-subtle);border-radius:0;background:none;padding:.65rem 0}
.profile-editor-shell{width:min(920px,96vw);display:grid;grid-template-columns:300px minmax(0,1fr);overflow:hidden;padding:0!important}.profile-editor-preview{position:sticky;top:0;min-height:620px;padding:0 1.25rem 1.25rem;background:radial-gradient(circle at 20% 0,rgba(157,92,255,.2),transparent 35%),rgba(255,255,255,.02);border-right:1px solid var(--border-subtle);text-align:center}.editor-preview-banner{height:130px;margin:0 -1.25rem;background:linear-gradient(125deg,#4c1d95,#9f1239)}.editor-preview-avatar{width:96px;height:96px;margin:-48px auto 0;position:relative}.editor-preview-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid #100a1d}.editor-preview-name{font:800 1.18rem Sora;margin-top:.65rem}.editor-preview-title{font-size:.7rem;color:#b6a3ff;min-height:20px;margin-top:.25rem}.editor-preview-badges{display:flex;justify-content:center;gap:.35rem;margin:.55rem 0}.profile-editor-preview p{font-size:.67rem;line-height:1.5;color:var(--text-muted);margin:1rem auto;max-width:230px}.profile-editor-content{padding:1.25rem 1.35rem 0;min-width:0}.profile-editor-content h2{font:800 1.35rem Sora;margin:.15rem 0 1rem}.editor-section{padding:1rem 0;border-top:1px solid var(--border-subtle)}.editor-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.7rem}.editor-section-head strong{font:800 .76rem Sora}.editor-section-head span{font-size:.58rem;color:var(--text-muted)}.editor-field{display:block;font-size:.6rem;color:var(--text-muted)}.editor-field textarea,.editor-field select{width:100%;margin-top:.3rem;padding:.65rem .7rem;border:1px solid var(--border-subtle);border-radius:10px;background:rgba(255,255,255,.035);color:var(--text-primary)}.editor-inline{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:.7rem}.cosmetic-editor-polished{grid-template-columns:repeat(2,minmax(0,1fr))}.privacy-section .privacy-toggles{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;margin:0}.privacy-section .privacy-toggles label{display:flex;align-items:center;gap:.45rem;padding:.65rem;border:1px solid var(--border-subtle);border-radius:10px;background:rgba(255,255,255,.025)}.sticky-actions{position:sticky;bottom:0;margin:0 -1.35rem;padding:.9rem 1.35rem;background:linear-gradient(180deg,transparent,#100a1d 30%);z-index:2}
@media(max-width:760px){.profile-editor-shell{grid-template-columns:1fr}.profile-editor-preview{position:relative;min-height:auto;border-right:0;border-bottom:1px solid var(--border-subtle)}.editor-preview-banner{height:90px}.editor-preview-avatar{width:78px;height:78px;margin-top:-39px}.editor-inline,.privacy-section .privacy-toggles,.cosmetic-editor-polished{grid-template-columns:1fr}.public-profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}}

/* ===== V1.2.2 Avatar fallback ===== */
.avatar-fallback{width:100%;height:100%;border-radius:inherit;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(157,92,255,.48),rgba(255,45,85,.35));color:#fff;font:800 .9rem Sora}
.avatar-fallback>span{position:absolute;inset:0;display:grid;place-items:center}
.avatar-fallback>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;border-radius:inherit}
.editor-preview-avatar .avatar-fallback>img,.public-avatar-shell .avatar-fallback>img,.avatar-shell .avatar-fallback>img{border:2px solid rgba(8,5,15,.92)}

/* ===== V1.2.2 Public profile: identity rail + content ===== */
.community-modal-card:has(.profile-sheet){width:min(900px,96vw);overflow:hidden}
.profile-sheet{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:590px}
.profile-sheet-identity{position:relative;padding:0 1.3rem 1.3rem;text-align:center;border-right:1px solid var(--border-subtle);background:rgba(255,255,255,.018)}
.profile-sheet-banner{height:150px;margin:0 -1.3rem;background:linear-gradient(135deg,rgba(91,33,182,.85),rgba(190,24,93,.75))}
.profile-sheet-identity.accent-gold .profile-sheet-banner{background:linear-gradient(135deg,#7c4a03,#7e2258)}
.profile-sheet-identity.accent-green .profile-sheet-banner{background:linear-gradient(135deg,#065f46,#312e81)}
.profile-sheet-identity.accent-blue .profile-sheet-banner{background:linear-gradient(135deg,#1e3a8a,#581c87)}
.profile-sheet-identity.accent-red .profile-sheet-banner{background:linear-gradient(135deg,#7f1d1d,#581c87)}
.profile-sheet-identity.accent-pink .profile-sheet-banner{background:linear-gradient(135deg,#9d174d,#581c87)}
.profile-sheet-avatar{width:104px;height:104px;margin:-52px auto 0;box-shadow:0 14px 34px rgba(0,0,0,.32)}
.profile-sheet-name{font:800 1.2rem Sora;margin-top:.7rem}
.profile-sheet-title{color:#b9a7ff;font-size:.7rem;margin-top:.25rem}
.profile-sheet-badges{display:flex;justify-content:center;gap:.35rem;margin:.7rem 0 1rem;min-height:28px}
.profile-sheet-achievements{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-subtle);text-align:left}
.identity-label{font-size:.55rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.45rem}
.identity-achievement{display:flex;align-items:center;gap:.45rem;padding:.42rem 0;font-size:.62rem}
.identity-achievement span{width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--border-subtle);border-radius:7px;background:rgba(255,255,255,.035)}
.identity-achievement strong{font-weight:700}
.identity-edit-btn{width:100%;margin-top:1rem;padding:.62rem;border:1px solid rgba(157,92,255,.35);border-radius:10px;background:rgba(157,92,255,.08);color:#d9ceff;font-weight:800;cursor:pointer}
.profile-sheet-content{padding:1.45rem 1.6rem}
.profile-sheet-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.profile-sheet-topline h2{font:800 1.55rem Sora;margin:.15rem 0}
.profile-sheet-bio{color:var(--text-muted);font-size:.8rem;line-height:1.55;margin:1rem 0 1.25rem;max-width:620px}
.empty-bio{font-style:italic;opacity:.65}
.profile-sheet-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;padding:1rem 0;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.profile-sheet-stats>div{display:flex;flex-direction:column;gap:.15rem}
.profile-sheet-stats strong{font:800 1.1rem Sora}.profile-sheet-stats span{font-size:.55rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em}
.profile-sheet-section{margin-top:1.25rem}.profile-sheet-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}.profile-sheet-section-head strong{font:800 .74rem Sora}.profile-sheet-section-head span{font-size:.58rem;color:var(--text-muted)}
.achievement-progress-line{height:7px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden}.achievement-progress-line>div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff2d55,#9d5cff)}
.profile-sheet-recent{border-top:1px solid var(--border-subtle)}.profile-sheet-recent>div{display:flex;justify-content:space-between;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--border-subtle);font-size:.67rem}.profile-result{color:var(--text-muted)}.profile-result.is-win{color:#4ade80}
.profile-private{padding:3rem}
@media(max-width:760px){.profile-sheet{grid-template-columns:1fr}.profile-sheet-identity{border-right:0;border-bottom:1px solid var(--border-subtle)}.profile-sheet-banner{height:100px}.profile-sheet-avatar{width:84px;height:84px;margin-top:-42px}.profile-sheet-stats{grid-template-columns:repeat(2,1fr)}}

/* ===== V1.2.3 Collection / progression ===== */
.collection-view{margin-top:.4rem}
.collection-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1rem}
.collection-hero h2{font:800 1.5rem Sora;margin:.15rem 0}
.collection-hero p{margin:0;color:var(--text-muted);font-size:.75rem;max-width:650px}
.collection-summary{display:flex;gap:.55rem}
.collection-summary>div{min-width:125px;padding:.65rem .8rem;border:1px solid var(--border-subtle);border-radius:11px;background:rgba(255,255,255,.025)}
.collection-summary strong{display:block;font:800 .95rem Sora}.collection-summary span{font-size:.55rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.07em}
.collection-progress-card{padding:.85rem 1rem;margin-bottom:1rem;border:1px solid var(--border-subtle);border-radius:12px;background:rgba(255,255,255,.025)}
.collection-progress-meta{display:flex;justify-content:space-between;font-size:.68rem;margin-bottom:.5rem}.collection-progress-meta span{color:#b5a4ff;font-weight:800}
.collection-progress-track,.achievement-card-progress-track{height:7px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden}
.collection-progress-track>div,.achievement-card-progress-track>div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff2d55,#9d5cff)}
.collection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.8rem}
.collection-tabs{display:flex;padding:4px;border:1px solid var(--border-subtle);border-radius:10px;background:rgba(255,255,255,.02)}
.collection-type-btn{border:0;background:transparent;color:var(--text-muted);border-radius:7px;padding:.48rem .72rem;font-weight:800;font-size:.65rem;cursor:pointer}.collection-type-btn.active{background:rgba(157,92,255,.12);color:var(--text-primary)}
.collection-filters{display:flex;gap:.45rem}.collection-filters select{padding:.5rem .65rem;border:1px solid var(--border-subtle);border-radius:9px;background:rgba(255,255,255,.035);color:var(--text-primary);font-size:.65rem}
.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.collection-card{display:flex;gap:.85rem;min-height:170px;padding:1rem;border:1px solid var(--border-subtle);border-radius:14px;background:rgba(255,255,255,.02);position:relative;overflow:hidden}
.collection-card.is-unlocked{border-color:rgba(74,222,128,.2);background:linear-gradient(135deg,rgba(74,222,128,.035),rgba(157,92,255,.025))}
.collection-card.is-locked{opacity:.87}
.collection-card-icon,.cosmetic-preview{width:54px;height:54px;flex:0 0 54px;border-radius:13px;display:grid;place-items:center;font-size:1.45rem;background:rgba(157,92,255,.08);border:1px solid rgba(157,92,255,.18)}
.collection-card-body{min-width:0;flex:1}
.collection-card-top{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}.collection-card-top h3{font:800 .84rem Sora;margin:.12rem 0}.collection-game{font-size:.52rem;text-transform:uppercase;letter-spacing:.08em;color:#a995ff}
.collection-state{white-space:nowrap;font-size:.55rem;color:var(--text-muted);padding:.23rem .42rem;border:1px solid var(--border-subtle);border-radius:999px}
.is-unlocked .collection-state{color:#60d9a8;border-color:rgba(74,222,128,.2)}
.collection-card p{font-size:.65rem;line-height:1.45;color:var(--text-muted);margin:.55rem 0 .7rem}
.achievement-card-progress-meta{display:flex;justify-content:space-between;color:var(--text-muted);font-size:.55rem;margin-bottom:.3rem}
.collection-reward{display:flex;justify-content:space-between;align-items:center;margin-top:.7rem;padding-top:.6rem;border-top:1px solid var(--border-subtle);font-size:.58rem}.collection-reward span{color:var(--text-muted)}.collection-reward strong{font-size:.62rem}
.collection-equipped-note{margin-top:.7rem;font-size:.58rem;color:#9ed9c3}
.rarity-legendary .collection-card-icon{background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.22)}
.rarity-epic .collection-card-icon{background:rgba(168,85,247,.09);border-color:rgba(168,85,247,.22)}
.rarity-rare .collection-card-icon{background:rgba(59,130,246,.09);border-color:rgba(59,130,246,.22)}
.cosmetic-title{background:rgba(245,158,11,.08)}.cosmetic-frame{border-radius:50%;background:conic-gradient(rgba(255,45,85,.22),rgba(157,92,255,.25),rgba(47,230,172,.2),rgba(255,45,85,.22))}
.cosmetic-name_style{font-size:1rem;text-shadow:0 0 8px rgba(157,92,255,.8)}.cosmetic-banner{background:linear-gradient(135deg,rgba(76,29,149,.55),rgba(159,18,57,.48))}
@media(max-width:800px){.collection-grid{grid-template-columns:1fr}.collection-hero,.collection-toolbar{align-items:flex-start;flex-direction:column}.collection-summary{width:100%}.collection-summary>div{flex:1}.collection-filters{width:100%;flex-wrap:wrap}.collection-filters select{flex:1}}
