.player-area-nav {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.4rem;margin:1rem 0;scroll-margin-top:110px;}
.player-area-nav button {min-width:0;padding:.8rem .35rem;min-height:46px;font-size:.85rem;white-space:normal;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;}
.player-area-nav button.active {background:var(--primary);color:#111;font-weight:800;}
#communityUnread:not(:empty) {background:#111;color:#c0f72d;padding:.15rem .4rem;border-radius:1rem;margin-left:.2rem;}
#playerCommunityPanel [hidden],.player-area-nav[hidden] {display:none!important;}
#playerCommunityPanel {display:grid;gap:1rem;min-width:0;}
#playerCommunityPanel>section {display:grid;gap:1rem;min-width:0;}
#playerCommunityPanel h2 {font-size:1.35rem;outline-offset:4px;margin:0;}
.community-profile-heading {display:flex;align-items:center;gap:1rem;}
.community-profile-heading h3 {margin:.2rem 0;overflow-wrap:anywhere;}
.community-avatar {width:74px;height:74px;border-radius:50%;object-fit:cover;flex:0 0 74px;background:rgba(163,221,0,.16);}
.community-initials {display:grid;place-items:center;font-size:1.8rem;font-weight:800;color:var(--primary);}
.community-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:1rem 0;}
.community-stats>div {padding:1rem .4rem;border:1px solid var(--line);border-radius:14px;text-align:center;}
.community-stats strong {display:block;font-size:1.8rem;color:var(--primary);}
.community-stats span {font-size:.85rem;}
.community-actions {display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0;}
.community-message-status {border:1px solid var(--line);padding:.8rem;border-radius:12px;overflow-wrap:anywhere;}
.community-message-status.is-error {color:#ffb0aa;border-color:#bd4545;}
.community-bio,.community-message p {white-space:pre-wrap;overflow-wrap:anywhere;}
.community-match {border:1px solid var(--line);border-radius:16px;padding:1rem;margin:.8rem 0;}
.community-match h3 {font-size:1.05rem;line-height:1.4;}
.community-match-top,.community-match-meta {display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;font-size:.85rem;}
.community-match-top>span:first-child {overflow-wrap:anywhere;}
.community-badge {background:rgba(150,200,0,.15);border-radius:30px;padding:.3rem .6rem;font-size:.75rem;}
.community-badge.is-live {background:#9fe000;color:#111;}
.community-vs {display:block;color:var(--muted);font-size:.8rem;margin:.3rem 0;}
.community-person {display:flex;align-items:center;gap:.6rem;border:1px solid var(--line);border-radius:14px;padding:.8rem;margin:.5rem 0;}
.community-person .community-avatar,.community-conversation .community-avatar {width:46px;height:46px;flex-basis:46px;font-size:1.2rem;}
.community-person-info {min-width:0;flex:1;display:grid;gap:.2rem;}
.community-person-info>span,.community-person-info>small {font-size:.8rem;color:var(--muted);overflow-wrap:anywhere;}
.community-name {border:0;padding:0;background:transparent;color:var(--text);font-weight:700;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.community-person>button {font-size:.78rem;min-height:44px;max-width:105px;white-space:normal;}
.community-conversation {display:flex;gap:.75rem;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid var(--line);border-radius:14px;padding:1rem;color:var(--text);margin:.5rem 0;}
.community-conversation>span:not(.community-avatar):not(.community-contact-arrow) {min-width:0;flex:1;display:grid;gap:.4rem;}
.community-conversation>span>span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;color:var(--muted);}
.community-chat-log {display:flex;flex-direction:column;gap:.6rem;max-height:52dvh;min-height:150px;overflow-y:auto;overscroll-behavior:contain;padding:.6rem 0;}
.community-message {max-width:85%;align-self:flex-start;padding:.8rem;background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:14px;}
.community-message.is-mine {align-self:flex-end;background:rgba(150,200,0,.13);}
.community-message p {margin:0 0 .4rem;}
.community-message small {font-size:.68rem;color:var(--muted);}
#communityChatForm {display:grid;gap:.6rem;}
#communityChatForm textarea {min-height:80px;max-height:160px;resize:vertical;}
#communityChatForm button {justify-self:end;min-width:110px;}
#communityBio {min-height:100px;resize:vertical;}
#communityEditForm {display:grid;gap:.8rem;}
#playerCommunityPanel label {display:grid;gap:.4rem;align-content:start;}
#playerCommunityPanel input,#playerCommunityPanel textarea,#playerCommunityPanel select {width:100%;min-width:0;}
@media(max-width:600px){.player-area-nav{grid-template-columns:repeat(3,minmax(0,1fr));}.player-area-nav button{font-size:.8rem;}.community-profile-heading{gap:.7rem;}.community-stats strong{font-size:1.5rem;}#playerCommunityPanel .card{padding:1rem;}.community-avatar{width:60px;height:60px;flex-basis:60px;}.community-person{padding:.65rem;gap:.45rem;}}
body:has(#playerView:not([hidden]) #playerAreaNav:not([hidden])) #registerCta {display:none;}
.community-edit-details summary {cursor:pointer;padding:.8rem 0;min-height:44px;}
.community-profile-heading>div {display:grid;gap:.2rem;min-width:0;}
.community-profile-heading small {color:var(--muted);}

/* Acciones de inscripción visibles sin recorrer dos paneles largos. */
.player-nav-badge:not(:empty),#playerPartnerInvitationCount:not(:empty) {display:inline-block;background:#111;color:#c0f72d;padding:.15rem .4rem;border-radius:1rem;margin-left:.2rem;}
.player-invitation-notice {display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--primary);border-radius:16px;background:rgba(150,200,0,.1);padding:1rem;}
.player-invitation-notice[hidden],.player-partner-navigation[hidden] {display:none!important;}
.player-partner-navigation {grid-column:1/-1;scroll-margin-top:calc(var(--topbar-sticky-offset,110px) + 16px);}
.player-partner-switch {display:flex;gap:.6rem;flex-wrap:wrap;}
.player-partner-switch button {flex:1;min-height:46px;}
.player-partner-switch button[aria-pressed="true"] {background:var(--primary);color:#111;border-color:var(--primary);}
#playerPartnerCard,#playerInvitationsCard,.player-invitation-item,#playerPartnerResults,#playerNextActionCard,#playerRegistrationOverview {scroll-margin-top:calc(var(--topbar-sticky-offset,110px) + 16px);}
.player-partner-grid:has(.player-partner-navigation:not([hidden])) {grid-template-columns:minmax(0,1fr);}
.player-focus-highlight {outline:2px solid var(--primary);outline-offset:4px;}
#playerPartnerStatus:not([hidden]) {border-left:3px solid var(--primary);padding:.75rem;margin:1rem 0;}
#communityOwnHeader {margin-top:1.25rem;}
.community-messages-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;}
.community-new-chat {font-size:1.6rem;line-height:1;min-width:46px;min-height:46px;padding:.4rem .7rem;flex-shrink:0;}
#communityContactsForm {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:end;margin:1rem 0;}
#communityContactsList .community-conversation>span {white-space:normal;overflow-wrap:anywhere;}
@media(max-width:600px){.player-invitation-notice{align-items:stretch;flex-direction:column;}.player-partner-switch button{font-size:.85rem;}}

.community-conversation>.community-avatar {flex:0 0 46px;}
.community-contact-arrow {flex:0 0 auto;}
.community-messages-heading {flex-direction:row;align-items:center;}
.community-messages-heading h2 {text-align:left;}

.player-account-card fieldset {border:0;padding:0;margin:1rem 0;display:grid;gap:1rem;min-width:0;}
.player-account-card legend {font-weight:700;margin-bottom:.8rem;}
.player-account-card input {width:100%;min-width:0;}
.player-account-message {padding:.8rem;border-left:3px solid var(--primary);overflow-wrap:anywhere;}
.player-account-message.is-error {color:#ffb0aa;border-color:#bd4545;}
#playerSexCompletion {margin:1rem 0;}
#playerSexCompletionMessage {color:#ffb0aa;}

.player-google-button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 20px;border:1px solid #747775;border-radius:12px;background:#fff;color:#1f1f1f;text-decoration:none;font-family:inherit;font-weight:600;font-size:.95rem;line-height:1.4;overflow-wrap:anywhere;}
.player-google-button:hover {background:#f2f2f2;}
.player-google-button:focus-visible {outline:3px solid var(--primary);outline-offset:3px;}
.player-google-button[hidden] {display:none!important;}
#playerGoogleAccess {margin:1rem 0;}
