:root{--rtp-bg:#f5f7fb;--rtp-surface:#fff;--rtp-surface-2:#eef2f8;--rtp-text:#172033;--rtp-muted:#6f7890;--rtp-line:#e4e8f0;--rtp-primary:#645cff;--rtp-primary-2:#8c65ff;--rtp-success:#24c8a5;--rtp-shadow:0 16px 45px rgba(29,38,68,.09);--rtp-radius:22px;--rtp-top:76px}
:root[data-theme="dark"]{--rtp-bg:#10131c;--rtp-surface:#171b26;--rtp-surface-2:#202636;--rtp-text:#f5f7fb;--rtp-muted:#9ba5bb;--rtp-line:#2b3244;--rtp-shadow:0 18px 55px rgba(0,0,0,.27)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--rtp-bg);color:var(--rtp-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}.rtp-shell{min-height:100vh}.rtp-topbar{height:var(--rtp-top);position:sticky;top:0;z-index:999;display:grid;grid-template-columns:260px 1fr auto;align-items:center;gap:24px;padding:0 30px;background:color-mix(in srgb,var(--rtp-surface) 92%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--rtp-line)}.rtp-brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em}.rtp-brand .custom-logo{max-height:44px;width:auto}.rtp-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;box-shadow:0 9px 25px rgba(100,92,255,.3)}.rtp-desktop-nav ul{display:flex;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}.rtp-desktop-nav a{display:block;padding:10px 13px;border-radius:12px;font-weight:700;color:var(--rtp-muted)}.rtp-desktop-nav .current-menu-item a,.rtp-desktop-nav a:hover{color:var(--rtp-text);background:var(--rtp-surface-2)}.rtp-top-actions{display:flex;align-items:center;gap:10px}.rtp-icon-button{width:42px;height:42px;border:1px solid var(--rtp-line);background:var(--rtp-surface);color:var(--rtp-text);border-radius:13px;display:grid;place-items:center;cursor:pointer}.rtp-icon-button svg,.rtp-btn svg,.rtp-mobile-nav svg{width:20px;height:20px}.rtp-user-mini img{display:block;border-radius:50%}.rtp-main{min-height:70vh;padding:30px 0 110px}.rtp-container{width:min(1180px,calc(100% - 32px));margin:auto}.rtp-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.rtp-card{background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:var(--rtp-radius);box-shadow:var(--rtp-shadow)}.rtp-post-card{overflow:hidden;margin-bottom:20px}.rtp-post-head{display:flex;align-items:center;gap:12px;padding:18px 20px}.rtp-post-head img{border-radius:50%}.rtp-post-head h2{font-size:1rem;margin:0}.rtp-post-head span,.rtp-post-meta{color:var(--rtp-muted);font-size:.85rem}.rtp-post-cover img{display:block;width:100%;max-height:620px;object-fit:cover}.rtp-post-body{padding:0 20px 20px}.rtp-card-title{margin:0 0 12px}.rtp-widget{padding:20px;margin-bottom:18px}.rtp-page-wrap{max-width:900px}.rtp-page-card{padding:clamp(22px,5vw,52px)}.rtp-page-card h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.05;letter-spacing:-.04em}.rtp-single-cover{width:100%;border-radius:18px;margin:20px 0}.rtp-entry{font-size:1.03rem}.rtp-entry a{color:var(--rtp-primary);text-decoration:underline}.rtp-empty{text-align:center;padding:70px 30px}.rtp-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--rtp-primary);font-size:.78rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.rtp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:13px;font-weight:850;border:1px solid transparent;transition:.18s ease}.rtp-btn:hover{transform:translateY(-1px)}.rtp-btn-primary{color:#fff;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));box-shadow:0 10px 24px rgba(100,92,255,.23)}.rtp-btn-secondary{background:var(--rtp-surface-2);border-color:var(--rtp-line)}.rtp-btn small{font-weight:700;opacity:.72}.rtp-footer{width:min(1180px,calc(100% - 32px));margin:auto;padding:30px 0 100px;display:flex;justify-content:space-between;color:var(--rtp-muted);font-size:.9rem}.rtp-footer ul{list-style:none;display:flex;gap:14px;margin:0;padding:0}.rtp-mobile-nav{display:none}
/* BuddyPress */
#buddypress,#buddypress .bp-wrap{color:var(--rtp-text)}#buddypress .bp-wrap{width:min(1180px,calc(100% - 32px));margin:auto}.rtp-profile-hero{overflow:hidden;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:28px;box-shadow:var(--rtp-shadow);margin-bottom:22px}.rtp-profile-cover{height:220px;background:linear-gradient(135deg,#4937c9,#745bff 55%,#20c9a7);background-size:cover;background-position:center}.rtp-profile-main{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;padding:0 28px 24px}.rtp-rank-avatar{--rtp-progress:0%;position:relative;width:154px;height:154px;margin-top:-72px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0);padding:6px;box-shadow:0 12px 35px rgba(0,0,0,.12)}.rtp-avatar-ring{width:100%;height:100%;padding:5px;border-radius:50%;background:var(--rtp-surface)}.rtp-avatar-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.rtp-rank-number{position:absolute;bottom:1px;right:6px;min-width:38px;height:38px;padding:0 8px;border:4px solid var(--rtp-surface);border-radius:999px;background:var(--rtp-primary);color:#fff;font-weight:950;display:grid;place-items:center}.rtp-profile-copy{padding-top:18px}.rtp-profile-copy h1{font-size:clamp(1.6rem,3vw,2.35rem);line-height:1;margin:6px 0 8px;letter-spacing:-.035em}.rtp-handle{color:var(--rtp-muted);font-weight:700}.rtp-profile-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.rtp-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rtp-line);background:var(--rtp-surface-2)}.rtp-profile-stats div{padding:17px 12px;text-align:center}.rtp-profile-stats div+div{border-left:1px solid var(--rtp-line)}.rtp-profile-stats strong{display:block;font-size:1.1rem}.rtp-profile-stats span{font-size:.78rem;color:var(--rtp-muted);font-weight:800;text-transform:uppercase;letter-spacing:.07em}.rtp-profile-meta{padding:0 28px 22px}.bp-navs{background:var(--rtp-surface);border:1px solid var(--rtp-line)!important;border-radius:18px;padding:8px!important;margin-bottom:20px!important;overflow:auto}.bp-navs ul{display:flex!important;gap:5px!important;white-space:nowrap}.bp-navs li{float:none!important}.bp-navs li a{border-radius:12px!important;color:var(--rtp-muted)!important;font-weight:800!important}.bp-navs li.current a,.bp-navs li.selected a,.bp-navs li a:hover{background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important}.activity-update-form,.activity-list .activity-item,.bp-feedback,.members-list li,.groups-list li,#buddypress .standard-form{background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:20px!important;box-shadow:var(--rtp-shadow)!important}.activity-update-form{padding:18px!important}.activity-list .activity-item{padding:18px!important;margin-bottom:16px!important}.activity-list .activity-avatar img,.avatar{border-radius:50%}.activity-content .activity-header a{font-weight:800}.activity-meta.action{display:flex;gap:7px;flex-wrap:wrap}.activity-meta.action a,.generic-button a,.friendship-button a,.message-button a{border:1px solid var(--rtp-line)!important;background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;border-radius:11px!important;font-weight:750!important;box-shadow:none!important}.bp-screen-reader-text{clip:rect(1px,1px,1px,1px)}
@media(max-width:900px){.rtp-topbar{grid-template-columns:1fr auto;padding:0 16px;height:66px}.rtp-desktop-nav{display:none}.rtp-content-grid{grid-template-columns:1fr}.rtp-sidebar{display:none}.rtp-main{padding-top:18px}.rtp-mobile-nav{position:fixed;z-index:1000;left:12px;right:12px;bottom:12px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px;background:color-mix(in srgb,var(--rtp-surface) 94%,transparent);backdrop-filter:blur(18px);border:1px solid var(--rtp-line);border-radius:20px;box-shadow:0 18px 55px rgba(0,0,0,.18)}.rtp-mobile-nav a{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px;color:var(--rtp-muted);font-size:.66rem;font-weight:800}.rtp-mobile-nav a:hover{color:var(--rtp-primary)}.rtp-footer{padding-bottom:110px}.rtp-profile-cover{height:160px}.rtp-profile-main{grid-template-columns:1fr;text-align:center;justify-items:center;padding:0 18px 20px}.rtp-rank-avatar{width:136px;height:136px;margin-top:-68px}.rtp-profile-copy{padding-top:0}.rtp-profile-actions{justify-content:center}.rtp-profile-stats{font-size:.9rem}#buddypress .bp-wrap{width:min(100% - 20px,1180px)}}
@media(max-width:520px){.rtp-btn{width:100%}.rtp-profile-actions{width:100%}.rtp-profile-stats span{font-size:.66rem}.rtp-container{width:calc(100% - 20px)}.rtp-page-card{border-radius:18px}.rtp-brand>span:last-child{display:none}}
/* RT Platform 1.1 */
.rtp-btn-disabled{cursor:not-allowed;opacity:.72;transform:none!important}.rtp-mobile-soon{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 2px;color:var(--rtp-muted);font-size:.66rem;font-weight:800;opacity:.7}.rtp-mobile-soon svg{width:20px;height:20px}.rtp-mobile-soon small{display:block;font-size:.52rem;line-height:1;color:var(--rtp-primary);margin-top:1px}.rtp-profile-cover[style]{background-size:cover;background-position:center}.rtp-rank-avatar{isolation:isolate}.rtp-rank-avatar:before{content:"";position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(color-mix(in srgb,var(--rtp-primary) 18%,transparent) var(--rtp-progress),transparent 0);filter:blur(7px);z-index:-1}

/* RT Platform 1.2 — Social Feed */
#buddypress .activity-list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
#buddypress .activity-list .rtp-activity-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:14px;padding:20px!important;margin:0!important;background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:22px!important;box-shadow:var(--rtp-shadow)!important;overflow:visible}
.rtp-feed-avatar-wrap{width:58px!important;margin:0!important;float:none!important;position:relative}
.rtp-feed-avatar-link{--rtp-progress:0%;position:relative;width:58px;height:58px;display:grid;place-items:center;border-radius:50%;padding:3px;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0)}
.rtp-feed-avatar-ring{display:block;width:100%;height:100%;padding:3px;background:var(--rtp-surface);border-radius:50%}
.rtp-feed-avatar-ring img{display:block!important;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%!important;float:none!important;margin:0!important}
.rtp-feed-rank{position:absolute;right:-4px;bottom:-3px;min-width:24px;height:24px;padding:0 5px;display:grid;place-items:center;border:3px solid var(--rtp-surface);border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.68rem;font-weight:950;line-height:1}
.rtp-feed-content{min-width:0;margin:0!important;padding:0!important}
.rtp-feed-header{min-height:58px;display:flex;align-items:flex-start;gap:7px;flex-wrap:wrap;padding:3px 0 10px!important;color:var(--rtp-muted);font-size:.88rem;line-height:1.45}
.rtp-feed-header a{color:var(--rtp-text);font-weight:850}
.rtp-feed-header .activity-time-since{font-weight:650;color:var(--rtp-muted)}
.rtp-feed-rank-name{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface));color:var(--rtp-primary);font-size:.68rem;font-weight:900;letter-spacing:.02em}
.rtp-feed-body{margin:0!important;padding:2px 0 14px!important;color:var(--rtp-text);font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.rtp-feed-body p:first-child{margin-top:0}.rtp-feed-body p:last-child{margin-bottom:0}
.rtp-feed-body img{margin-top:12px;border-radius:16px}
.rtp-feed-body blockquote{margin:14px 0;padding:12px 16px;border-left:3px solid var(--rtp-primary);background:var(--rtp-surface-2);border-radius:0 12px 12px 0}
.rtp-feed-actions{border-top:1px solid var(--rtp-line);padding-top:11px;margin-top:3px}
.rtp-feed-actions .activity-meta{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;margin:0!important}
.rtp-feed-actions .activity-meta a,.rtp-feed-actions .activity-meta button{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px;padding:7px 11px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--rtp-muted)!important;font-size:.78rem!important;font-weight:850!important;box-shadow:none!important;transition:background .18s ease,color .18s ease,transform .18s ease}
.rtp-feed-actions .activity-meta a:hover,.rtp-feed-actions .activity-meta button:hover{background:var(--rtp-surface-2)!important;color:var(--rtp-primary)!important;transform:translateY(-1px)}
.rtp-feed-comments{grid-column:2;margin:14px 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--rtp-line)}
.rtp-feed-comments .acomment-content{color:var(--rtp-text)}
.rtp-feed-comments ul{list-style:none;padding-left:0}
.rtp-feed-comments .acomment-avatar img,.rtp-feed-comments .ac-reply-avatar img{border-radius:50%!important}
.rtp-feed-comments .ac-form{margin-top:12px!important;padding:12px!important;background:var(--rtp-surface-2)!important;border:0!important;border-radius:15px!important}
.rtp-feed-comments textarea{width:100%;min-height:74px;padding:11px 13px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);color:var(--rtp-text);resize:vertical}
.rtp-feed-comments input[type="submit"]{border:0;border-radius:10px;padding:9px 14px;background:var(--rtp-primary);color:#fff;font-weight:850;cursor:pointer}
.rtp-composer-shell{margin-bottom:18px;padding:18px;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:22px;box-shadow:var(--rtp-shadow)}
.rtp-composer-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.rtp-composer-avatar{width:48px;height:48px;flex:0 0 48px}.rtp-composer-avatar img{width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover}
.rtp-composer-heading strong{display:block;font-size:.94rem}.rtp-composer-heading span{display:block;margin-top:1px;color:var(--rtp-muted);font-size:.78rem;font-weight:650}
.rtp-composer-shell .activity-update-form{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.rtp-composer-shell #whats-new-textarea textarea,.rtp-composer-shell textarea{border-radius:14px!important;background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;border:1px solid transparent!important}
.rtp-composer-shell #whats-new-textarea textarea:focus,.rtp-composer-shell textarea:focus{border-color:color-mix(in srgb,var(--rtp-primary) 55%,var(--rtp-line))!important;outline:0!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--rtp-primary) 12%,transparent)!important}
.rtp-composer-shell input[type="submit"],.rtp-composer-shell button[type="submit"]{border:0!important;border-radius:12px!important;background:var(--rtp-primary)!important;color:#fff!important;font-weight:900!important;box-shadow:none!important}
#buddypress .activity-list .load-more{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:center}
#buddypress .activity-list .load-more a{display:inline-flex;padding:11px 18px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);font-weight:850;color:var(--rtp-text)}
@media(max-width:640px){#buddypress .activity-list .rtp-activity-card{grid-template-columns:48px minmax(0,1fr);column-gap:10px;padding:15px!important;border-radius:18px!important}.rtp-feed-avatar-wrap{width:46px!important}.rtp-feed-avatar-link{width:46px;height:46px}.rtp-feed-header{min-height:46px;padding-top:0!important;font-size:.8rem}.rtp-feed-rank{min-width:21px;height:21px;font-size:.6rem;border-width:2px}.rtp-feed-comments{grid-column:1/-1}.rtp-feed-actions .activity-meta{gap:3px}.rtp-feed-actions .activity-meta a,.rtp-feed-actions .activity-meta button{padding:7px 8px!important}.rtp-composer-shell{padding:14px;border-radius:18px}.rtp-composer-heading span{display:none}}

/* RT Platform 1.3 — Members Directory */
#buddypress .rtp-members-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;list-style:none!important;margin:0!important;padding:0!important}
#buddypress .rtp-members-grid>li.rtp-member-card{width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.rtp-member-card-inner{height:100%;overflow:hidden;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:22px;box-shadow:var(--rtp-shadow);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.rtp-member-card-inner:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--rtp-primary) 28%,var(--rtp-line));box-shadow:0 20px 52px rgba(29,38,68,.13)}
.rtp-member-cover{display:block;height:84px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 78%,#25214b),var(--rtp-primary-2) 58%,var(--rtp-success));position:relative;overflow:hidden}
.rtp-member-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 38%),linear-gradient(180deg,transparent,rgba(0,0,0,.08))}
.rtp-member-avatar-zone{height:48px;display:flex;justify-content:center;position:relative}
.rtp-member-avatar{--rtp-progress:0%;position:absolute;top:-56px;width:108px;height:108px;padding:4px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.rtp-member-avatar:before{content:"";position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(color-mix(in srgb,var(--rtp-primary) 18%,transparent) var(--rtp-progress),transparent 0);filter:blur(6px);z-index:-1}
.rtp-member-avatar-ring{display:block;width:100%;height:100%;padding:4px;border-radius:50%;background:var(--rtp-surface)}
.rtp-member-avatar-ring img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;border-radius:50%!important;margin:0!important;float:none!important}
.rtp-member-rank-number{position:absolute;right:-2px;bottom:3px;min-width:29px;height:29px;padding:0 6px;display:grid;place-items:center;border:3px solid var(--rtp-surface);border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.73rem;font-weight:950;line-height:1}
.rtp-member-info{padding:8px 18px 18px;text-align:center}
.rtp-member-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--rtp-text)!important;font-size:1.05rem;font-weight:900;letter-spacing:-.02em}
.rtp-member-rank-name{display:block;margin-top:3px;color:var(--rtp-primary);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
.rtp-member-update{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;margin:12px 0 0;color:var(--rtp-muted);font-size:.78rem;line-height:1.45}
.rtp-member-update a{color:inherit!important;font-weight:700!important}.rtp-member-update p{margin:0}
.rtp-member-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:15px 0 10px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2);overflow:hidden}
.rtp-member-stats>div{padding:10px 5px}.rtp-member-stats>div+div{border-left:1px solid var(--rtp-line)}
.rtp-member-stats strong{display:block;color:var(--rtp-text);font-size:.92rem}.rtp-member-stats span{display:block;margin-top:1px;color:var(--rtp-muted);font-size:.58rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em}
.rtp-member-meta{min-height:21px;margin-bottom:12px;color:var(--rtp-muted);font-size:.7rem;font-weight:700}
.rtp-member-actions{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
.rtp-member-view{width:100%;min-height:38px;padding:0 12px;font-size:.75rem}
.rtp-member-bp-buttons{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:40px}
.rtp-member-bp-buttons .generic-button{margin:0!important}.rtp-member-bp-buttons .generic-button a,.rtp-member-bp-buttons a.friendship-button,.rtp-member-bp-buttons a.message-button{min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:7px 10px!important;border-radius:11px!important;font-size:.7rem!important;line-height:1!important;white-space:nowrap}
#buddypress .members-type-navs,#buddypress .members-directory-wrapper .subnav-filters{border-radius:16px}
#buddypress .subnav-filters{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 0}
#buddypress .subnav-filters select,#buddypress .subnav-filters input[type="search"],#buddypress .subnav-filters input[type="text"]{min-height:42px;border:1px solid var(--rtp-line)!important;border-radius:12px!important;background:var(--rtp-surface)!important;color:var(--rtp-text)!important;padding:8px 12px!important;box-shadow:none!important}
#buddypress .subnav-filters button,#buddypress .subnav-filters input[type="submit"]{min-height:42px;border:0!important;border-radius:12px!important;background:var(--rtp-primary)!important;color:#fff!important;font-weight:850!important}
.rtp-empty-state{padding:30px!important;text-align:center}
@media(max-width:980px){#buddypress .rtp-members-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#buddypress .rtp-members-grid{grid-template-columns:1fr;gap:14px}.rtp-member-card-inner{border-radius:18px}.rtp-member-cover{height:74px}.rtp-member-info{padding-left:14px;padding-right:14px}.rtp-member-actions{grid-template-columns:1fr}.rtp-member-bp-buttons{justify-content:center}.rtp-member-bp-buttons .generic-button,.rtp-member-bp-buttons .generic-button a{width:100%}}

/* ==========================================================
   RT Platform 2.0 — Stability / BuddyPress mobile reset
   ========================================================== */
#buddypress .activity-list .rtp-activity-card{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:0 14px!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
#buddypress .activity-list .rtp-activity-card>.activity-content,
#buddypress .activity-list .rtp-activity-card .rtp-feed-content{float:none!important;clear:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
#buddypress .activity-list .rtp-activity-card .activity-header,
#buddypress .activity-list .rtp-activity-card .activity-inner,
#buddypress .activity-list .rtp-activity-card .activity-inner p,
#buddypress .activity-list .rtp-activity-card .rtp-feed-body{float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
#buddypress .activity-list .rtp-activity-card .activity-header p{margin:0!important;display:inline!important}
#buddypress .activity-list .rtp-activity-card .activity-header a{display:inline!important}
#buddypress .activity-list .rtp-activity-card .activity-inner{padding:12px 0!important;font-size:.96rem!important;line-height:1.6!important}
#buddypress .activity-list .rtp-activity-card .rtp-feed-actions{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
#buddypress .activity-list .rtp-activity-card .activity-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;width:100%!important;margin:0!important;padding:0!important}
#buddypress .activity-list .rtp-activity-card .activity-meta .generic-button{float:none!important;width:auto!important;margin:0!important}
#buddypress .activity-list .rtp-activity-card .activity-comments{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important}
#buddypress .activity-list .rtp-activity-card iframe,#buddypress .activity-list .rtp-activity-card video{max-width:100%!important}
@media(max-width:640px){
  .rtp-main{padding-top:18px!important}.rtp-topbar{height:70px;padding:0 18px;grid-template-columns:1fr auto}.rtp-brand>span:last-child,.rtp-desktop-nav{display:none}.rtp-brand-mark{width:42px;height:42px}.rtp-top-actions{gap:7px}.rtp-top-actions .rtp-count-button{display:none}.rtp-icon-button{width:42px;height:42px}
  #buddypress .bp-wrap{width:min(100% - 20px,1180px)!important}
  #buddypress .activity-list .rtp-activity-card{grid-template-columns:50px minmax(0,1fr)!important;column-gap:10px!important;padding:14px!important;width:100%!important}
  #buddypress .activity-list .rtp-activity-card .rtp-feed-content{grid-column:2!important}
  #buddypress .activity-list .rtp-activity-card .rtp-feed-comments{grid-column:1/-1!important;margin-top:12px!important}
  #buddypress .activity-list .rtp-activity-card .activity-header{font-size:.82rem!important;line-height:1.45!important;padding:0!important}
  #buddypress .activity-list .rtp-activity-card .activity-inner{font-size:.94rem!important;line-height:1.55!important;padding-top:10px!important}
  #buddypress .activity-list .rtp-activity-card .activity-meta{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:2px!important}
  #buddypress .activity-list .rtp-activity-card .activity-meta a,#buddypress .activity-list .rtp-activity-card .activity-meta button{white-space:nowrap!important;flex:0 0 auto!important}
}

/* Top notifications */
.rtp-count-button{position:relative}.rtp-count-button b{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border:2px solid var(--rtp-surface);border-radius:999px;background:#ef476f;color:#fff;font-size:.62rem;display:grid;place-items:center}

/* Groups */
#buddypress .rtp-groups-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;list-style:none!important;margin:0!important;padding:0!important}
#buddypress .rtp-groups-grid>li{width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.rtp-group-card article{height:100%;overflow:hidden;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:22px;box-shadow:var(--rtp-shadow)}.rtp-group-cover{display:block;height:92px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2),var(--rtp-success))}.rtp-group-avatar{height:38px;text-align:center;position:relative}.rtp-group-avatar a{position:absolute;left:50%;top:-48px;transform:translateX(-50%);padding:4px;border-radius:50%;background:var(--rtp-surface)}.rtp-group-avatar img{display:block!important;width:88px!important;height:88px!important;border-radius:50%!important;object-fit:cover}.rtp-group-info{padding:9px 18px 18px;text-align:center}.rtp-group-name{display:block;font-size:1.05rem;font-weight:900}.rtp-group-meta{margin-top:4px;color:var(--rtp-primary);font-size:.7rem;font-weight:850}.rtp-group-desc{min-height:48px;margin-top:11px;color:var(--rtp-muted);font-size:.78rem}.rtp-group-actions{margin-top:14px}.rtp-group-actions a{display:inline-flex!important;justify-content:center!important;min-height:38px!important;padding:8px 13px!important;border-radius:11px!important;background:var(--rtp-surface-2)!important;border:1px solid var(--rtp-line)!important;color:var(--rtp-text)!important;font-size:.72rem!important;font-weight:850!important}
@media(max-width:980px){#buddypress .rtp-groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#buddypress .rtp-groups-grid{grid-template-columns:1fr}}

/* BuddyPress messages + notifications */
#buddypress .bp-messages-wrap,#buddypress .notifications-options-nav,#buddypress .notifications,.bp-messages-wrap{background:var(--rtp-surface)!important;color:var(--rtp-text)!important;border-color:var(--rtp-line)!important;border-radius:18px!important;box-shadow:var(--rtp-shadow)!important;overflow:hidden}
#buddypress table.notifications{width:100%;border-collapse:collapse}#buddypress table.notifications th,#buddypress table.notifications td{padding:13px 12px!important;border-color:var(--rtp-line)!important;color:var(--rtp-text)!important}#buddypress table.notifications tr:hover td{background:var(--rtp-surface-2)!important}
#buddypress .message-action-star,#buddypress .message-action-delete{border-radius:9px!important}#buddypress .bp-messages-wrap .threads-list .thread-item{border-color:var(--rtp-line)!important}#buddypress .bp-messages-wrap .threads-list .thread-item:hover{background:var(--rtp-surface-2)!important}
#buddypress .bp-messages-wrap input,#buddypress .bp-messages-wrap textarea,#buddypress .bp-messages-wrap select{background:var(--rtp-surface)!important;color:var(--rtp-text)!important;border-color:var(--rtp-line)!important;border-radius:12px!important}
#buddypress .bp-messages-wrap button,#buddypress .bp-messages-wrap input[type=submit]{border-radius:11px!important}
@media(max-width:640px){#buddypress table.notifications thead{display:none}#buddypress table.notifications tr{display:block;padding:10px;border-bottom:1px solid var(--rtp-line)}#buddypress table.notifications td{display:block!important;width:100%!important;padding:6px!important;border:0!important}}

/* RT Core modules: Truco + Ranking */
.rt-truco-app,.rt-platform-ranking{width:min(1180px,calc(100% - 32px));margin:0 auto}.rt-truco-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:clamp(24px,5vw,48px);margin-bottom:18px;border-radius:28px;background:linear-gradient(135deg,#30258f,#665cff 58%,#19bca0);color:#fff;box-shadow:var(--rtp-shadow);overflow:hidden;position:relative}.rt-truco-hero:after{content:"";position:absolute;width:320px;height:320px;right:-100px;top:-170px;border-radius:50%;background:rgba(255,255,255,.12)}.rt-truco-hero h1{margin:4px 0 8px;font-size:clamp(2.2rem,6vw,4.7rem);line-height:.95;letter-spacing:-.055em}.rt-truco-hero p{max-width:660px;margin:0;opacity:.87}.rt-truco-level{position:relative;z-index:1;flex:0 0 128px;width:128px;height:128px;display:grid;place-items:center;align-content:center;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(10px)}.rt-truco-level strong{font-size:2.6rem;line-height:1}.rt-truco-level span,.rt-truco-level small{font-weight:850;opacity:.84}.rt-truco-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.rt-truco-stats>div,.rt-module-card{background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:20px;box-shadow:var(--rtp-shadow)}.rt-truco-stats>div{padding:18px;text-align:center}.rt-truco-stats strong{display:block;font-size:1.55rem}.rt-truco-stats span{color:var(--rtp-muted);font-size:.7rem;font-weight:850;text-transform:uppercase}.rt-progress{height:8px;margin:-3px 0 20px;border-radius:999px;background:var(--rtp-surface-2);overflow:hidden}.rt-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--rtp-primary),var(--rtp-success))}.rt-truco-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-bottom:18px}.rt-module-card{padding:22px}.rt-module-card h1,.rt-module-card h2{margin-top:0}.rt-module-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.rt-module-head a{color:var(--rtp-primary);font-size:.78rem;font-weight:850}.rt-ranking-list{display:grid;gap:8px}.rt-ranking-row{display:grid;grid-template-columns:35px 42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border-radius:13px;background:var(--rtp-surface-2)}.rt-ranking-row>b{color:var(--rtp-primary)}.rt-ranking-row img{width:42px;height:42px;border-radius:50%;object-fit:cover}.rt-ranking-row span{min-width:0}.rt-ranking-row span strong,.rt-ranking-row span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-ranking-row span small{color:var(--rtp-muted);font-size:.68rem}.rt-ranking-row em{font-style:normal;font-size:.75rem;font-weight:900}.rt-team-card{padding:16px;border-radius:14px;background:var(--rtp-surface-2)}.rt-team-card strong{font-size:1.1rem}.rt-team-card span{display:inline-block;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 13%,transparent);color:var(--rtp-primary);font-size:.68rem;font-weight:900}.rt-team-form{display:grid;gap:10px}.rt-team-form label{display:grid;gap:5px;color:var(--rtp-muted);font-size:.72rem;font-weight:850}.rt-team-form input,.rt-team-form textarea{width:100%;padding:11px 12px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);color:var(--rtp-text)}.rt-team-form button{padding:11px 14px;border:0;border-radius:12px;background:var(--rtp-primary);color:#fff;font-weight:900;cursor:pointer}.rt-content-list{display:grid;gap:8px}.rt-content-list a{display:grid;gap:3px;padding:12px;border-radius:13px;background:var(--rtp-surface-2)}.rt-content-list span{color:var(--rtp-muted);font-size:.75rem}.rt-module-empty,.rt-module-notice{color:var(--rtp-muted)}.rt-module-notice{padding:15px 18px;margin-bottom:18px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface)}.rt-truco-engine{margin-bottom:18px}.rt-ranking-tabs{display:flex;gap:8px;margin-bottom:14px;overflow-x:auto}.rt-ranking-tabs button{padding:10px 15px;border:1px solid var(--rtp-line);border-radius:999px;background:var(--rtp-surface);color:var(--rtp-muted);font-weight:850;white-space:nowrap}.rt-ranking-tabs button.is-active{background:var(--rtp-primary);border-color:var(--rtp-primary);color:#fff}.rt-ranking-tabs button:disabled{opacity:.58}
@media(max-width:760px){.rt-truco-hero{align-items:flex-start}.rt-truco-level{width:92px;height:92px;flex-basis:92px}.rt-truco-level strong{font-size:2rem}.rt-truco-level small{display:none}.rt-truco-stats{grid-template-columns:repeat(2,1fr)}.rt-truco-grid{grid-template-columns:1fr}.rt-ranking-row{grid-template-columns:28px 38px minmax(0,1fr)}.rt-ranking-row em{grid-column:3;color:var(--rtp-primary)}.rt-ranking-row img{width:38px;height:38px}}
@media(max-width:480px){.rt-truco-app,.rt-platform-ranking{width:calc(100% - 20px)}.rt-truco-hero{padding:23px 18px;border-radius:20px}.rt-truco-hero h1{font-size:2.5rem}.rt-truco-level{display:none}.rt-module-card{padding:16px;border-radius:17px}}
.rtp-profile-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.rtp-profile-stats>div:nth-child(n+4){background:color-mix(in srgb,var(--rtp-primary) 4%,var(--rtp-surface))}@media(max-width:760px){.rtp-profile-stats{grid-template-columns:repeat(3,1fr)}.rtp-profile-stats>div:nth-child(4){border-left:0!important}}


/* RT Platform 2.5 — Community identity strip + mobile feed polish */
.rtp-member-stats>div{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:1px}
.rtp-member-stats strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtp-member-stats small{display:block;max-width:100%;margin-top:2px;color:var(--rtp-muted);font-size:.54rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtp-member-stats .rtp-world-state{font-size:.68rem}.rtp-member-stats .rtp-world-state.is-coming{color:var(--rtp-primary)}
@media(max-width:600px){
  body{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  #buddypress .rtp-members-grid{gap:16px}
  .rtp-member-stats>div{padding:11px 4px}
  .rtp-member-stats span{font-size:.54rem}.rtp-member-stats small{font-size:.5rem}
  #buddypress .activity-list .rtp-activity-card{overflow:visible!important}
  #buddypress .activity-list .rtp-activity-card .activity-inner .activity-inner{margin:0!important}
  #buddypress .activity-list .rtp-activity-card .activity-inner .bp-member-preview,
  #buddypress .activity-list .rtp-activity-card .activity-inner .activity-inner>div{max-width:100%!important}
  #buddypress .activity-list .rtp-activity-card .activity-inner img{height:auto!important}
}
.rt-current-campaign{margin-top:16px}.rt-current-campaign .rt-module-head{align-items:flex-end}.rt-current-campaign .rt-module-head>strong{font-size:1.05rem;color:var(--rtp-primary)}.rt-current-campaign p{margin:8px 0 12px;color:var(--rtp-muted);font-size:.86rem}

/* RT Platform 3.0 — Social media, reactions, compact comments, friendship states */
.rtp-feed-comments.is-collapsed>ul,.rtp-feed-comments.is-collapsed>.ac-form,.rtp-feed-comments.is-collapsed>form{display:none!important}
.rtp-feed-comments.is-collapsed{padding-top:0!important;border-top:0!important;margin-top:0!important}
.rtp-comments-toggle{display:inline-flex;align-items:center;margin-top:9px;padding:5px 0;border:0;background:transparent;color:var(--rtp-primary);font-weight:850;font-size:.76rem;cursor:pointer}
.rtp-comments-toggle:hover{text-decoration:underline}
.rtp-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0 7px}.rtp-reaction{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:4px 8px;border:1px solid var(--rtp-line);border-radius:999px;background:var(--rtp-surface);color:var(--rtp-muted);cursor:pointer;transition:.16s ease}.rtp-reaction span{font-size:1rem;line-height:1}.rtp-reaction small{font-size:.68rem;font-weight:850}.rtp-reaction:hover,.rtp-reaction.is-active{border-color:color-mix(in srgb,var(--rtp-primary) 45%,var(--rtp-line));background:color-mix(in srgb,var(--rtp-primary) 9%,var(--rtp-surface));color:var(--rtp-primary)}.rtp-reaction:disabled{opacity:.55}
.rtp-composer-media{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.rtp-composer-media small{color:var(--rtp-muted);font-size:.68rem}.rtp-media-add{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--rtp-line);border-radius:11px;background:var(--rtp-surface-2);font-size:.76rem;font-weight:850;cursor:pointer}.rtp-media-add:hover{color:var(--rtp-primary);border-color:color-mix(in srgb,var(--rtp-primary) 40%,var(--rtp-line))}.rtp-media-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.rtp-media-preview-item{position:relative;aspect-ratio:1.25;border-radius:12px;overflow:hidden;background:var(--rtp-surface-2);display:grid;place-items:center;color:var(--rtp-muted);font-size:.7rem}.rtp-media-preview-item img{width:100%;height:100%;object-fit:cover}.rtp-media-preview-item button{position:absolute;right:6px;top:6px;width:27px;height:27px;border:0;border-radius:50%;background:rgba(10,12,18,.74);color:#fff;font-size:1.1rem;line-height:1;cursor:pointer}.rtp-media-preview-item.is-error{padding:8px;color:#c83a4d}
.rtp-activity-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0 12px;overflow:hidden;border-radius:16px}.rtp-activity-media.rtp-media-count-1{grid-template-columns:1fr}.rtp-activity-media.rtp-media-count-3 .rtp-media-item:first-child{grid-row:span 2}.rtp-media-item{display:block;min-height:170px;background:var(--rtp-surface-2);overflow:hidden}.rtp-media-item img{display:block!important;width:100%!important;height:100%!important;min-height:170px!important;max-height:420px!important;object-fit:cover!important;margin:0!important;border-radius:0!important}.rtp-activity-media.rtp-media-count-1 .rtp-media-item img{max-height:620px!important;object-fit:contain!important;background:var(--rtp-surface-2)}
.rtp-lightbox{position:fixed;inset:0;z-index:99999;display:none;place-items:center;padding:24px;background:rgba(8,10,16,.91);backdrop-filter:blur(8px)}.rtp-lightbox.is-open{display:grid}.rtp-lightbox img{max-width:min(1200px,96vw);max-height:90vh;object-fit:contain;border-radius:14px}.rtp-lightbox button{position:absolute;right:18px;top:18px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:1.7rem;cursor:pointer}
.rtp-member-photos{padding:20px;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:22px;box-shadow:var(--rtp-shadow)}.rtp-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.rtp-photo-tile{aspect-ratio:1;overflow:hidden;border-radius:13px;background:var(--rtp-surface-2)}.rtp-photo-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.rtp-photo-tile:hover img{transform:scale(1.035)}
/* Friendship buttons: clear primary/secondary states */
#buddypress .rtp-member-bp-buttons .friendship-button a,#buddypress .rtp-member-bp-buttons a.friendship-button{border:1px solid var(--rtp-primary)!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;box-shadow:0 8px 18px rgba(100,92,255,.2)!important}
#buddypress .rtp-member-bp-buttons .friendship-button.is_friend a,#buddypress .rtp-member-bp-buttons .friendship-button.pending a,#buddypress .rtp-member-bp-buttons .friendship-button.requested a,#buddypress .rtp-member-bp-buttons a.remove,#buddypress .rtp-member-bp-buttons a.pending_friend,#buddypress .rtp-member-bp-buttons a.requested{background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;border-color:var(--rtp-line)!important;box-shadow:none!important}
#buddypress .rtp-member-bp-buttons .friendship-button.pending a:hover,#buddypress .rtp-member-bp-buttons .friendship-button.requested a:hover,#buddypress .rtp-member-bp-buttons a.remove:hover{background:color-mix(in srgb,#e64b61 10%,var(--rtp-surface))!important;color:#d73b52!important;border-color:color-mix(in srgb,#e64b61 45%,var(--rtp-line))!important}
@media(max-width:700px){.rtp-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rtp-activity-media{border-radius:13px}.rtp-media-item,.rtp-media-item img{min-height:130px!important}.rtp-reactions{gap:4px}.rtp-reaction{padding:4px 7px}.rtp-media-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.rtp-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rtp-composer-media small{width:100%}}

/* Truco competitive lobby + history */
.rt-live-dot{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--rtp-success) 12%,var(--rtp-surface));color:var(--rtp-success);font-size:.68rem;font-weight:900}.rt-live-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.rt-team-form select{width:100%;padding:11px 12px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);color:var(--rtp-text)}.rt-challenge-list,.rt-history-list{display:grid;gap:8px}.rt-challenge-row{display:flex;justify-content:space-between;gap:12px;padding:12px;border-radius:14px;background:var(--rtp-surface-2)}.rt-challenge-row strong,.rt-challenge-row small{display:block}.rt-challenge-row small{color:var(--rtp-muted);font-size:.68rem}.rt-challenge-row p{margin:5px 0 0;color:var(--rtp-muted);font-size:.76rem}.rt-challenge-actions{display:flex;align-items:center;gap:5px}.rt-inline-form{margin:0}.rt-inline-form button{padding:7px 10px;border:1px solid var(--rtp-line);border-radius:9px;background:var(--rtp-surface);color:var(--rtp-text);font-size:.68rem;font-weight:850;cursor:pointer}.rt-inline-form .rt-challenge-accepted{background:var(--rtp-primary);border-color:var(--rtp-primary);color:#fff}.rt-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto 80px;align-items:center;gap:10px;padding:11px 12px;border-radius:13px;background:var(--rtp-surface-2)}.rt-history-row span strong,.rt-history-row span small{display:block}.rt-history-row span small{color:var(--rtp-muted);font-size:.65rem}.rt-history-row b{font-size:1.05rem}.rt-history-row em{font-style:normal;font-size:.68rem;font-weight:900;text-align:right}.rt-history-row.is-win em{color:var(--rtp-success)}.rt-history-row.is-loss em{color:#d94b61}.rt-history-row.is-draw em{color:var(--rtp-muted)}@media(max-width:560px){.rt-challenge-row{display:grid}.rt-challenge-actions{justify-content:flex-start}.rt-history-row{grid-template-columns:minmax(0,1fr) auto}.rt-history-row em{grid-column:1/-1;text-align:left}}

/* RT Platform 4.0 — polished social controls, search/filter surfaces, fast-media feedback */
#buddypress .rtp-reactions{display:flex!important;align-items:center!important;gap:7px!important;width:max-content;max-width:100%;padding:5px!important;margin:8px 0 10px!important;border:1px solid var(--rtp-line)!important;border-radius:999px!important;background:var(--rtp-surface-2)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)!important;overflow-x:auto;scrollbar-width:none}
#buddypress .rtp-reactions::-webkit-scrollbar{display:none}
#buddypress button.rtp-reaction{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:auto!important;width:auto!important;height:34px!important;min-height:34px!important;padding:0 10px!important;margin:0!important;border:1px solid transparent!important;border-radius:999px!important;background:transparent!important;color:var(--rtp-muted)!important;box-shadow:none!important;font:inherit!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;transform:none!important}
#buddypress button.rtp-reaction span{font-size:1rem!important;filter:saturate(.96)}
#buddypress button.rtp-reaction small{font-size:.7rem!important;font-weight:900!important;color:inherit!important;margin:0!important}
#buddypress button.rtp-reaction:hover,#buddypress button.rtp-reaction.is-active{background:var(--rtp-surface)!important;border-color:color-mix(in srgb,var(--rtp-primary) 24%,var(--rtp-line))!important;color:var(--rtp-primary)!important;box-shadow:0 5px 14px rgba(36,32,74,.07)!important}
#buddypress button.rtp-reaction.is-active{background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface))!important}

#buddypress .rtp-feed-actions{padding:10px 0 0!important;margin-top:4px!important;border-top:1px solid var(--rtp-line)!important;overflow:visible!important}
#buddypress .rtp-feed-actions .activity-meta{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;gap:6px!important;width:100%!important}
#buddypress .rtp-feed-actions .activity-meta>a,#buddypress .rtp-feed-actions .activity-meta>button,#buddypress .rtp-feed-actions .generic-button>a{min-height:40px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:var(--rtp-muted)!important;font-size:.76rem!important;font-weight:850!important;text-decoration:none!important;box-shadow:none!important;justify-content:center!important;white-space:nowrap!important}
#buddypress .rtp-feed-actions .activity-meta>a:hover,#buddypress .rtp-feed-actions .activity-meta>button:hover{background:var(--rtp-surface-2)!important;border-color:var(--rtp-line)!important;color:var(--rtp-primary)!important}
#buddypress .rtp-feed-actions .acomment-reply:before{content:'💬';margin-right:6px;font-size:.9rem}
#buddypress .rtp-feed-actions .fav:before,#buddypress .rtp-feed-actions .unfav:before{content:'☆';margin-right:6px;font-size:1rem;line-height:1}
#buddypress .rtp-feed-actions .unfav:before{content:'★';color:var(--rtp-primary)}
#buddypress .rtp-feed-actions .delete-activity:before{content:'⌫';margin-right:6px;font-size:1rem}
#buddypress .rtp-feed-actions .delete-activity:hover{color:#d74758!important;background:color-mix(in srgb,#e64b61 8%,var(--rtp-surface))!important;border-color:color-mix(in srgb,#e64b61 20%,var(--rtp-line))!important}

/* BuddyPress directory/activity search and filter shell */
#buddypress .subnav-filters,#buddypress .activity-type-tabs+#subnav,#buddypress .bp-dir-search-form,#buddypress .dir-search{position:relative}
#buddypress .subnav-filters{padding:12px!important;margin:12px 0 18px!important;border:1px solid var(--rtp-line)!important;border-radius:18px!important;background:var(--rtp-surface)!important;box-shadow:0 10px 30px rgba(28,24,62,.05)!important}
#buddypress .subnav-filters .feed,#buddypress .subnav-filters .component-filters,#buddypress .subnav-filters .last,#buddypress .subnav-filters .user-messages-search{margin:0!important}
#buddypress .subnav-filters form,#buddypress .dir-search form,#buddypress .bp-dir-search-form{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#buddypress .subnav-filters input[type="search"],#buddypress .subnav-filters input[type="text"],#buddypress .dir-search input[type="search"],#buddypress .dir-search input[type="text"],#buddypress .bp-dir-search-form input[type="search"],#buddypress .bp-dir-search-form input[type="text"]{width:min(100%,520px)!important;min-height:46px!important;padding:10px 14px 10px 16px!important;border:1px solid var(--rtp-line)!important;border-radius:14px!important;background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;font-size:.88rem!important;outline:0!important;box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important}
#buddypress .subnav-filters input:focus,#buddypress .dir-search input:focus,#buddypress .bp-dir-search-form input:focus{background:var(--rtp-surface)!important;border-color:color-mix(in srgb,var(--rtp-primary) 52%,var(--rtp-line))!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--rtp-primary) 10%,transparent)!important}
#buddypress .subnav-filters select,#buddypress .component-filters select,#buddypress .filter select{appearance:none!important;-webkit-appearance:none!important;min-height:46px!important;padding:9px 42px 9px 14px!important;border:1px solid var(--rtp-line)!important;border-radius:14px!important;background-color:var(--rtp-surface-2)!important;background-image:linear-gradient(45deg,transparent 50%,var(--rtp-muted) 50%),linear-gradient(135deg,var(--rtp-muted) 50%,transparent 50%)!important;background-position:calc(100% - 17px) 20px,calc(100% - 12px) 20px!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;color:var(--rtp-text)!important;font-size:.8rem!important;font-weight:800!important;box-shadow:none!important}
#buddypress .subnav-filters button[type="submit"],#buddypress .dir-search button,#buddypress .bp-dir-search-form button,#buddypress .subnav-filters input[type="submit"]{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;box-shadow:0 8px 18px rgba(100,92,255,.18)!important;display:grid!important;place-items:center!important}
#buddypress .subnav-filters button[type="submit"] span,#buddypress .dir-search button span{margin:0!important}
#buddypress .members-directory-wrapper .subnav-filters,#buddypress .groups-directory-wrapper .subnav-filters{background:linear-gradient(180deg,var(--rtp-surface),color-mix(in srgb,var(--rtp-primary) 2%,var(--rtp-surface)))!important}

/* Fast upload status: instant local preview, compact overlay */
.rtp-media-preview-item.is-loading:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(10,12,18,.68));pointer-events:none}
.rtp-upload-status{position:absolute;z-index:2;left:8px;right:8px;bottom:8px;color:#fff;font-size:.65rem;font-weight:850;text-align:left;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.rtp-media-preview-item.is-loading img{opacity:.92!important;filter:none!important}

/* Custom destructive confirmation */
body.rtp-modal-open{overflow:hidden}
.rtp-confirm-modal[hidden]{display:none!important}.rtp-confirm-modal{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:22px}.rtp-confirm-backdrop{position:absolute;inset:0;background:rgba(12,13,22,.58);backdrop-filter:blur(5px)}.rtp-confirm-card{position:relative;width:min(390px,100%);padding:25px;border:1px solid color-mix(in srgb,var(--rtp-line) 75%,transparent);border-radius:24px;background:var(--rtp-surface);color:var(--rtp-text);box-shadow:0 30px 90px rgba(0,0,0,.28);text-align:center}.rtp-confirm-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 13px;border-radius:50%;background:color-mix(in srgb,#e64b61 12%,var(--rtp-surface));color:#d74758;font-size:1.3rem;font-weight:950}.rtp-confirm-card h3{margin:0 0 7px;font-size:1.15rem}.rtp-confirm-card p{margin:0;color:var(--rtp-muted);font-size:.82rem}.rtp-confirm-card>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.rtp-confirm-card button{min-height:43px;border-radius:12px;border:1px solid var(--rtp-line);font-weight:900;cursor:pointer}.rtp-confirm-cancel{background:var(--rtp-surface-2);color:var(--rtp-text)}.rtp-confirm-delete{background:#d74758;color:#fff;border-color:#d74758!important}

/* Community actions + Truco challenge */
#buddypress .rtp-member-bp-buttons{align-items:center!important;gap:7px!important}.rt-community-challenge{margin:0!important}.rt-community-challenge .rt-truco-challenge-btn{min-height:38px!important;padding:8px 11px!important;border:1px solid color-mix(in srgb,var(--rtp-primary) 35%,var(--rtp-line))!important;border-radius:11px!important;background:color-mix(in srgb,var(--rtp-primary) 9%,var(--rtp-surface))!important;color:var(--rtp-primary)!important;font-size:.7rem!important;font-weight:900!important;box-shadow:none!important;cursor:pointer}

/* Truco lobby rooms */
.rt-room-list{display:grid;gap:8px}.rt-room-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:14px;background:var(--rtp-surface-2)}.rt-room-row strong,.rt-room-row small{display:block}.rt-room-row small{margin-top:2px;color:var(--rtp-muted);font-size:.68rem}.rt-room-actions{display:flex;align-items:center;gap:7px}.rt-room-status{font-size:.68rem;font-weight:850;color:var(--rtp-muted)}.rt-room-join{background:var(--rtp-primary)!important;color:#fff!important;border-color:var(--rtp-primary)!important}.rt-room-create{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.rt-room-create select{min-height:42px;border:1px solid var(--rtp-line);border-radius:11px;background:var(--rtp-surface);color:var(--rtp-text);padding:8px 12px}.rt-room-create button{min-height:42px;border:0;border-radius:11px;background:var(--rtp-primary);color:#fff;padding:8px 14px;font-weight:900;cursor:pointer}

@media(max-width:700px){
  #buddypress .rtp-reactions{width:100%!important;border-radius:14px!important;padding:4px!important;gap:3px!important}
  #buddypress button.rtp-reaction{flex:0 0 auto!important;padding:0 8px!important}
  #buddypress .rtp-feed-actions .activity-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #buddypress .rtp-feed-actions .activity-meta>a,#buddypress .rtp-feed-actions .activity-meta>button{font-size:.69rem!important;padding:7px 5px!important}
  #buddypress .subnav-filters{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;border-radius:16px!important}
  #buddypress .subnav-filters>div,#buddypress .subnav-filters form,#buddypress .dir-search,#buddypress .dir-search form{width:100%!important}
  #buddypress .subnav-filters input[type="search"],#buddypress .subnav-filters input[type="text"],#buddypress .dir-search input[type="search"],#buddypress .dir-search input[type="text"],#buddypress .subnav-filters select{width:100%!important;max-width:none!important}
  .rt-room-row{display:grid}.rt-room-actions{justify-content:space-between}.rt-room-create{grid-template-columns:1fr}
}

/* RT Platform 4.1 — lobby feedback */
.rt-room-toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));z-index:99999;max-width:min(88vw,420px);transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 16px;border-radius:999px;background:var(--rtp-text);color:var(--rtp-surface);font-weight:800;font-size:.82rem;box-shadow:0 12px 34px rgba(31,35,55,.18);transition:opacity .18s ease,transform .18s ease}.rt-room-toast.is-show{opacity:1;transform:translate(-50%,0)}.rt-room-toast.is-error{background:#b42318;color:#fff}.rt-room-create button:disabled,.rt-room-actions button:disabled{opacity:.65;cursor:wait}

/* RT Platform 5.0 — Nuestro Truco table */
.rt-active-game{overflow:hidden}.rt-truco-table{border:1px solid var(--rtp-line);border-radius:22px;background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--rtp-primary) 13%,transparent),transparent 40%),linear-gradient(180deg,color-mix(in srgb,#0d5e3a 90%,var(--rtp-surface)),color-mix(in srgb,#073923 92%,var(--rtp-surface)));padding:14px;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.rt-table-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:rgba(7,20,16,.38);backdrop-filter:blur(8px)}.rt-table-score>div{display:flex;align-items:center;gap:8px}.rt-table-score>div:last-child{justify-content:flex-end}.rt-table-score span{font-size:.72rem;font-weight:800;opacity:.9}.rt-table-score strong{display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;background:#fff;color:#15231d;font-size:1rem}.rt-table-score em{font-size:.66rem;font-style:normal;font-weight:900;opacity:.72;text-align:center}
.rt-opponent-zone,.rt-play-zone{padding:16px 6px}.rt-opponent-zone{display:flex;align-items:center;justify-content:space-between;gap:12px}.rt-player-chip{display:flex;align-items:center;gap:9px}.rt-player-chip img{width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.55)}.rt-player-chip strong,.rt-player-chip small{display:block}.rt-player-chip small{margin-top:2px;font-size:.64rem;opacity:.72}.rt-card-backs{display:flex}.rt-card-backs span{width:31px;height:45px;margin-left:-9px;border:2px solid rgba(255,255,255,.72);border-radius:8px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));box-shadow:0 5px 14px rgba(0,0,0,.22);transform:rotate(2deg)}
.rt-play-zone{display:grid;gap:12px;min-height:180px;align-content:center}.rt-played-row{display:flex;justify-content:center;gap:8px;min-height:44px}.rt-mini-card{display:grid;place-items:center;min-width:72px;max-width:110px;padding:7px 9px;border-radius:9px;background:#fff;color:#1d2621;font-size:.63rem;font-weight:900;box-shadow:0 7px 16px rgba(0,0,0,.18);text-align:center}.rt-table-badge{justify-self:center;padding:6px 11px;border-radius:999px;background:rgba(0,0,0,.24);font-size:.63rem;font-weight:900;letter-spacing:.03em}
.rt-my-cards{display:flex;justify-content:center;align-items:flex-end;gap:8px;margin:4px 0 14px}.rt-truco-card{width:min(28vw,112px);aspect-ratio:.69;border:0;border-radius:14px;background:linear-gradient(180deg,#fff,#f3f0e9);color:#1d2621;box-shadow:0 12px 22px rgba(0,0,0,.26);cursor:pointer;transition:transform .14s ease,opacity .14s ease,box-shadow .14s ease}.rt-truco-card:hover:not(:disabled){transform:translateY(-7px);box-shadow:0 17px 28px rgba(0,0,0,.3)}.rt-truco-card span{display:block;font-size:1.65rem;font-weight:950;line-height:1}.rt-truco-card small{display:block;margin-top:8px;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.rt-truco-card:disabled{cursor:not-allowed;opacity:.54}.rt-truco-card.is-used{opacity:.18;transform:scale(.94)}
.rt-call-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}.rt-call-bar button,.rt-game-banner button{min-height:38px;padding:8px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:.7rem;font-weight:900;cursor:pointer}.rt-call-bar button.is-primary{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));border-color:transparent}.rt-call-bar button:disabled{opacity:.36;cursor:not-allowed}
.rt-game-banner{margin:0 0 12px;padding:13px;border-radius:15px;background:rgba(255,255,255,.12);text-align:center}.rt-game-banner strong,.rt-game-banner span{display:block}.rt-game-banner span{margin-top:3px;font-size:.7rem;opacity:.8}.rt-game-banner>div{display:flex;justify-content:center;gap:7px;margin-top:10px}.rt-game-banner.is-call{background:color-mix(in srgb,var(--rtp-primary) 36%,rgba(0,0,0,.24))}.rt-game-banner button{background:#fff;color:#1f2230;border-color:#fff}.rt-game-banner button.is-secondary{background:transparent;color:#fff}
.rt-game-log{display:grid;gap:4px;margin-top:12px;padding:10px 12px;border-radius:13px;background:rgba(0,0,0,.22)}.rt-game-log p{margin:0!important;color:rgba(255,255,255,.78)!important;font-size:.64rem!important;line-height:1.35!important}
@media(max-width:700px){.rt-truco-table{margin-inline:-6px;padding:10px;border-radius:18px}.rt-table-score{grid-template-columns:1fr auto 1fr;padding:8px}.rt-table-score span{font-size:.62rem}.rt-table-score strong{min-width:30px;height:30px}.rt-opponent-zone{padding:12px 2px}.rt-play-zone{min-height:145px;padding:10px 2px}.rt-my-cards{gap:6px}.rt-truco-card{width:min(29vw,102px);border-radius:12px}.rt-truco-card span{font-size:1.45rem}.rt-call-bar{gap:5px}.rt-call-bar button{padding:7px 9px;font-size:.62rem}}


/* RT Platform 6.0 — acceso propio */
.rt-auth-shell{width:min(1060px,calc(100% - 28px));margin:28px auto 70px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.8fr);gap:22px;align-items:stretch}.rt-auth-brand,.rt-auth-card{border:1px solid var(--rtp-line);border-radius:28px;background:var(--rtp-surface);box-shadow:0 18px 55px rgba(28,30,47,.07)}.rt-auth-brand{padding:clamp(30px,6vw,70px);display:flex;flex-direction:column;justify-content:center;min-height:520px;background:radial-gradient(circle at 20% 20%,color-mix(in srgb,var(--rtp-primary) 18%,transparent),transparent 34%),linear-gradient(145deg,var(--rtp-surface),var(--rtp-surface-2))}.rt-auth-brand h1{max-width:720px;margin:10px 0 15px;font-size:clamp(2rem,5vw,4rem);line-height:.98;letter-spacing:-.045em}.rt-auth-brand p{max-width:620px;margin:0;color:var(--rtp-muted);font-size:1rem;line-height:1.65}.rt-auth-card{padding:clamp(24px,4vw,42px);align-self:center}.rt-auth-card h2{margin:0 0 20px;font-size:1.65rem}.rt-auth-form{display:grid;gap:13px}.rt-auth-form label{display:grid;gap:7px;color:var(--rtp-muted);font-size:.73rem;font-weight:850}.rt-auth-form input,.rt-auth-form select,.rt-auth-form textarea{width:100%;min-height:48px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2);color:var(--rtp-text);padding:10px 13px;font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.rt-auth-form input:focus,.rt-auth-form select:focus,.rt-auth-form textarea:focus{border-color:color-mix(in srgb,var(--rtp-primary) 60%,var(--rtp-line));box-shadow:0 0 0 4px color-mix(in srgb,var(--rtp-primary) 10%,transparent)}.rt-auth-form .rt-check{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:8px}.rt-auth-form .rt-check input{width:18px;min-height:18px}.rt-auth-form .rtp-btn{min-height:48px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-weight:950;cursor:pointer}.rt-auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.rt-auth-links a{color:var(--rtp-primary);font-size:.78rem;font-weight:850}.rt-auth-notice{margin:0 0 16px;padding:11px 13px;border-radius:13px;font-size:.76rem;font-weight:750}.rt-auth-notice.is-error{background:color-mix(in srgb,#d74758 10%,var(--rtp-surface));color:#b42332;border:1px solid color-mix(in srgb,#d74758 28%,var(--rtp-line))}.rt-auth-notice.is-success{background:color-mix(in srgb,#1d9d62 10%,var(--rtp-surface));color:#137346;border:1px solid color-mix(in srgb,#1d9d62 28%,var(--rtp-line))}.rt-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rt-form-grid .is-wide{grid-column:1/-1}.rt-register-shell{grid-template-columns:minmax(0,.8fr) minmax(480px,1.15fr)}

/* Equipos competitivos */
.rt-team-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.rt-team-stats b{padding:10px;border:1px solid var(--rtp-line);border-radius:13px;background:var(--rtp-surface-2);font-size:.9rem;text-align:center}.rt-team-stats small{display:block;margin-top:3px;color:var(--rtp-muted);font-size:.58rem;font-weight:800}.rt-team-members{display:grid;gap:6px;margin-top:10px}.rt-team-members>span{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 9px;border-radius:12px;background:var(--rtp-surface-2)}.rt-team-members img{border-radius:50%}.rt-team-members strong{font-size:.73rem}.rt-team-members small{color:var(--rtp-muted);font-size:.62rem}.rt-team-invite-form{margin-top:12px}.rt-team-versus{margin-top:14px}.rt-team-challenges{display:grid;gap:8px;margin-top:12px}.rt-team-challenges article{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border-radius:14px;background:var(--rtp-surface-2)}.rt-team-challenges article>div:last-child{display:flex;gap:6px}.rt-team-challenges strong,.rt-team-challenges small{display:block}.rt-team-challenges small{margin-top:3px;color:var(--rtp-muted);font-size:.66rem}.rt-team-challenges button{min-height:36px;border:1px solid var(--rtp-line);border-radius:10px;background:var(--rtp-surface);color:var(--rtp-text);font-weight:850;cursor:pointer}.rt-team-challenge-form{grid-template-columns:1fr auto;align-items:end}.rt-team-challenge-form button{min-height:44px}
@media(max-width:760px){.rt-auth-shell,.rt-register-shell{grid-template-columns:1fr;margin-top:14px}.rt-auth-brand{min-height:auto;padding:28px}.rt-auth-brand h1{font-size:2.25rem}.rt-auth-card{padding:22px}.rt-form-grid{grid-template-columns:1fr}.rt-form-grid .is-wide{grid-column:auto}.rt-team-challenges article{display:grid}.rt-team-challenges article>div:last-child{justify-content:flex-start}.rt-team-challenge-form{grid-template-columns:1fr}}

/* RT Platform 7.0 — navegación social propia */
.rtp-sidebar-toggle{display:none}.rtp-app-body{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - var(--rtp-top))}.rtp-main{min-width:0}.rtp-sidebar{position:sticky;top:var(--rtp-top);align-self:start;height:calc(100vh - var(--rtp-top));padding:18px 14px;display:flex;flex-direction:column;background:var(--rtp-surface);border-right:1px solid var(--rtp-line);z-index:40}.rtp-sidebar-head{display:none}.rtp-sidebar-user{display:flex;align-items:center;gap:10px;margin:0 5px 14px;padding:12px;border:1px solid var(--rtp-line);border-radius:17px;background:var(--rtp-surface-2)}.rtp-sidebar-user img{border-radius:50%;width:44px;height:44px}.rtp-sidebar-user span,.rtp-sidebar-user strong,.rtp-sidebar-user small{display:block;min-width:0}.rtp-sidebar-user strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rtp-sidebar-user small{margin-top:2px;color:var(--rtp-muted);font-size:.62rem;font-weight:700}.rtp-sidebar-nav{display:grid;gap:5px;overflow:auto;padding:2px 5px}.rtp-side-link{display:flex;align-items:center;gap:11px;min-height:50px;padding:7px 9px;border-radius:15px;color:var(--rtp-muted);font-size:.78rem;font-weight:850;transition:.15s ease}.rtp-side-link:hover{background:var(--rtp-surface-2);color:var(--rtp-text);transform:translateX(2px)}.rtp-side-link i{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--rtp-primary) 11%,var(--rtp-surface));color:var(--rtp-primary);font-style:normal}.rtp-side-link i svg{width:19px;height:19px}.rtp-side-link>span{display:block}.rtp-side-link small{display:block;margin-top:1px;font-size:.53rem;color:var(--rtp-primary)}.rtp-side-link.is-soon{opacity:.7;cursor:not-allowed}.rtp-side-link.is-logout{color:#c13b4a}.rtp-side-link.is-logout i{background:color-mix(in srgb,#d74758 10%,var(--rtp-surface));color:#d74758}.rtp-sidebar-foot{margin-top:auto;padding:10px 5px 2px;border-top:1px solid var(--rtp-line)}.rtp-sidebar-backdrop{display:none}.rtp-footer{margin-left:max(248px,calc((100vw - 1180px)/2));width:auto;margin-right:32px}.rtp-main>.rt-auth-shell{max-width:calc(100% - 28px)}
/* Auth pages are part of RT Platform, not WordPress-looking forms */
body.page .rt-auth-shell .rt-auth-brand:before{content:"RT";display:grid;place-items:center;width:58px;height:58px;margin-bottom:22px;border-radius:18px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-size:1.15rem;font-weight:950;box-shadow:0 12px 28px rgba(100,92,255,.26)}
/* Team creation/action feedback */
.rt-team-form button{border:0;border-radius:13px;min-height:44px;padding:0 15px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-weight:900;cursor:pointer}.rt-team-form button:disabled{opacity:.6;cursor:wait}.rt-team-form input,.rt-team-form textarea,.rt-team-form select{border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface-2);color:var(--rtp-text);padding:10px 12px;outline:none}.rt-team-form label{display:grid;gap:6px;color:var(--rtp-muted);font-size:.7rem;font-weight:850}
@media(max-width:1080px){.rtp-app-body{grid-template-columns:84px minmax(0,1fr)}.rtp-sidebar{padding-inline:9px}.rtp-sidebar-user span,.rtp-side-link>span{display:none}.rtp-sidebar-user{justify-content:center;padding:8px}.rtp-side-link{justify-content:center;padding:7px}.rtp-side-link i{flex-basis:40px;width:40px;height:40px}.rtp-footer{margin-left:100px}}
@media(max-width:900px){.rtp-topbar{grid-template-columns:auto 1fr auto;gap:10px}.rtp-sidebar-toggle{display:grid}.rtp-app-body{display:block}.rtp-sidebar{display:flex;position:fixed;top:0;left:0;bottom:0;width:min(86vw,310px);height:100dvh;padding:14px;z-index:1202;transform:translateX(-104%);transition:transform .22s ease;box-shadow:20px 0 55px rgba(0,0,0,.18)}.rtp-sidebar.is-open{transform:translateX(0)}.rtp-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:4px 5px 12px}.rtp-sidebar-head strong{font-size:.9rem}.rtp-sidebar-head button{width:38px;height:38px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);color:var(--rtp-text);display:grid;place-items:center}.rtp-sidebar-head svg{width:19px;height:19px}.rtp-sidebar-user span,.rtp-side-link>span{display:block}.rtp-side-link{justify-content:flex-start}.rtp-sidebar-backdrop{position:fixed;inset:0;z-index:1201;background:rgba(7,9,18,.48);backdrop-filter:blur(3px);opacity:0;pointer-events:none;display:block;transition:opacity .2s ease}.rtp-sidebar-backdrop.is-open{opacity:1;pointer-events:auto}body.rtp-menu-open{overflow:hidden}.rtp-footer{margin-left:auto;margin-right:auto;width:min(1180px,calc(100% - 32px))}}

/* RT Platform 8.0 — access, profile presentation and colorful member navigation */
.rtp-auth-guest-actions{display:flex;align-items:center;gap:8px}.rtp-auth-guest-actions .rtp-btn{min-height:40px;padding:0 14px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:900}.rtp-auth-guest-actions .rtp-btn-ghost{border:1px solid var(--rtp-line);background:var(--rtp-surface);color:var(--rtp-text)}
.rt-auth-symbol{width:74px;height:74px;display:grid;place-items:center;margin-bottom:22px;border-radius:22px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));box-shadow:0 18px 38px color-mix(in srgb,var(--rtp-primary) 25%,transparent);font-size:2rem}.rt-auth-shell.is-compact{grid-template-columns:1fr;max-width:600px}.rt-auth-card p{color:var(--rtp-muted)}
.rtp-profile-showcase{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 8px}.rtp-showcase-card{position:relative;min-width:0;display:flex;align-items:center;gap:12px;padding:15px 16px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface);box-shadow:0 10px 25px rgba(22,26,50,.06);color:var(--rtp-text);overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.rtp-showcase-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--rtp-primary)}.rtp-showcase-card:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(22,26,50,.1);border-color:color-mix(in srgb,var(--rtp-primary) 30%,var(--rtp-line))}.rtp-showcase-card.is-truco{background:linear-gradient(135deg,color-mix(in srgb,#ec4f75 9%,var(--rtp-surface)),var(--rtp-surface))}.rtp-showcase-card.is-truco:before{background:#ec4f75}.rtp-showcase-card.is-world{background:linear-gradient(135deg,color-mix(in srgb,#21a56d 9%,var(--rtp-surface)),var(--rtp-surface))}.rtp-showcase-card.is-world:before{background:#21a56d}.rtp-showcase-card.is-trophies{background:linear-gradient(135deg,color-mix(in srgb,#e7a326 10%,var(--rtp-surface)),var(--rtp-surface))}.rtp-showcase-card.is-trophies:before{background:#e7a326}.rtp-showcase-card.is-soon{opacity:.76}.rtp-showcase-icon{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--rtp-surface);box-shadow:0 7px 18px rgba(0,0,0,.07);font-size:1.35rem}.rtp-showcase-card>span:nth-child(2){min-width:0;display:block}.rtp-showcase-card small,.rtp-showcase-card strong,.rtp-showcase-card em{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rtp-showcase-card small{color:var(--rtp-muted);font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.rtp-showcase-card strong{margin-top:3px;font-size:.85rem}.rtp-showcase-card em{margin-top:3px;color:var(--rtp-muted);font-size:.62rem;font-style:normal}.rtp-showcase-badges{margin-left:auto;display:flex;gap:2px}.rtp-showcase-badges i{font-style:normal;font-size:.9rem}
/* BuddyPress member tabs: colored pills instead of the default flat list. */
body.rtp-is-member #buddypress #item-nav,body.rtp-is-member #buddypress .bp-navs{margin:18px 0;border:0!important;background:transparent!important;box-shadow:none!important}body.rtp-is-member #buddypress #item-nav ul,body.rtp-is-member #buddypress .bp-navs ul{display:flex;gap:8px;overflow-x:auto;padding:6px 2px!important;margin:0!important;scrollbar-width:none}body.rtp-is-member #buddypress #item-nav ul::-webkit-scrollbar,body.rtp-is-member #buddypress .bp-navs ul::-webkit-scrollbar{display:none}body.rtp-is-member #buddypress #item-nav li,body.rtp-is-member #buddypress .bp-navs li{float:none!important;margin:0!important;flex:0 0 auto;border:0!important;background:transparent!important}body.rtp-is-member #buddypress #item-nav li a,body.rtp-is-member #buddypress .bp-navs li a{min-height:42px;display:inline-flex!important;align-items:center;gap:6px;padding:0 14px!important;border:1px solid var(--rtp-line)!important;border-radius:14px!important;background:var(--rtp-surface)!important;color:var(--rtp-muted)!important;font-size:.7rem!important;font-weight:900!important;box-shadow:0 5px 16px rgba(22,26,50,.04);white-space:nowrap}body.rtp-is-member #buddypress #item-nav li.current a,body.rtp-is-member #buddypress #item-nav li.selected a,body.rtp-is-member #buddypress .bp-navs li.current a,body.rtp-is-member #buddypress .bp-navs li.selected a{border-color:transparent!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;box-shadow:0 9px 22px color-mix(in srgb,var(--rtp-primary) 25%,transparent)}body.rtp-is-member #buddypress #item-nav li a span,body.rtp-is-member #buddypress .bp-navs li a span{min-width:20px;height:20px;padding:0 6px!important;display:inline-grid;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface-2));font-size:.58rem!important}body.rtp-is-member #buddypress #item-nav li.current a span,body.rtp-is-member #buddypress .bp-navs li.current a span{background:rgba(255,255,255,.18);color:#fff}
/* Keep the native Truco profile screen aligned with RT cards when opened from the profile nav. */
body.rtp-is-member .rt-truco-profile-card{display:grid;gap:6px;padding:18px;border:1px solid var(--rtp-line);border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,#ec4f75 8%,var(--rtp-surface)),var(--rtp-surface));box-shadow:0 10px 25px rgba(22,26,50,.06)}body.rtp-is-member .rt-truco-profile-card>b{font-size:.9rem}body.rtp-is-member .rt-truco-profile-card>span{color:var(--rtp-muted);font-size:.7rem}body.rtp-is-member .rt-truco-badges{display:flex;gap:6px;margin-top:6px}body.rtp-is-member .rt-truco-badges i{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--rtp-surface);font-style:normal}
@media(max-width:900px){.rtp-profile-showcase{grid-template-columns:1fr}.rtp-auth-guest-actions .rtp-btn{padding-inline:10px}.rtp-auth-guest-actions .rtp-btn-ghost{display:none}}
.rt-native-launch{margin-bottom:18px;background:linear-gradient(135deg,color-mix(in srgb,#ec4f75 8%,var(--rtp-surface)),var(--rtp-surface))}.rt-native-launch .rtp-btn,.rt-truco-engine .rtp-btn{display:inline-flex;margin-top:8px;padding:11px 15px;border-radius:12px}

/* RT Platform 9.0 — definitive member presentation */
.rtp-profile-identity{position:relative;overflow:hidden;margin:0 auto 22px;border:1px solid var(--rtp-line);border-radius:28px;background:linear-gradient(180deg,#0b252d,#0a2027);color:#f4fbfc;box-shadow:0 22px 60px rgba(3,19,25,.22)}
.rtp-profile-banner{height:205px;background:linear-gradient(135deg,#08a8b2,#20c3c4);background-size:cover;background-position:center;position:relative}.rtp-profile-banner:after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:18px 18px;opacity:.45}
.rtp-profile-identity-inner{position:relative;margin-top:-78px;padding:0 28px 28px;display:flex;flex-direction:column;align-items:center}.rtp-profile-avatar-wrap{position:relative;width:172px;height:172px;padding:8px;border-radius:50%;background:conic-gradient(#1ac8cb var(--rtp-progress),#dfe9ec 0);box-shadow:0 0 0 8px #0b252d}.rtp-profile-avatar-ring{width:100%;height:100%;padding:7px;border-radius:50%;background:#0b252d}.rtp-profile-avatar-ring img{display:block!important;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%!important;margin:0!important;float:none!important}.rtp-profile-rank-number{position:absolute;right:-2px;bottom:14px;display:grid;place-items:center;min-width:42px;height:42px;padding:0 7px;border:5px solid #0b252d;border-radius:999px;background:#4f3fc4;color:#fff;font-size:.9rem}.rtp-profile-name-block{text-align:center;margin-top:18px}.rtp-profile-name-block h1{margin:0;font-size:2rem;line-height:1.08;color:#fff}.rtp-profile-handle{margin-top:8px;color:#a7bcc2;font-size:.95rem}.rtp-profile-rank-label{display:inline-block;margin-top:7px;color:#ffc85a;font-size:.72rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.rtp-profile-competition-grid{width:min(760px,100%);display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.rtp-profile-competition-card{min-height:94px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(255,255,255,.035);color:#fff;text-decoration:none}.rtp-profile-competition-card small{color:#a8bcc2;font-size:.65rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.rtp-profile-competition-card strong{margin-top:8px;font-size:1.05rem}.rtp-profile-competition-card em{margin-top:5px;color:#7edbdc;font-size:.67rem;font-style:normal}.rtp-profile-competition-card.is-truco:hover{border-color:rgba(29,207,207,.42);background:rgba(29,207,207,.07)}.rtp-profile-world-cta{width:min(760px,100%);min-height:56px;margin-top:14px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(135deg,#08aab3,#18c5c4);color:#fff!important;text-decoration:none;font-weight:950;box-shadow:0 14px 28px rgba(16,190,193,.16)}.rtp-profile-world-cta.is-disabled{opacity:.72;cursor:not-allowed}.rtp-profile-trophies{width:min(760px,100%);display:flex;justify-content:center;gap:14px;margin-top:22px;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(255,255,255,.025)}.rtp-trophy-orb{width:56px;height:56px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:#092027;font-size:1.35rem;box-shadow:inset 0 0 0 4px rgba(255,255,255,.015)}.rtp-trophy-orb.is-empty{filter:grayscale(1);opacity:.42}.rtp-trophy-orb.is-earned{border-color:rgba(44,214,211,.4);box-shadow:0 0 0 3px rgba(44,214,211,.06)}
body.rtp-is-member #buddypress #item-nav,body.rtp-is-member #buddypress .bp-navs{padding:9px;border:1px solid var(--rtp-line)!important;border-radius:20px!important;background:var(--rtp-surface)!important;box-shadow:0 10px 24px rgba(20,28,45,.05)!important}body.rtp-is-member #buddypress #item-nav ul,body.rtp-is-member #buddypress .bp-navs ul{gap:7px!important}body.rtp-is-member #buddypress #item-nav li a,body.rtp-is-member #buddypress .bp-navs li a{border:0!important;background:var(--rtp-surface-2)!important}body.rtp-is-member #buddypress #item-nav li:nth-child(3n+1) a{color:#4f64d9!important}body.rtp-is-member #buddypress #item-nav li:nth-child(3n+2) a{color:#0e9d91!important}body.rtp-is-member #buddypress #item-nav li:nth-child(3n) a{color:#c27b1d!important}body.rtp-is-member #buddypress #item-nav li.current a,body.rtp-is-member #buddypress #item-nav li.selected a,body.rtp-is-member #buddypress .bp-navs li.current a,body.rtp-is-member #buddypress .bp-navs li.selected a{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important}
@media(max-width:680px){.rtp-profile-banner{height:165px}.rtp-profile-identity-inner{margin-top:-66px;padding-inline:16px}.rtp-profile-avatar-wrap{width:144px;height:144px}.rtp-profile-name-block h1{font-size:1.65rem}.rtp-profile-competition-grid{grid-template-columns:1fr 1fr;gap:10px}.rtp-profile-competition-card{min-height:86px;padding:11px}.rtp-profile-trophies{gap:8px;padding:14px 10px}.rtp-trophy-orb{width:46px;height:46px;font-size:1.1rem}}


/* RT Platform 10 — profile reference lock + accessible social nav */
.rtp-profile-trophy-block{width:min(760px,100%);margin-top:22px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:rgba(255,255,255,.025);overflow:hidden}.rtp-profile-trophy-title{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;border-bottom:1px solid rgba(255,255,255,.07)}.rtp-profile-trophy-title span{font-size:.72rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#f6d575}.rtp-profile-trophy-title small{font-size:.62rem;color:#9fb7bd}.rtp-profile-trophy-block .rtp-profile-trophies{width:auto;margin:0;border:0;border-radius:0;background:transparent}.rtp-profile-competition-card.is-truco{background:linear-gradient(145deg,rgba(24,197,194,.08),rgba(255,255,255,.025))}.rtp-profile-competition-card.is-world{background:linear-gradient(145deg,rgba(100,84,245,.09),rgba(255,255,255,.025))}.rtp-profile-competition-card strong{font-size:1.12rem}.rtp-profile-competition-card small{font-size:.68rem}.rtp-profile-competition-card em{font-size:.7rem}.rtp-profile-world-cta.is-disabled{background:linear-gradient(135deg,#14969f,#1daba8);opacity:.78}
body.rtp-is-member #buddypress #item-nav li:nth-child(4n+1) a,body.rtp-is-member #buddypress .bp-navs li:nth-child(4n+1) a{background:color-mix(in srgb,#6454f5 8%,var(--rtp-surface-2))!important;color:#5a50cc!important}body.rtp-is-member #buddypress #item-nav li:nth-child(4n+2) a,body.rtp-is-member #buddypress .bp-navs li:nth-child(4n+2) a{background:color-mix(in srgb,#16b9aa 8%,var(--rtp-surface-2))!important;color:#0d9388!important}body.rtp-is-member #buddypress #item-nav li:nth-child(4n+3) a,body.rtp-is-member #buddypress .bp-navs li:nth-child(4n+3) a{background:color-mix(in srgb,#e6a326 9%,var(--rtp-surface-2))!important;color:#ad7117!important}body.rtp-is-member #buddypress #item-nav li:nth-child(4n) a,body.rtp-is-member #buddypress .bp-navs li:nth-child(4n) a{background:color-mix(in srgb,#df5876 8%,var(--rtp-surface-2))!important;color:#bb405e!important}body.rtp-is-member #buddypress #item-nav li.current a,body.rtp-is-member #buddypress #item-nav li.selected a,body.rtp-is-member #buddypress .bp-navs li.current a,body.rtp-is-member #buddypress .bp-navs li.selected a{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important}
@media(max-width:680px){.rtp-profile-competition-card strong{font-size:.96rem}.rtp-profile-competition-card small{font-size:.58rem}.rtp-profile-trophy-title{padding-inline:13px}.rtp-profile-trophy-block .rtp-profile-trophies{justify-content:flex-start;overflow-x:auto}}

.rtp-buddypress-shell{padding-top:22px;padding-bottom:42px}.rtp-buddypress-content{min-width:0}.rt-team-ready-list{margin:0 0 18px;padding:14px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface-2)}.rt-team-ready-list h3{margin:0 0 10px;font-size:.78rem}.rt-team-ready{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border-radius:14px;background:var(--rtp-surface);color:var(--rtp-text);text-decoration:none;border:1px solid var(--rtp-line)}.rt-team-ready span,.rt-team-ready strong,.rt-team-ready small{display:block}.rt-team-ready small{margin-top:3px;color:var(--rtp-muted);font-size:.65rem}.rt-team-ready b{color:var(--rtp-primary);font-size:.7rem;white-space:nowrap}@media(max-width:680px){.rtp-buddypress-shell{padding-top:12px}.rt-team-ready{align-items:flex-start;flex-direction:column}}


/* RT Platform 11 — final shell */
.rtp-sidebar-user{gap:14px}.rtp-sidebar-avatar{--rtp-progress:0%;position:relative;width:62px;height:62px;flex:0 0 62px;padding:4px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0)}.rtp-sidebar-avatar img{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;border:3px solid var(--rtp-surface)}.rtp-sidebar-avatar b{position:absolute;right:-2px;bottom:0;min-width:25px;height:25px;padding:0 5px;display:grid;place-items:center;border:3px solid var(--rtp-surface);border-radius:99px;background:var(--rtp-primary);color:#fff;font-size:.65rem}.rtp-custom-sidebar-menu{list-style:none;margin:0;padding:0}.rtp-custom-sidebar-menu a{display:flex;padding:11px 12px;border-radius:13px;font-weight:800}.rtp-custom-sidebar-menu a:hover{background:var(--rtp-surface-2)}
.rtp-profile-competition-card{position:relative;overflow:hidden;border-color:rgba(224,177,76,.32)!important;box-shadow:inset 0 0 0 1px rgba(255,214,113,.05),0 12px 30px rgba(0,0,0,.12)}.rtp-profile-competition-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#9b6b19,#ffd879,#9b6b19)}.rtp-profile-competition-card strong{color:#ffe6a0}.rtp-profile-world-cta{border:1px solid rgba(255,214,113,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 16px 34px rgba(9,166,171,.2)}.rtp-profile-trophy-block{border-color:rgba(224,177,76,.28)}.rtp-profile-owner-tools{width:min(760px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:16px}.rtp-profile-owner-tools a{padding:11px 8px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.05);color:#e7f4f5;text-align:center;font-size:.72rem;font-weight:850}.rtp-profile-owner-tools a:hover{border-color:#d7aa4f;color:#ffe5a6}
body.rtp-is-activity #buddypress .activity-list,body.rtp-is-activity #buddypress ul.activity-list{width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}body.rtp-is-activity .rtp-activity-card{width:100%!important;margin-left:0!important;margin-right:0!important}.rtp-buddypress-shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}.rtp-buddypress-shell #buddypress,.rtp-buddypress-shell #buddypress .bp-wrap{width:100%!important}
.rt-ranking-hero{display:flex;align-items:center;gap:18px;margin-bottom:18px;padding:24px;border-radius:24px;background:linear-gradient(135deg,#161b36,#332d76 55%,#0f8f91);color:#fff;box-shadow:var(--rtp-shadow)}.rt-ranking-hero>span{width:72px;height:72px;display:grid;place-items:center;border-radius:22px;background:rgba(255,255,255,.12);font-size:2.2rem}.rt-ranking-hero small{font-weight:900;letter-spacing:.12em;color:#e8c66c}.rt-ranking-hero h1{margin:2px 0;font-size:2rem}.rt-ranking-hero p{margin:0;opacity:.75}.rt-ranking-tabs{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.rt-ranking-tabs button{min-height:52px;border:1px solid var(--rtp-line);border-radius:16px;background:var(--rtp-surface);color:var(--rtp-muted);font-weight:900;cursor:pointer;transition:.2s transform,.2s box-shadow}.rt-ranking-tabs button:hover{transform:translateY(-2px)}.rt-ranking-tabs button.is-active{color:#fff;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));box-shadow:0 10px 26px rgba(100,92,255,.22)}.rt-ranking-stage{padding:18px}.rt-ranking-row{animation:rtpRankIn .35s ease both}.rt-ranking-row:nth-child(2){animation-delay:.04s}.rt-ranking-row:nth-child(3){animation-delay:.08s}.rt-ranking-row:nth-child(-n+3)>b{color:#b57a13;background:#fff3cf;border-radius:999px;padding:5px}.rt-ranking-future{text-align:center;padding:55px 20px}.rt-ranking-future>span{font-size:3rem}.rt-ranking-future h2{margin:8px 0}.rt-ranking-future p{max-width:580px;margin:auto;color:var(--rtp-muted)}@keyframes rtpRankIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.rtp-truco-native-shell{width:100%;max-width:none}.rtp-truco-native-shell .rtt2{max-width:none!important;margin:0!important}.rtp-truco-native-shell .rtt2-home,.rtp-truco-native-shell .rtt2-screen,.rtp-truco-native-shell .rtt2-game{border-radius:24px}.rt-coming-module{max-width:760px;margin:20px auto;padding:42px;text-align:center}.rt-coming-module>span{font-size:3rem}.rt-coming-module h1{margin:8px 0}
@media(max-width:680px){.rtp-profile-owner-tools{grid-template-columns:1fr 1fr}.rtp-buddypress-shell{width:calc(100% - 20px)}.rt-ranking-tabs{grid-template-columns:1fr}.rt-ranking-hero{padding:18px}.rt-ranking-hero>span{width:54px;height:54px}.rtp-main{overflow-x:hidden}.rtp-truco-native-shell{width:calc(100% + 20px);margin-left:-10px;margin-right:-10px}.rtp-truco-native-shell .rtt2-home,.rtp-truco-native-shell .rtt2-screen,.rtp-truco-native-shell .rtt2-game{border-radius:0!important}}

.rtp-page-truco-full{width:min(1280px,calc(100% - 24px));margin:auto}.rtp-truco-page-native{width:100%}.rtp-ranking-page-card{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.rtp-ranking-page-card>.rtp-entry{width:100%}
:root:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-game{background:#f7f9fc!important;color:#172033!important;border:1px solid #e3e7ef}.rtp-truco-native-shell .rtt2-table{color:#f7f3ea}.rtp-truco-native-shell .rtt2-gamehead{color:inherit}:root:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-gamehead>button{background:#e9eef5!important;color:#172033!important}:root:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-turn{background:#e7f6ef!important;color:#17654b!important}
@media(max-width:680px){.rtp-page-truco-full{width:100%;margin:0}.rtp-truco-page-native{width:100%}.rtp-page-truco-full+.rtp-footer{margin-top:0}}

/* =========================================================
   RT Platform 11.1 — final UX polish
   ========================================================= */
.rtp-brand-mark{background:linear-gradient(135deg,var(--rtp-primary),#20c9b0)!important;box-shadow:0 8px 24px color-mix(in srgb,var(--rtp-primary) 36%,transparent)!important}
.rtp-sidebar-avatar{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;padding:4px;background:conic-gradient(#f2bf55 var(--rtp-progress),color-mix(in srgb,var(--rtp-line) 75%,transparent) 0);box-shadow:0 8px 20px rgba(0,0,0,.14)}
.rtp-sidebar-avatar:before{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--rtp-surface)}
.rtp-sidebar-avatar img{position:relative;z-index:1;width:50px!important;height:50px!important;object-fit:cover;border-radius:50%;border:2px solid var(--rtp-surface)}
.rtp-sidebar-avatar b{position:absolute;z-index:2;right:-2px;bottom:-2px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border-radius:50%;background:linear-gradient(135deg,#f1c15e,#b77d18);color:#2b1c05;border:3px solid var(--rtp-surface);font-size:.7rem;font-weight:950}

/* Gold-accented competitive identity without breaking the RT palette. */
.rtp-profile-competition-grid{gap:14px!important}
.rtp-profile-competition-card{position:relative;overflow:hidden;border:1px solid color-mix(in srgb,#d5a33f 58%,var(--rtp-line))!important;background:linear-gradient(145deg,color-mix(in srgb,#d5a33f 10%,var(--rtp-surface)),var(--rtp-surface))!important;box-shadow:0 12px 32px color-mix(in srgb,#b27a18 12%,transparent),inset 0 1px rgba(255,255,255,.18)!important}
.rtp-profile-competition-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#f3d078,#aa6f11)}
.rtp-profile-competition-card small{color:#a87819!important;font-weight:900!important;letter-spacing:.02em}.rtp-profile-competition-card strong{font-size:1.18rem!important}.rtp-profile-competition-card em{font-style:normal!important;color:var(--rtp-muted)!important}
.rtp-profile-world-cta{border:1px solid color-mix(in srgb,#d4a037 62%,var(--rtp-line))!important;background:linear-gradient(135deg,color-mix(in srgb,#e1ae48 16%,var(--rtp-surface)),color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface)))!important;box-shadow:0 10px 28px color-mix(in srgb,#b57a18 12%,transparent)!important;font-weight:950!important}
.rtp-profile-trophy-block{border:1px solid color-mix(in srgb,#d4a037 45%,var(--rtp-line))!important;background:linear-gradient(180deg,color-mix(in srgb,#f2c35f 7%,var(--rtp-surface)),var(--rtp-surface))!important}
.rtp-trophy-orb.is-earned{box-shadow:0 0 0 3px color-mix(in srgb,#d4a037 22%,transparent),0 8px 22px color-mix(in srgb,#d4a037 22%,transparent)!important}
.rtp-profile-status-line{margin:8px 0 0;color:var(--rtp-muted);font-weight:700;font-size:.92rem}

/* Never show a visually empty profile. */
.rtp-private-profile-note{max-width:900px;margin:20px auto;padding:22px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;background:linear-gradient(145deg,var(--rtp-surface),var(--rtp-surface-2));border:1px solid var(--rtp-line);border-radius:20px;box-shadow:var(--rtp-shadow)}
.rtp-private-profile-note>span{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface));font-size:22px}.rtp-private-profile-note strong{font-size:1.05rem}.rtp-private-profile-note p{margin:4px 0 0;color:var(--rtp-muted)}

/* BuddyPress member nav gets actual RT color. */
#buddypress .bp-navs{background:linear-gradient(145deg,var(--rtp-surface),color-mix(in srgb,var(--rtp-primary) 4%,var(--rtp-surface)))!important;border-color:color-mix(in srgb,var(--rtp-primary) 18%,var(--rtp-line))!important;box-shadow:0 12px 34px rgba(20,24,45,.06)!important}
#buddypress .bp-navs li a{padding:10px 14px!important;border:1px solid transparent!important;transition:.18s ease!important}
#buddypress .bp-navs li.current a,#buddypress .bp-navs li.selected a,#buddypress .bp-navs li a:hover{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;box-shadow:0 7px 18px color-mix(in srgb,var(--rtp-primary) 28%,transparent)!important}
#buddypress .bp-navs a[href*="membership"],#buddypress .bp-navs a[href*="pmpro"],#buddypress .bp-navs li#membership-personal-li,#buddypress .bp-navs li#memberships-personal-li{display:none!important}

/* Messages: cards, thread bubbles, compose and inbox. */
.rtp-is-messages #buddypress .bp-messages,.rtp-is-messages #buddypress .messages,.rtp-is-messages #buddypress .message-box,.rtp-is-messages #buddypress .subnav-filters{background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:20px!important;box-shadow:var(--rtp-shadow)!important}
.rtp-is-messages #buddypress .message-box,.rtp-is-messages #buddypress .subnav-filters{padding:16px!important;margin-bottom:16px!important}
.rtp-is-messages #buddypress .message-threads{display:grid!important;gap:10px!important}.rtp-is-messages #buddypress .message-threads>li,.rtp-is-messages #buddypress .message-threads tr{background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:16px!important}
.rtp-is-messages #buddypress .message-content{background:var(--rtp-surface-2)!important;border-radius:18px!important;padding:15px!important}.rtp-is-messages #buddypress textarea,.rtp-is-messages #buddypress input[type="text"]{border-radius:14px!important;border:1px solid var(--rtp-line)!important;background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;padding:12px!important}
.rtp-is-messages #buddypress input[type="submit"],.rtp-is-messages #buddypress button{border:0!important;border-radius:13px!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;font-weight:850!important;padding:10px 15px!important}

/* BuddyPress settings + avatar/cover/profile forms. */
.rtp-is-settings #buddypress .standard-form,#buddypress .profile.edit .standard-form,#buddypress .change-avatar,#buddypress .change-cover-image{padding:22px!important;background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:22px!important;box-shadow:var(--rtp-shadow)!important}
#buddypress .standard-form label{font-weight:850!important;color:var(--rtp-text)!important;margin-top:12px!important}#buddypress .standard-form input[type="text"],#buddypress .standard-form input[type="email"],#buddypress .standard-form input[type="password"],#buddypress .standard-form textarea,#buddypress .standard-form select{width:100%!important;border:1px solid var(--rtp-line)!important;border-radius:13px!important;background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;padding:11px 12px!important}
#buddypress .standard-form input[type="submit"],#buddypress .standard-form button{border:0!important;border-radius:13px!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;font-weight:900!important;padding:11px 16px!important}

/* Dedicated RT front-end profile editor / settings. */
.rt-account-editor,.rt-settings-hub{width:min(900px,calc(100% - 24px));margin:0 auto;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:26px;box-shadow:var(--rtp-shadow);overflow:hidden}.rt-account-editor-head,.rt-settings-hub>header{display:flex;gap:16px;align-items:center;padding:26px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface)),color-mix(in srgb,#d5a13c 9%,var(--rtp-surface)));border-bottom:1px solid var(--rtp-line)}.rt-account-editor-head>span,.rt-settings-hub>header>span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-size:24px}.rt-account-editor-head small,.rt-settings-hub header small{font-weight:950;color:var(--rtp-primary);letter-spacing:.12em}.rt-account-editor-head h1,.rt-settings-hub h1{margin:2px 0;font-size:clamp(1.5rem,4vw,2.25rem)}.rt-account-editor-head p,.rt-settings-hub header p{margin:0;color:var(--rtp-muted)}
.rt-account-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:22px 22px 0}.rt-account-media-grid article{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface-2)}.rt-account-avatar img{width:72px;height:72px;object-fit:cover;border-radius:50%;border:3px solid color-mix(in srgb,var(--rtp-primary) 30%,var(--rtp-surface))}.rt-account-cover-icon{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#d5a33f,var(--rtp-primary));color:#fff;font-size:30px}.rt-account-media-grid p{margin:3px 0 9px;color:var(--rtp-muted);font-size:.85rem}.rt-account-form{padding:22px;display:grid;gap:16px}.rt-account-form label{display:grid;gap:7px}.rt-account-form label>span{font-weight:900}.rt-account-form input,.rt-account-form textarea,.rt-account-form select{width:100%;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2);color:var(--rtp-text);padding:12px 13px}.rt-account-form small{color:var(--rtp-muted)}.rt-account-success{margin:18px 22px 0;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,#22b98b 14%,var(--rtp-surface));color:#168465;font-weight:850}
.rt-settings-grid{padding:22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.rt-settings-grid>a{padding:18px;display:grid;grid-template-columns:auto 1fr;column-gap:13px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface-2);transition:.18s ease}.rt-settings-grid>a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--rtp-primary) 40%,var(--rtp-line));box-shadow:0 10px 24px color-mix(in srgb,var(--rtp-primary) 12%,transparent)}.rt-settings-grid b{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface));font-size:20px}.rt-settings-grid strong{font-size:1rem}.rt-settings-grid small{color:var(--rtp-muted)}.rt-settings-grid .is-danger b{background:color-mix(in srgb,#d94d66 12%,var(--rtp-surface))}

/* Mobile nav: five items in one single balanced row. */
@media(max-width:900px){.rtp-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;padding:7px!important}.rtp-mobile-nav a{padding:6px 1px!important;font-size:.61rem!important}.rtp-mobile-nav .is-main{color:var(--rtp-primary)!important}.rtp-mobile-nav .is-main svg{transform:scale(1.08)}body.rtp-focus-app .rtp-mobile-nav{display:none!important}body.rtp-focus-app .rtp-main{padding-bottom:24px!important}.rt-account-media-grid,.rt-settings-grid{grid-template-columns:1fr}.rtp-private-profile-note{grid-template-columns:auto 1fr}.rtp-private-profile-note .generic-button{grid-column:1/-1}.rtp-profile-competition-grid{grid-template-columns:1fr 1fr!important}}

/* Truco light-mode bridge. Keep the table/game identity dark-green, but make all navigation text readable in light RT mode. */
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2{color:#173137!important}
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-home,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-screen{background:linear-gradient(180deg,#f8fbfb,#edf4f4)!important;color:#173137!important;border:1px solid #dbe7e7!important}
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-brand p,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-screen small{color:#557077!important;opacity:1!important}
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-homegrid button,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-road button,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-profilehero,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-history,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-stats span{background:#fff!important;color:#173137!important;border-color:#dbe7e7!important}
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-screen header button{background:#e7eeee!important;color:#173137!important}
/* The actual playing table remains intentionally dark/green in both modes for card contrast. */
html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-game{background:#101619!important;color:#fff!important}

@media(max-width:560px){.rtp-profile-competition-grid{grid-template-columns:1fr!important}.rtp-mobile-nav span{font-size:.58rem}.rtp-mobile-nav{left:8px!important;right:8px!important;bottom:8px!important}}

/* === RT Platform 11.3 profile consistency + account media + BP inbox/notifications === */
.rtp-member-profile-card{overflow:hidden;max-width:940px;margin:0 auto 18px;background:var(--rtp-surface);border:1px solid var(--rtp-line);border-radius:26px;box-shadow:var(--rtp-shadow)}
.rtp-member-profile-cover{height:210px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 78%,#23c5bd),color-mix(in srgb,var(--rtp-primary-2) 76%,#141b32));background-size:cover;background-position:center}
.rtp-member-profile-main{position:relative;padding:0 26px 28px;text-align:center}
.rtp-member-profile-avatar{position:relative;width:154px;height:154px;margin:-82px auto 12px;padding:6px;border-radius:50%;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),color-mix(in srgb,var(--rtp-line) 76%,transparent) 0);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.rtp-member-profile-avatar>span{display:block;width:100%;height:100%;padding:6px;border-radius:50%;background:var(--rtp-surface)}
.rtp-member-profile-avatar img{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%!important}
.rtp-member-profile-avatar>b{position:absolute;right:2px;bottom:10px;display:grid;place-items:center;min-width:34px;height:34px;padding:0 7px;border-radius:50px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;border:4px solid var(--rtp-surface);font-size:.82rem;font-weight:950}
.rtp-member-profile-name h1{margin:0;font-size:clamp(1.55rem,4vw,2.2rem);letter-spacing:-.035em}.rtp-member-profile-name p{margin:2px 0;color:var(--rtp-muted)}.rtp-member-profile-name>strong{display:inline-flex;margin-top:7px;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface-2));color:var(--rtp-primary);font-size:.78rem}.rtp-member-profile-name em{display:block;margin-top:9px;color:var(--rtp-muted);font-style:normal;font-weight:650}.rtp-member-profile-bio{max-width:680px;margin:13px auto 0;color:var(--rtp-muted)}
.rtp-member-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px auto 0;max-width:760px}.rtp-member-profile-stats article{position:relative;overflow:hidden;display:grid;gap:4px;padding:17px 12px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface-2);text-align:left}.rtp-member-profile-stats article:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#ffd978,#a97517)}.rtp-member-profile-stats small{font-size:.68rem;font-weight:950;letter-spacing:.06em;color:#a87920}.rtp-member-profile-stats strong{font-size:1.18rem}.rtp-member-profile-stats span{font-size:.78rem;color:var(--rtp-muted)}
.rtp-member-profile-trophies{max-width:760px;margin:13px auto 0;padding:15px 17px;border:1px solid color-mix(in srgb,#d7a642 45%,var(--rtp-line));border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,#e9bd5f 8%,var(--rtp-surface)),var(--rtp-surface-2));display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}.rtp-member-profile-trophies>div:first-child{display:grid}.rtp-member-profile-trophies small{color:var(--rtp-muted)}.rtp-member-profile-orbs{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.rtp-member-profile-orbs span{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;border:1px solid color-mix(in srgb,#d7a642 55%,var(--rtp-line));background:var(--rtp-surface);font-size:18px}.rtp-member-profile-orbs .is-empty{filter:grayscale(1);opacity:.38}
.rtp-member-profile-actions{max-width:760px;margin:14px auto 0;display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.rtp-member-profile-actions .friendship-button a,.rtp-member-profile-actions .generic-button a{display:inline-flex;padding:10px 15px;border-radius:13px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff!important;font-weight:850;border:0}
.rtp-community-avatar-img,.rtp-top-avatar-img,.rtp-sidebar-avatar-img{border-radius:50%!important;object-fit:cover!important}

.rt-account-form .rt-account-media-grid{padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.rt-account-media-card{display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:14px;padding:16px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface-2);cursor:pointer}.rt-account-media-card>span:last-child{display:grid;gap:5px}.rt-account-media-card input[type=file]{width:100%;padding:9px;background:var(--rtp-surface);border:1px dashed var(--rtp-line);border-radius:12px;color:var(--rtp-muted);font-size:.78rem}.rt-account-cover-preview{width:92px;height:68px;border-radius:14px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));background-size:cover;background-position:center}.rt-account-error{margin:18px 22px 0;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,#d95c63 14%,var(--rtp-surface));color:#b13d47;font-weight:800}.rt-account-error p{margin:0}

.rtp-is-notifications #buddypress .notifications,.rtp-is-notifications #buddypress .notifications-options-nav,.rtp-is-notifications #buddypress .subnav-filters{background:var(--rtp-surface)!important;border:1px solid var(--rtp-line)!important;border-radius:20px!important;box-shadow:var(--rtp-shadow)!important;padding:14px!important}.rtp-is-notifications #buddypress table.notifications{width:100%;border-collapse:separate!important;border-spacing:0 9px!important}.rtp-is-notifications #buddypress table.notifications tr{background:var(--rtp-surface-2)!important}.rtp-is-notifications #buddypress table.notifications td{padding:13px!important;border-top:1px solid var(--rtp-line)!important;border-bottom:1px solid var(--rtp-line)!important}.rtp-is-notifications #buddypress table.notifications td:first-child{border-left:1px solid var(--rtp-line)!important;border-radius:14px 0 0 14px}.rtp-is-notifications #buddypress table.notifications td:last-child{border-right:1px solid var(--rtp-line)!important;border-radius:0 14px 14px 0}.rtp-is-notifications #buddypress .notification-actions a{display:inline-flex;padding:7px 10px;border-radius:10px;background:var(--rtp-surface);border:1px solid var(--rtp-line);font-weight:750}
.rtp-is-messages #buddypress .bp-messages-content,.rtp-is-messages #buddypress #message-thread,.rtp-is-messages #buddypress .message-search,.rtp-is-messages #buddypress .bp-messages-filters{background:var(--rtp-surface)!important;color:var(--rtp-text)!important;border:1px solid var(--rtp-line)!important;border-radius:18px!important;box-shadow:var(--rtp-shadow)!important}.rtp-is-messages #buddypress .thread-content,.rtp-is-messages #buddypress .message-metadata,.rtp-is-messages #buddypress .message-box{color:var(--rtp-text)!important}.rtp-is-messages #buddypress a{color:inherit}.rtp-is-messages #buddypress .unread{background:color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface-2))!important}

@media(max-width:700px){.rtp-member-profile-cover{height:150px}.rtp-member-profile-main{padding:0 14px 22px}.rtp-member-profile-avatar{width:126px;height:126px;margin-top:-66px}.rtp-member-profile-stats{grid-template-columns:1fr}.rtp-member-profile-trophies{align-items:flex-start;flex-direction:column}.rtp-member-profile-orbs{justify-content:flex-start}.rt-account-form .rt-account-media-grid{grid-template-columns:1fr}.rt-account-media-card{grid-template-columns:76px 1fr}.rt-account-cover-preview{width:76px;height:62px}}

/* ========================================================================== 
   RT PLATFORM 12.0 — AUTHORITATIVE UI LAYER
   This block intentionally overrides legacy iterations above.
   ========================================================================== */
:root{--rtp-content:1180px;--rtp-feed:760px;--rtp-gold:#d7aa4f;--rtp-gold-2:#ffe39a}
html,body{max-width:100%;overflow-x:hidden}
.rtp-topbar{grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:16px!important}
.rtp-brand{min-width:0}.rtp-brand-logo{display:block;max-width:46px;max-height:46px;width:auto;height:auto;border-radius:14px}.rtp-brand-name{white-space:nowrap}.rtp-desktop-nav{min-width:0}
.rtp-app-body,.rtp-main{min-width:0;width:100%}.rtp-main{overflow-x:clip}.rtp-container{width:min(var(--rtp-content),calc(100% - 32px));max-width:100%;margin-inline:auto!important}
.rtp-buddypress-shell{width:min(var(--rtp-content),calc(100% - 32px))!important;max-width:100%!important;margin-inline:auto!important;padding-inline:0!important}
.rtp-buddypress-shell #buddypress,.rtp-buddypress-shell #buddypress .bp-wrap,.rtp-buddypress-shell #buddypress .bp-wrap>div{max-width:100%!important}
.rtp-buddypress-shell #buddypress .bp-wrap{width:100%!important;margin-inline:0!important;padding-inline:0!important;float:none!important}

/* Sidebar: core system links cannot be replaced by a stale WordPress menu. */
.rtp-sidebar-extra{margin-top:12px;padding-top:12px;border-top:1px solid var(--rtp-line)}.rtp-sidebar-extra>small{display:block;padding:0 12px 7px;color:var(--rtp-muted);font-size:.59rem;font-weight:950;letter-spacing:.1em}.rtp-custom-sidebar-menu{list-style:none;margin:0;padding:0}.rtp-custom-sidebar-menu li{margin:0}.rtp-custom-sidebar-menu a{display:flex;align-items:center;min-height:42px;padding:9px 12px;border-radius:12px;color:var(--rtp-muted);font-weight:800}.rtp-custom-sidebar-menu a:hover{background:var(--rtp-surface-2);color:var(--rtp-text)}

/* ACTIVITY — a single centered feed authority and no permanent avatar gutter. */
body.rtp-is-activity #buddypress .activity-list,
body.rtp-is-activity #buddypress ul.activity-list,
#buddypress .activity-list{box-sizing:border-box!important;width:min(var(--rtp-feed),100%)!important;max-width:100%!important;margin:0 auto!important;padding:0!important;float:none!important;display:grid!important;gap:16px!important}
#buddypress .activity-list>li.rtp-activity-card{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:18px!important;border:1px solid var(--rtp-line)!important;border-radius:22px!important;background:var(--rtp-surface)!important;box-shadow:var(--rtp-shadow)!important;float:none!important;clear:both!important;overflow:hidden!important}
.rtp-feed-headrow{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;width:100%!important;min-width:0!important}
.rtp-feed-avatar-wrap{grid-column:1!important;float:none!important;width:54px!important;height:54px!important;margin:0!important;padding:0!important}.rtp-feed-avatar-link{position:relative;display:block;width:54px;height:54px}.rtp-feed-avatar-ring{display:block;width:54px;height:54px;padding:3px;border-radius:50%;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0)}.rtp-feed-avatar-ring img{display:block!important;width:48px!important;height:48px!important;max-width:none!important;margin:0!important;border:3px solid var(--rtp-surface)!important;border-radius:50%!important;object-fit:cover!important;float:none!important}.rtp-feed-rank{position:absolute;right:-4px;bottom:-2px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border:3px solid var(--rtp-surface);border-radius:999px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-size:.61rem;font-weight:950}.rtp-feed-header{grid-column:2!important;min-width:0!important;margin:0!important;padding:3px 0 0!important;color:var(--rtp-muted)!important;font-size:.86rem!important;line-height:1.5!important;float:none!important;width:100%!important}.rtp-feed-header p{display:inline!important;margin:0!important}.rtp-feed-header a{display:inline!important;color:var(--rtp-text)!important;font-weight:850}.rtp-feed-rank-name{display:inline-flex;margin-top:6px;padding:4px 9px;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface-2));color:var(--rtp-primary);font-size:.64rem;font-weight:900}
#buddypress .activity-list .rtp-activity-card>.activity-content,.rtp-feed-content{display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:none!important;min-width:0!important;margin:12px 0 0!important;padding:0!important;overflow:visible!important}
#buddypress .activity-list .rtp-activity-card .activity-inner,.rtp-feed-body{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:4px 0 12px!important;float:none!important;clear:both!important;color:var(--rtp-text)!important;font-size:.96rem!important;line-height:1.6!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
.rtp-feed-body>*{max-width:100%!important}.rtp-feed-body p{margin:.35em 0!important}.rtp-feed-body img,.rtp-feed-body iframe,.rtp-feed-body video{max-width:100%!important;height:auto!important}
.rtp-activity-media{width:100%!important;max-width:none!important;margin:8px 0 12px!important;float:none!important}.rtp-media-item{min-width:0}.rtp-media-item img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:14px!important}
.rtp-reactions{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;width:100%!important;margin:8px 0 10px!important;padding:7px!important;border:1px solid var(--rtp-line)!important;border-radius:16px!important;background:var(--rtp-surface-2)!important}.rtp-reaction{display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:48px!important;height:34px!important;padding:0 10px!important;border:1px solid transparent!important;border-radius:999px!important;background:transparent!important;color:var(--rtp-muted)!important;cursor:pointer!important}.rtp-reaction:hover,.rtp-reaction.is-active{border-color:color-mix(in srgb,var(--rtp-primary) 25%,var(--rtp-line))!important;background:var(--rtp-surface)!important;color:var(--rtp-text)!important}.rtp-reaction span{font-size:1rem}.rtp-reaction small{font-weight:850}
.rtp-feed-actions{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:3px 0 0!important;border-top:1px solid var(--rtp-line)!important;overflow-x:auto!important}.rtp-feed-actions .activity-meta{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;width:100%!important;margin:0!important;padding:8px 0 0!important}.rtp-feed-actions .activity-meta>*,.rtp-feed-actions .generic-button{float:none!important;width:auto!important;margin:0!important}.rtp-feed-actions .activity-meta a,.rtp-feed-actions .activity-meta button{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:34px!important;padding:6px 10px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--rtp-muted)!important;font-size:.72rem!important;font-weight:800!important;white-space:nowrap!important}.rtp-feed-actions .activity-meta a:hover,.rtp-feed-actions .activity-meta button:hover{background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important}.rtp-comments-toggle{width:100%;margin-top:4px;padding:8px 0;border:0;background:transparent;color:var(--rtp-primary);font-size:.72rem;font-weight:850;text-align:left;cursor:pointer}.rtp-feed-comments{box-sizing:border-box!important;clear:both!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:10px 0 0!important;padding:12px!important;border-radius:16px!important;background:var(--rtp-surface-2)!important}.rtp-feed-comments.is-collapsed{display:none!important}

/* Composer + professional media queue. */
.rtp-composer-shell{box-sizing:border-box;width:min(var(--rtp-feed),100%);margin:0 auto 16px!important;padding:17px!important;border:1px solid var(--rtp-line);border-radius:22px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rtp-composer-heading{display:flex;align-items:center;gap:12px}.rtp-composer-heading img{border-radius:50%!important}.rtp-composer-media{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--rtp-line)}.rtp-media-add{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface-2);font-weight:850;cursor:pointer}.rtp-composer-media small{color:var(--rtp-muted)}.rtp-media-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.rtp-media-preview-item{position:relative;overflow:hidden;aspect-ratio:1.2;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2)}.rtp-media-preview-item img{width:100%;height:100%;object-fit:cover}.rtp-media-preview-item button{position:absolute;top:7px;right:7px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(5,10,18,.75);color:#fff;font-size:18px}.rtp-upload-status{position:absolute;left:8px;right:8px;bottom:14px;padding:5px 7px;border-radius:8px;background:rgba(5,10,18,.75);color:#fff;font-size:.61rem;font-weight:800}.rtp-upload-bar{position:absolute;left:8px;right:8px;bottom:7px;height:4px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.25)}.rtp-upload-bar i{display:block;width:0;height:100%;background:#45e0dc;transition:width .15s linear}.rtp-media-preview-item.is-error{display:grid;place-items:center;padding:12px;color:#b63d50;background:#fff0f3}.is-uploading{opacity:.55;pointer-events:none}

/* Approved profile layout — preserve structure, add only competitive emphasis. */
.rtp-profile-identity{position:relative;overflow:hidden;width:min(940px,100%);margin:0 auto 22px;border:1px solid color-mix(in srgb,var(--rtp-gold) 25%,#173840);border-radius:28px;background:linear-gradient(180deg,#0b252d,#0a2027);color:#f4fbfc;box-shadow:0 22px 60px rgba(3,19,25,.22),0 0 0 1px rgba(215,170,79,.06)}.rtp-profile-banner{height:220px;background:linear-gradient(135deg,#15aeb6,#6155e8);background-size:cover;background-position:center}.rtp-profile-identity-inner{position:relative;margin-top:-78px;padding:0 28px 28px;display:flex;flex-direction:column;align-items:center}.rtp-profile-avatar-wrap{position:relative;width:172px;height:172px;padding:8px;border-radius:50%;background:conic-gradient(#1ac8cb var(--rtp-progress),#dfe9ec 0);box-shadow:0 0 0 8px #0b252d}.rtp-profile-avatar-ring{width:100%;height:100%;padding:7px;border-radius:50%;background:#0b252d}.rtp-profile-avatar-ring img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;margin:0!important;float:none!important}.rtp-profile-rank-number{position:absolute;right:-2px;bottom:14px;display:grid;place-items:center;min-width:42px;height:42px;padding:0 7px;border:5px solid #0b252d;border-radius:999px;background:#4f3fc4;color:#fff;font-size:.9rem}.rtp-profile-name-block{text-align:center;margin-top:18px}.rtp-profile-name-block h1{margin:0;font-size:2rem;line-height:1.08;color:#fff}.rtp-profile-handle{margin-top:8px;color:#a7bcc2}.rtp-profile-rank-label{display:inline-block;margin-top:7px;color:#ffc85a;font-size:.72rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.rtp-profile-status-line{margin:10px 0 0;color:#dcebed;font-size:.88rem}.rtp-profile-bio-line{max-width:650px;margin:9px auto 0;color:#9fb7bd;font-size:.78rem;line-height:1.6}
.rtp-profile-competition-grid{width:min(760px,100%);display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.rtp-profile-competition-card{position:relative;overflow:hidden;min-height:100px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:16px;border:1px solid rgba(225,181,84,.34)!important;border-radius:20px;background:rgba(255,255,255,.035);color:#fff;text-decoration:none;box-shadow:inset 0 0 0 1px rgba(255,214,113,.04),0 12px 28px rgba(0,0,0,.11)}.rtp-profile-competition-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#906019,#ffd879,#906019)}.rtp-profile-competition-card.is-truco{background:linear-gradient(145deg,rgba(24,197,194,.08),rgba(255,255,255,.025))}.rtp-profile-competition-card.is-world{background:linear-gradient(145deg,rgba(100,84,245,.09),rgba(255,255,255,.025))}.rtp-profile-competition-card small{color:#b8c9cc;font-size:.65rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.rtp-profile-competition-card strong{margin-top:8px;color:#ffe6a0;font-size:1.08rem}.rtp-profile-competition-card em{margin-top:5px;color:#7edbdc;font-size:.69rem;font-style:normal}.rtp-profile-world-cta{width:min(760px,100%);min-height:56px;margin-top:14px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,214,113,.34);border-radius:18px;background:linear-gradient(135deg,#08aab3,#18c5c4);color:#fff!important;font-weight:950;box-shadow:0 14px 28px rgba(16,190,193,.16)}.rtp-profile-world-cta.is-disabled{opacity:.76;cursor:not-allowed}.rtp-profile-trophy-block{width:min(760px,100%);margin-top:22px;overflow:hidden;border:1px solid rgba(225,181,84,.30);border-radius:22px;background:rgba(255,255,255,.025)}.rtp-profile-trophy-title{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;border-bottom:1px solid rgba(255,255,255,.07);background:linear-gradient(90deg,rgba(223,176,67,.08),transparent)}.rtp-profile-trophy-title span{color:#f6d575;font-size:.72rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}.rtp-profile-trophy-title small{color:#9fb7bd;font-size:.62rem}.rtp-profile-trophies{display:flex;justify-content:center;gap:14px;padding:18px}.rtp-trophy-orb{width:56px;height:56px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:#092027;font-size:1.35rem}.rtp-trophy-orb.is-empty{filter:grayscale(1);opacity:.42}.rtp-trophy-orb.is-earned{border-color:rgba(224,177,76,.48);box-shadow:0 0 0 3px rgba(224,177,76,.06)}.rtp-profile-actions-line{width:min(760px,100%);display:flex;justify-content:center;margin-top:15px}.rtp-profile-edit-link,.rtp-profile-actions-line .friendship-button a,.rtp-profile-actions-line .generic-button a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.05);color:#e8f3f4!important;font-size:.72rem;font-weight:850}.rtp-profile-actions-line .friendship-button a:hover,.rtp-profile-edit-link:hover{border-color:#d7aa4f;color:#ffe5a6!important}

/* BuddyPress profile navigation: colorful but restrained, same site language. */
body.rtp-is-member #buddypress #item-nav,body.rtp-is-member #buddypress .bp-navs{width:min(940px,100%);margin:0 auto 18px!important;padding:7px!important;border:1px solid var(--rtp-line)!important;border-radius:18px!important;background:var(--rtp-surface)!important;box-shadow:var(--rtp-shadow)!important}body.rtp-is-member #buddypress #item-nav ul,body.rtp-is-member #buddypress .bp-navs ul{display:flex!important;gap:6px!important;overflow-x:auto!important;margin:0!important;padding:0!important;list-style:none!important;scrollbar-width:none}body.rtp-is-member #buddypress #item-nav li,body.rtp-is-member #buddypress .bp-navs li{float:none!important;flex:0 0 auto!important;margin:0!important;border:0!important}body.rtp-is-member #buddypress #item-nav a,body.rtp-is-member #buddypress .bp-navs a{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:0 13px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--rtp-muted)!important;font-size:.7rem!important;font-weight:850!important}body.rtp-is-member #buddypress #item-nav .current a,body.rtp-is-member #buddypress #item-nav .selected a,body.rtp-is-member #buddypress .bp-navs .current a,body.rtp-is-member #buddypress .bp-navs .selected a{background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 92%,#fff),var(--rtp-primary-2))!important;color:#fff!important}

/* Front profile editor and image progress. */
.rt-account-editor,.rt-settings-hub{width:min(900px,calc(100% - 24px));margin:0 auto}.rt-account-media-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}.rt-account-media-card{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:14px!important;padding:16px!important;border:1px solid var(--rtp-line)!important;border-radius:18px!important;background:var(--rtp-surface-2)!important}.rt-account-avatar{width:86px;height:86px}.rt-account-avatar img{width:86px;height:86px;object-fit:cover;border-radius:50%}.rt-account-cover-preview{width:110px;height:76px;border-radius:14px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));background-size:cover;background-position:center}.rt-upload-meter{position:relative;display:block!important;height:28px!important;margin-top:5px!important;overflow:hidden;border-radius:9px;background:var(--rtp-surface);border:1px solid var(--rtp-line)}.rt-upload-meter i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,color-mix(in srgb,var(--rtp-primary) 25%,transparent),color-mix(in srgb,var(--rtp-primary-2) 35%,transparent));transition:width .15s linear}.rt-upload-meter small{position:relative;z-index:1;display:flex!important;align-items:center;height:100%;padding:0 8px!important;color:var(--rtp-muted);font-size:.62rem!important}.rt-upload-meter.is-error small{color:#bd4657}.rt-security-form{margin-top:20px;padding-top:20px;border-top:1px solid var(--rtp-line)}.rt-settings-section-head{margin-bottom:14px}.rt-settings-section-head small{color:var(--rtp-primary);font-size:.64rem;font-weight:950;letter-spacing:.1em}.rt-settings-section-head h2{margin:3px 0}.rt-settings-section-head p{margin:0;color:var(--rtp-muted)}

/* Communications — independent presentation, BuddyPress data/API underneath. */
.rt-comms-shell{width:min(920px,calc(100% - 24px));margin:0 auto}.rt-comms-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;padding:20px;border:1px solid var(--rtp-line);border-radius:22px;background:linear-gradient(135deg,var(--rtp-surface),color-mix(in srgb,var(--rtp-primary) 5%,var(--rtp-surface)));box-shadow:var(--rtp-shadow)}.rt-comms-header small{color:var(--rtp-primary);font-size:.62rem;font-weight:950;letter-spacing:.11em}.rt-comms-header h1{margin:3px 0 4px}.rt-comms-header p{margin:0;color:var(--rtp-muted)}.rt-comms-notice{margin:0 0 14px;padding:11px 14px;border-radius:13px;font-weight:800}.rt-comms-notice.is-success{background:#e9faf5;color:#137358}.rt-comms-notice.is-error{background:#fff0f3;color:#a93448}.rt-conversation-list{display:grid;gap:9px}.rt-conversation{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px 15px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface);box-shadow:0 8px 22px rgba(22,26,50,.04)}.rt-conversation.is-unread{border-color:color-mix(in srgb,var(--rtp-primary) 35%,var(--rtp-line));background:linear-gradient(90deg,color-mix(in srgb,var(--rtp-primary) 6%,var(--rtp-surface)),var(--rtp-surface))}.rt-conversation>img{width:58px;height:58px;object-fit:cover;border-radius:50%}.rt-conversation-main{min-width:0;color:var(--rtp-muted);font-size:.78rem}.rt-conversation-line{display:flex;justify-content:space-between;gap:10px;color:var(--rtp-text)}.rt-conversation-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-conversation-line time{color:var(--rtp-muted);font-size:.64rem;white-space:nowrap}.rt-unread-badge{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.66rem}.rt-comms-empty{width:min(760px,calc(100% - 24px));margin:0 auto;padding:40px 22px;border:1px solid var(--rtp-line);border-radius:22px;background:var(--rtp-surface);text-align:center;box-shadow:var(--rtp-shadow)}.rt-comms-empty>span{font-size:2rem}.rt-thread{border:1px solid var(--rtp-line);border-radius:22px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow);overflow:hidden}.rt-thread-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;border-bottom:1px solid var(--rtp-line)}.rt-thread-toolbar a{color:var(--rtp-primary);font-weight:850}.rt-thread-messages{display:grid;gap:12px;max-height:62vh;overflow:auto;padding:18px}.rt-thread-message{display:flex;align-items:flex-end;gap:9px}.rt-thread-message.is-mine{justify-content:flex-end}.rt-thread-avatar img{width:38px;height:38px;object-fit:cover;border-radius:50%}.rt-thread-bubble{max-width:min(78%,620px);padding:11px 13px;border:1px solid var(--rtp-line);border-radius:16px 16px 16px 4px;background:var(--rtp-surface-2)}.rt-thread-message.is-mine .rt-thread-bubble{border-color:transparent;border-radius:16px 16px 4px 16px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff}.rt-thread-meta{display:flex;justify-content:space-between;gap:12px;font-size:.65rem}.rt-thread-meta time{opacity:.7}.rt-thread-content p{margin:.45em 0}.rt-message-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:13px;border-top:1px solid var(--rtp-line);background:var(--rtp-surface-2)}.rt-message-reply textarea,.rt-compose-card input,.rt-compose-card textarea{width:100%;box-sizing:border-box;border:1px solid var(--rtp-line);border-radius:13px;background:var(--rtp-surface);color:var(--rtp-text);padding:11px 12px}.rt-compose-card{display:grid;gap:14px;padding:20px;border:1px solid var(--rtp-line);border-radius:22px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rt-compose-card label{display:grid;gap:6px;font-weight:800}.rt-compose-actions{display:flex;justify-content:flex-end;gap:8px}.rt-notification-list{display:grid;gap:9px}.rt-notification-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--rtp-line);border-radius:17px;background:var(--rtp-surface)}.rt-notification-item.is-new{border-color:color-mix(in srgb,var(--rtp-primary) 35%,var(--rtp-line));background:linear-gradient(90deg,color-mix(in srgb,var(--rtp-primary) 6%,var(--rtp-surface)),var(--rtp-surface))}.rt-notification-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--rtp-surface-2)}.rt-notification-item div{min-width:0;display:grid}.rt-notification-item strong{display:block;overflow:hidden;text-overflow:ellipsis}.rt-notification-item time{color:var(--rtp-muted);font-size:.65rem}.rt-notification-item form button{border:1px solid var(--rtp-line);border-radius:10px;background:var(--rtp-surface-2);color:var(--rtp-muted);padding:7px 9px;font-size:.64rem;font-weight:800}

/* Dark feed: purposeful surfaces, not a blanket inversion. */
html[data-theme="dark"] .rtp-activity-card,html[data-theme="dark"] .rtp-composer-shell{background:#101b24!important;border-color:#233343!important;box-shadow:0 16px 45px rgba(0,0,0,.2)!important}html[data-theme="dark"] .rtp-reactions,html[data-theme="dark"] .rtp-feed-comments{background:#0c1620!important;border-color:#233343!important}html[data-theme="dark"] .rtp-reaction:hover,html[data-theme="dark"] .rtp-reaction.is-active{background:#142331!important}html[data-theme="dark"] .rtp-feed-header{color:#9fb0bf!important}html[data-theme="dark"] .rtp-feed-body{color:#edf5fa!important}

/* Truco bridge: Native game occupies RT content area and is readable in both themes. */
body.rtp-focus-app .rtp-main{padding-bottom:20px!important}.rtp-truco-native-shell{width:100%;max-width:none;margin:0 auto}.rtp-truco-native-shell>*{max-width:100%!important}.rtp-truco-native-shell .rtt2{max-width:100%!important}.rtp-truco-native-shell .rtt2-home,.rtp-truco-native-shell .rtt2-screen,.rtp-truco-native-shell .rtt2-game{max-width:100%!important;margin-inline:auto!important}html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2{color:#173137!important}html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-home,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-screen{background:#f7fbfc!important;color:#173137!important;border-color:#d9e7e9!important}html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-home *,html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-screen *{text-shadow:none}html:not([data-theme="dark"]) .rtp-truco-native-shell .rtt2-game{background:#101719!important;color:#fff!important}

/* Mobile and landscape safety. */
@media(max-width:900px){.rtp-topbar{grid-template-columns:auto minmax(0,1fr) auto!important;gap:9px!important;padding:0 12px!important}.rtp-brand-name,.rtp-desktop-nav{display:none!important}.rtp-brand{justify-self:start}.rtp-top-actions{justify-self:end}.rtp-buddypress-shell,.rtp-container{width:calc(100% - 20px)!important}.rtp-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;left:10px!important;right:10px!important;gap:0!important;padding:7px!important}.rtp-mobile-nav a{min-width:0!important;padding:6px 0!important;font-size:.59rem!important}.rtp-mobile-nav svg{width:20px;height:20px}.rtp-profile-banner{height:165px}.rtp-profile-identity-inner{margin-top:-66px;padding:0 16px 22px}.rtp-profile-avatar-wrap{width:144px;height:144px}.rtp-profile-name-block h1{font-size:1.65rem}.rtp-profile-competition-grid{gap:10px}.rtp-profile-competition-card{padding:11px}.rtp-profile-trophy-block .rtp-profile-trophies{justify-content:flex-start;overflow-x:auto}.rtp-trophy-orb{flex:0 0 46px;width:46px;height:46px}.rt-account-media-grid{grid-template-columns:1fr!important}.rt-comms-header{flex-direction:column}.rt-notification-item{grid-template-columns:40px minmax(0,1fr)}.rt-notification-item form{grid-column:2}.rt-message-reply{grid-template-columns:1fr}.rtp-media-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.rtp-buddypress-shell,.rtp-container{width:calc(100% - 16px)!important}.rtp-activity-card{padding:14px!important;border-radius:18px!important}.rtp-feed-headrow{grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important}.rtp-feed-avatar-wrap,.rtp-feed-avatar-link,.rtp-feed-avatar-ring{width:48px!important;height:48px!important}.rtp-feed-avatar-ring img{width:42px!important;height:42px!important}.rtp-feed-header{font-size:.79rem!important}.rtp-reactions{gap:2px!important;padding:5px!important}.rtp-reaction{min-width:42px!important;padding:0 7px!important}.rtp-profile-competition-grid{grid-template-columns:1fr 1fr!important}.rtp-profile-competition-card small{font-size:.56rem}.rtp-profile-competition-card strong{font-size:.96rem}.rtp-profile-trophy-title{padding-inline:13px}.rt-thread-bubble{max-width:88%}.rt-conversation{grid-template-columns:52px minmax(0,1fr) auto;padding:11px}.rt-conversation>img{width:52px;height:52px}.rt-compose-actions{flex-direction:column-reverse}.rt-compose-actions .rtp-btn{width:100%}}
@media(max-width:430px){.rtp-profile-competition-grid{grid-template-columns:1fr!important}.rtp-mobile-nav span{font-size:.55rem}.rtp-top-actions .rtp-count-button{display:none!important}.rtp-brand-logo{max-width:40px;max-height:40px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){.rtp-buddypress-shell{width:min(760px,calc(100% - 28px))!important}.rtp-mobile-nav{left:50%!important;right:auto!important;width:min(760px,calc(100% - 28px))!important;transform:translateX(-50%)!important}.rtp-main{padding-top:12px!important}body.rtp-focus-app .rtp-buddypress-shell{width:calc(100% - 12px)!important}}
.rtp-page-app{width:min(var(--rtp-content),calc(100% - 32px));margin-inline:auto}.rtp-app-page-content>.rt-comms-shell,.rtp-app-page-content>.rt-account-editor,.rtp-app-page-content>.rt-settings-hub,.rtp-app-page-content>.rt-platform-ranking{margin-inline:auto}.rtp-app-page-content>.rt-module-card{width:min(900px,100%);margin-inline:auto}
@media(max-width:900px){.rtp-page-app{width:calc(100% - 20px)}}


/* ==========================================================
   RT Platform 12.1 — requested visual corrections only
   ========================================================== */
/* Profile: exact Community-card language, expanded rather than redesigned. */
.rtp-member-profile-card{width:min(940px,100%);margin:0 auto 20px;overflow:hidden;border:1px solid var(--rtp-line);border-radius:24px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}
.rtp-member-profile-cover{height:190px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 78%,#25214b),var(--rtp-primary-2) 58%,var(--rtp-success));background-size:cover;background-position:center;position:relative}.rtp-member-profile-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 38%),linear-gradient(180deg,transparent,rgba(0,0,0,.10))}
.rtp-member-profile-main{padding:0 28px 26px;text-align:center}.rtp-member-profile-avatar{--rtp-progress:0%;position:relative;width:154px;height:154px;margin:-79px auto 0;padding:6px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--rtp-primary) var(--rtp-progress),var(--rtp-line) 0);box-shadow:0 16px 36px rgba(0,0,0,.18)}.rtp-member-profile-avatar:before{content:"";position:absolute;inset:-5px;border-radius:50%;background:conic-gradient(color-mix(in srgb,var(--rtp-primary) 18%,transparent) var(--rtp-progress),transparent 0);filter:blur(8px);z-index:-1}.rtp-member-profile-avatar .rtp-member-avatar-ring{padding:5px}.rtp-member-profile-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important}.rtp-member-profile-avatar .rtp-member-rank-number{right:2px;bottom:8px;min-width:36px;height:36px;font-size:.82rem}
.rtp-member-profile-heading{margin-top:14px}.rtp-member-profile-heading h1{margin:0;color:var(--rtp-text);font-size:clamp(1.6rem,4vw,2.15rem)}.rtp-member-profile-heading>span{display:block;margin-top:4px;color:var(--rtp-muted);font-weight:700}.rtp-member-profile-heading>b{display:inline-flex;margin-top:8px;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface-2));color:var(--rtp-primary);font-size:.68rem;text-transform:uppercase;letter-spacing:.05em}.rtp-member-profile-status{margin:10px 0 0;color:var(--rtp-text);font-weight:750}.rtp-member-profile-bio{max-width:670px;margin:8px auto 0;color:var(--rtp-muted);font-size:.82rem;line-height:1.55}
.rtp-member-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:22px auto 0;max-width:780px;overflow:hidden;border:1px solid var(--rtp-line);border-radius:16px;background:var(--rtp-surface-2)}.rtp-member-profile-stats>div{position:relative;min-width:0;padding:17px 12px}.rtp-member-profile-stats>div+div{border-left:1px solid var(--rtp-line)}.rtp-member-profile-stats small{display:block;color:var(--rtp-muted);font-size:.58rem;font-weight:900;letter-spacing:.07em}.rtp-member-profile-stats strong{display:block;margin-top:5px;color:var(--rtp-text);font-size:1.12rem}.rtp-member-profile-stats span{display:block;margin-top:4px;color:var(--rtp-muted);font-size:.66rem}.rtp-member-profile-stats .is-truco:before,.rtp-member-profile-stats .is-world:before{content:"";position:absolute;left:12px;right:12px;top:0;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#a87513,#ffd56a,#a87513)}.rtp-member-profile-stats .is-truco strong,.rtp-member-profile-stats .is-world strong{color:#a87513}
.rtp-member-profile-trophies{max-width:780px;margin:14px auto 0;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid color-mix(in srgb,#d4a037 38%,var(--rtp-line));border-radius:16px;background:linear-gradient(90deg,color-mix(in srgb,#f2c35f 7%,var(--rtp-surface)),var(--rtp-surface))}.rtp-member-profile-trophies>div:first-child{text-align:left}.rtp-member-profile-trophies small{display:block;color:#a87513;font-size:.58rem;font-weight:950;letter-spacing:.08em}.rtp-member-profile-trophies strong{display:block;margin-top:3px;color:var(--rtp-text);font-size:.78rem}.rtp-member-profile-orbs{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.rtp-member-profile-orbs span{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--rtp-line);border-radius:50%;background:var(--rtp-surface-2);font-size:1.05rem}.rtp-member-profile-orbs .is-earned{border-color:color-mix(in srgb,#d4a037 58%,var(--rtp-line));box-shadow:0 0 0 3px color-mix(in srgb,#d4a037 8%,transparent)}.rtp-member-profile-orbs .is-empty{opacity:.38;filter:grayscale(1)}.rtp-member-profile-actions{max-width:780px;margin:14px auto 0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.rtp-member-profile-actions form{margin:0}.rtp-member-profile-actions .rtp-btn,.rtp-member-profile-actions .generic-button a{min-height:40px!important;border-radius:12px!important}
@media(max-width:700px){.rtp-member-profile-cover{height:130px}.rtp-member-profile-main{padding:0 14px 20px}.rtp-member-profile-avatar{width:122px;height:122px;margin-top:-62px}.rtp-member-profile-stats{grid-template-columns:1fr}.rtp-member-profile-stats>div+div{border-left:0;border-top:1px solid var(--rtp-line)}.rtp-member-profile-trophies{align-items:flex-start;flex-direction:column}.rtp-member-profile-orbs{justify-content:flex-start}.rtp-member-profile-actions>*{width:100%}.rtp-member-profile-actions .rtp-btn,.rtp-member-profile-actions .generic-button,.rtp-member-profile-actions .generic-button a{width:100%!important}}

/* Community challenge is back and shares the same compact action language. */
#buddypress .rtp-member-bp-buttons{flex-wrap:wrap}.rt-native-quick-challenge{display:inline-flex;margin:0}.rt-native-quick-challenge .rt-truco-challenge-btn{min-height:38px!important;padding:8px 12px!important;border:1px solid color-mix(in srgb,var(--rtp-primary) 34%,var(--rtp-line))!important;border-radius:11px!important;background:color-mix(in srgb,var(--rtp-primary) 9%,var(--rtp-surface))!important;color:var(--rtp-primary)!important;font-size:.7rem!important;font-weight:900!important;box-shadow:none!important;cursor:pointer}

/* Comments: both the reveal control and BuddyPress submit button look native to RT. */
.rtp-comments-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:36px!important;margin:8px 0 0!important;padding:7px 12px!important;border:1px solid color-mix(in srgb,var(--rtp-primary) 24%,var(--rtp-line))!important;border-radius:999px!important;background:color-mix(in srgb,var(--rtp-primary) 7%,var(--rtp-surface))!important;color:var(--rtp-primary)!important;text-decoration:none!important}.rtp-comments-toggle:hover{background:color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface))!important;text-decoration:none!important}
#buddypress .rtp-feed-comments input[type="submit"],#buddypress .rtp-feed-comments button[type="submit"],#buddypress .rtp-feed-comments .button{min-height:38px!important;padding:8px 14px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;font-weight:900!important;box-shadow:0 8px 18px color-mix(in srgb,var(--rtp-primary) 18%,transparent)!important;cursor:pointer!important}

/* Profile editor file picker: replace the browser-default grey button with RT styling. */
.rt-account-media-card input[type=file]{padding:7px!important;border:1px dashed color-mix(in srgb,var(--rtp-primary) 28%,var(--rtp-line))!important;background:var(--rtp-surface)!important;color:var(--rtp-muted)!important}.rt-account-media-card input[type=file]::file-selector-button{margin-right:10px;padding:8px 12px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font:inherit;font-size:.72rem;font-weight:900;cursor:pointer}.rt-account-media-card input[type=file]::-webkit-file-upload-button{margin-right:10px;padding:8px 12px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font:inherit;font-size:.72rem;font-weight:900;cursor:pointer}

/* Ranking: animate entrance and clearly mark the logged-in player's row/position. */
.rt-ranking-me{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--rtp-primary) 24%,var(--rtp-line));border-radius:15px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface)),var(--rtp-surface));animation:rtpMePulse 2.6s ease-in-out infinite}.rt-ranking-me span{color:var(--rtp-muted);font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.rt-ranking-me b{color:var(--rtp-primary)}.rt-ranking-me em{font-style:normal;color:var(--rtp-muted);font-size:.72rem;font-weight:800}.rt-ranking-row.is-current-user{position:relative;border:1px solid color-mix(in srgb,var(--rtp-primary) 48%,var(--rtp-line));background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface-2)),var(--rtp-surface-2));box-shadow:0 10px 24px color-mix(in srgb,var(--rtp-primary) 10%,transparent);transform:scale(1.008)}.rt-ranking-row.is-current-user:after{content:"TU POSICIÓN";position:absolute;right:9px;top:-8px;padding:3px 7px;border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.48rem;font-weight:950;letter-spacing:.06em}.rt-ranking-row strong i{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.5rem;font-style:normal;vertical-align:middle}@keyframes rtpMePulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--rtp-primary) 0%,transparent)}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--rtp-primary) 6%,transparent)}}

/* Legacy RT team shortcut is intentionally hidden; teams will live in Native Truco. */
.rtt2-external-card[href*="/nuestro-truco/"]{display:none!important}

/* ==========================================================
   RT Platform 12.2 — targeted integration/UX corrections
   ========================================================== */
/* Tokens + badges */
.rtp-token-chip,.rtp-profile-token-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;margin-top:7px;padding:4px 8px;border:1px solid color-mix(in srgb,#d8a83b 42%,var(--rtp-line));border-radius:999px;background:color-mix(in srgb,#f1c75c 9%,var(--rtp-surface));color:#a87513;font-size:.66rem;font-weight:950;font-style:normal}.rtp-sidebar-user .rtp-token-chip{font-size:.58rem;margin-top:5px}.rtp-menu-badge{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:999px;background:#ef3c5f;color:#fff;font-size:.61rem;font-weight:950;box-shadow:0 5px 14px rgba(239,60,95,.24)}

/* Profile keeps the Community-card grammar; competitive data stays side by side. */
.rtp-community-profile-card .rtp-member-profile-main{position:relative}.rtp-member-profile-avatar,.rtp-member-profile-avatar .rtp-member-avatar-ring,.rtp-member-profile-avatar img{aspect-ratio:1/1!important;border-radius:50%!important}.rtp-member-profile-avatar{overflow:visible!important;flex:0 0 auto!important}.rtp-member-profile-avatar .rtp-member-avatar-ring{display:block!important;overflow:hidden!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important}.rtp-member-profile-avatar img{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important}.rtp-member-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.rtp-member-profile-stats>div{display:flex;min-width:0;flex-direction:column;justify-content:center;align-items:center}.rtp-member-profile-stats>div+div{border-left:1px solid var(--rtp-line)!important;border-top:0!important}.rtp-member-profile-stats span{max-width:100%;overflow:hidden;text-overflow:ellipsis}.rtp-member-profile-trophies{margin-top:14px!important}.rtp-member-profile-actions .friendship-button a,.rtp-member-profile-actions a.friendship-button,#buddypress .rtp-member-profile-actions .friendship-button a,#buddypress .rtp-member-profile-actions .generic-button a.friendship-button,#buddypress .rtp-member-profile-actions .generic-button a{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;border:1px solid transparent!important;box-shadow:0 8px 20px color-mix(in srgb,var(--rtp-primary) 20%,transparent)!important}.rtp-member-profile-actions .friendship-button a:hover,#buddypress .rtp-member-profile-actions .generic-button a:hover{filter:brightness(1.04)!important}.rtp-member-profile-actions .pending_friend,.rtp-member-profile-actions .awaiting_response_friend{background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;border-color:var(--rtp-line)!important}
@media(max-width:700px){.rtp-member-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.rtp-member-profile-stats>div{padding:12px 5px!important}.rtp-member-profile-stats>div+div{border-left:1px solid var(--rtp-line)!important;border-top:0!important}.rtp-member-profile-stats small{font-size:.48rem!important}.rtp-member-profile-stats strong{font-size:.82rem!important}.rtp-member-profile-stats span{font-size:.52rem!important;line-height:1.3}.rtp-member-profile-actions>*{width:auto!important}.rtp-member-profile-actions .rtp-btn,.rtp-member-profile-actions .generic-button,.rtp-member-profile-actions .generic-button a{width:auto!important}}

/* Announcement / site-message slots; future Ads can reuse the same placement contract. */
.rt-announcement-slot{width:min(1180px,calc(100% - 24px));margin:12px auto;display:grid;gap:10px}.rt-announcement-sidebar{width:100%;margin:10px 0}.rt-announcement-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:13px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--rtp-primary) 18%,var(--rtp-line));border-radius:17px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 6%,var(--rtp-surface)),var(--rtp-surface));box-shadow:0 10px 28px rgba(20,25,45,.05)}.rt-announcement-card>img{width:76px;height:76px;border-radius:13px;object-fit:cover}.rt-announcement-card small{display:block;color:var(--rtp-primary);font-size:.55rem;font-weight:950;letter-spacing:.09em}.rt-announcement-card strong{display:block;margin:2px 0;color:var(--rtp-text)}.rt-announcement-card p{margin:.25em 0;color:var(--rtp-muted);font-size:.75rem}.rt-announcement-sidebar .rt-announcement-card{grid-template-columns:1fr}.rt-announcement-sidebar .rt-announcement-card>img{width:100%;height:105px}.rt-announcement-sidebar .rt-announcement-card p{font-size:.67rem}

/* Mobile header: messages + notifications must remain visible in portrait. */
@media(max-width:430px){.rtp-top-actions .rtp-count-button{display:grid!important}.rtp-top-actions{gap:5px!important}.rtp-top-actions .rtp-icon-button{width:35px!important;height:35px!important;border-radius:11px!important}.rtp-top-actions .rtp-icon-button svg{width:17px!important;height:17px!important}.rtp-user-mini{display:none!important}.rtp-topbar{padding-inline:8px!important;gap:6px!important}.rtp-brand-mark{width:35px!important;height:35px!important}.rtp-sidebar-toggle{width:35px!important;height:35px!important}.rtp-count-button b{top:-4px!important;right:-4px!important}}

/* Bottom nav: active state is derived from the current URL, never hard-coded to Truco. */
.rtp-mobile-nav>a.is-active{color:var(--rtp-primary)!important}.rtp-mobile-nav>a.is-active svg{filter:drop-shadow(0 4px 8px color-mix(in srgb,var(--rtp-primary) 28%,transparent));transform:translateY(-1px)}.rtp-mobile-nav>span.is-soon{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 1px;color:var(--rtp-muted);font-size:.59rem;font-weight:800;opacity:.58}.rtp-mobile-nav>span.is-soon svg{width:20px;height:20px}

/* Notifications: inline actions, Spanish friendship decision buttons, usable portrait layout. */
.rt-notification-actions{display:flex;justify-content:flex-end}.rt-notification-actions form{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.rt-notification-actions button{min-height:34px;padding:6px 10px;border:1px solid var(--rtp-line);border-radius:10px;background:var(--rtp-surface-2);color:var(--rtp-text);font-size:.64rem;font-weight:900;cursor:pointer}.rt-notification-actions button.is-accept{border-color:transparent;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff}.rt-notification-actions button.is-reject{background:color-mix(in srgb,#ef3c5f 7%,var(--rtp-surface));color:#b72e48;border-color:color-mix(in srgb,#ef3c5f 22%,var(--rtp-line))}@media(max-width:620px){.rt-notification-item{grid-template-columns:38px minmax(0,1fr)!important;align-items:flex-start!important}.rt-notification-actions{grid-column:2!important;justify-content:flex-start!important}.rt-notification-actions form{justify-content:flex-start!important}.rt-comms-shell{width:calc(100% - 16px)!important}}

/* Browser/device alerts settings. */
.rt-device-notifications{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:18px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface)}.rt-device-notifications h2{margin:2px 0 4px}.rt-device-notifications p{margin:0;color:var(--rtp-muted);font-size:.78rem}.rt-device-notifications>small{color:var(--rtp-muted)}@media(max-width:620px){.rt-device-notifications{align-items:flex-start;flex-direction:column}.rt-device-notifications .rtp-btn{width:100%}}

/* Focus app back navigation (Truco/Tycoon) */
.rtp-focus-toolbar{width:min(1180px,calc(100% - 24px));margin:10px auto 0;display:flex;align-items:center;gap:12px}.rtp-app-back{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface);color:var(--rtp-text);font-weight:900;cursor:pointer}.rtp-focus-toolbar strong{font-size:.78rem;color:var(--rtp-muted)}

/* Challenge/site feedback toast. */
.rt-global-toast{position:fixed;z-index:99999;left:50%;bottom:96px;max-width:min(92vw,460px);padding:11px 15px;border-radius:13px;background:#14372e;color:#fff;font-weight:850;font-size:.75rem;box-shadow:0 18px 46px rgba(0,0,0,.24);transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.2s ease}.rt-global-toast.is-show{transform:translate(-50%,0);opacity:1}.rt-global-toast.is-error{background:#6d2232}

/* Editable sidebar/current-item language. */
.rtp-side-link.is-current{background:color-mix(in srgb,var(--rtp-primary) 9%,var(--rtp-surface-2));color:var(--rtp-primary)}
/* Community friendship actions stay visible on light cards. */
#buddypress .rtp-member-bp-buttons .friendship-button a,#buddypress .rtp-member-bp-buttons .generic-button a.friendship-button,#buddypress .rtp-member-bp-buttons .generic-button a[id*="friend"]{background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 7px 16px color-mix(in srgb,var(--rtp-primary) 18%,transparent)!important}
#buddypress .rtp-member-bp-buttons .pending_friend,#buddypress .rtp-member-bp-buttons .awaiting_response_friend{background:var(--rtp-surface-2)!important;color:var(--rtp-text)!important;border-color:var(--rtp-line)!important}

/* ==========================================================
   RT Platform 12.3 — focused social fixes only
   ========================================================== */
/* Profile avatar: only the actual ring gets the white surface. Prevents the rank badge from becoming a white oval. */
.rtp-member-profile-avatar>.rtp-member-avatar-ring{display:block!important;width:100%!important;height:100%!important;padding:5px!important;border-radius:50%!important;background:var(--rtp-surface)!important;overflow:hidden!important}
.rtp-member-profile-avatar>.rtp-member-rank-number{width:auto!important;min-width:36px!important;height:36px!important;padding:0 7px!important;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;color:#fff!important;border:4px solid var(--rtp-surface)!important;border-radius:999px!important;display:grid!important;place-items:center!important}
.rtp-member-profile-avatar>.rtp-member-rank-number:before,.rtp-member-profile-avatar>.rtp-member-rank-number:after{display:none!important}

/* Stable profile sections independent from BuddyPress menu rendering quirks. */
.rt-profile-section-nav{display:flex;align-items:center;gap:7px;overflow-x:auto;margin:0 auto 18px;padding:8px;width:min(940px,100%);border:1px solid var(--rtp-line);border-radius:16px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow);scrollbar-width:none}.rt-profile-section-nav::-webkit-scrollbar{display:none}.rt-profile-section-nav a{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 13px;border-radius:11px;color:var(--rtp-muted);font-size:.76rem;font-weight:850}.rt-profile-section-nav a:hover,.rt-profile-section-nav a.is-active{background:color-mix(in srgb,var(--rtp-primary) 10%,var(--rtp-surface-2));color:var(--rtp-primary)}.rt-profile-section-nav b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:var(--rtp-primary);color:#fff;font-size:.62rem}

/* Quick challenge never navigates away; AJAX feedback is shown by the RT toast. */
.rt-truco-challenge-btn[disabled]{opacity:.62;cursor:wait;transform:none!important}

/* Mobile: header/hamburger must remain reachable after a long feed scroll. */
@media(max-width:900px){.rtp-topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:1400!important}.rtp-main{padding-top:84px!important}.admin-bar .rtp-topbar{top:46px!important}.admin-bar .rtp-main{padding-top:130px!important}}
@media(min-width:783px) and (max-width:900px){.admin-bar .rtp-topbar{top:32px!important}.admin-bar .rtp-main{padding-top:116px!important}}

/* Realtime private messaging. */
.rt-thread-messages{scroll-behavior:smooth}.rt-message-reply.is-sending{opacity:.72;pointer-events:none}.rt-message-live-state{margin-left:auto;color:var(--rtp-muted);font-size:.68rem;font-weight:750}.rt-thread-message.is-just-added{animation:rtMessageIn .22s ease-out}@keyframes rtMessageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Frontend service pages: reports, news and credits. */
.rt-service-page{width:min(980px,calc(100% - 24px));margin:0 auto;display:grid;gap:18px}.rt-service-page>header{padding:24px;border:1px solid var(--rtp-line);border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 9%,var(--rtp-surface)),var(--rtp-surface));box-shadow:var(--rtp-shadow)}.rt-service-page>header small{color:var(--rtp-primary);font-size:.66rem;font-weight:950;letter-spacing:.11em}.rt-service-page>header h1{margin:4px 0;font-size:clamp(1.7rem,4vw,2.5rem)}.rt-service-page>header p{margin:0;color:var(--rtp-muted)}.rt-service-form{display:grid;gap:15px;padding:22px;border:1px solid var(--rtp-line);border-radius:20px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rt-service-form label{display:grid;gap:7px}.rt-service-form label>span{font-weight:850}.rt-service-form input,.rt-service-form textarea,.rt-service-form select{width:100%;padding:12px 13px;border:1px solid var(--rtp-line);border-radius:13px;background:var(--rtp-surface-2);color:var(--rtp-text)}
.rt-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rt-news-card{overflow:hidden;border:1px solid var(--rtp-line);border-radius:20px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rt-news-cover{display:block;aspect-ratio:16/8;overflow:hidden}.rt-news-cover img{width:100%;height:100%;object-fit:cover;display:block}.rt-news-card>div{padding:18px}.rt-news-card time{color:var(--rtp-muted);font-size:.7rem;font-weight:800}.rt-news-card h2{margin:5px 0 8px;font-size:1.15rem}.rt-news-card p{color:var(--rtp-muted);font-size:.84rem}
.rt-credit-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rt-credit-balances article{display:flex;gap:13px;align-items:center;padding:18px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rt-credit-balances article>span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-size:1.25rem}.rt-credit-balances small{display:block;color:var(--rtp-muted);font-size:.62rem;font-weight:950;letter-spacing:.08em}.rt-credit-balances strong{display:block;font-size:1.45rem}.rt-credit-balances p{margin:0;color:var(--rtp-muted);font-size:.72rem}.rt-showcase-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rt-showcase-grid>section{padding:20px;border:1px solid var(--rtp-line);border-radius:20px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rt-showcase-grid h2{margin-top:0}.rt-trophy-showcase,.rt-market-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rt-trophy-showcase article,.rt-market-showcase article{min-width:0;padding:12px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2);text-align:center}.rt-trophy-showcase article>span,.rt-market-showcase article>span{font-size:1.6rem}.rt-trophy-showcase strong,.rt-market-showcase strong{display:block;margin-top:5px;font-size:.75rem;overflow:hidden;text-overflow:ellipsis}.rt-trophy-showcase small{display:block;color:var(--rtp-muted);font-size:.62rem}.rt-showcase-empty{color:var(--rtp-muted)}
@media(max-width:720px){.rt-news-grid,.rt-credit-balances,.rt-showcase-grid{grid-template-columns:1fr}.rt-trophy-showcase,.rt-market-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* RT Platform 12.4 — connected profile sections. */
.rtp-profile-section-card{margin-top:18px;padding:18px;border:1px solid var(--rtp-line);border-radius:18px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow-sm)}
.rtp-profile-section-card>header{margin-bottom:14px}.rtp-profile-section-card>header small{display:block;color:var(--rtp-muted);font-size:.7rem;font-weight:900;letter-spacing:.12em}.rtp-profile-section-card>header h2{margin:4px 0 0;font-size:1.05rem}
.rtp-profile-empty{padding:28px 16px;text-align:center;color:var(--rtp-muted)}.rtp-profile-empty>span{display:block;margin-bottom:8px;font-size:1.8rem}.rtp-profile-empty strong{display:block;color:var(--rtp-text);margin-bottom:4px}
.rtp-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rtp-profile-field{padding:12px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2)}.rtp-profile-field small{display:block;margin-bottom:5px;color:var(--rtp-muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.rtp-profile-friend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rtp-profile-friend-card a{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface-2);color:var(--rtp-text);text-decoration:none}.rtp-profile-friend-card img{width:48px;height:48px;border-radius:50%;object-fit:cover}.rtp-profile-friend-card strong,.rtp-profile-friend-card small{display:block}.rtp-profile-friend-card small{color:var(--rtp-muted);margin-top:2px}
.rtp-profile-activity-list .rtp-activity-card{margin-left:0!important;margin-right:0!important}
@media(max-width:640px){.rtp-profile-fields,.rtp-profile-friend-grid{grid-template-columns:1fr}}

/* RT 12.4 — Credits token card mirrors the gold token chip from the sidebar. */
.rt-credit-balances .is-tokens{position:relative;overflow:hidden;border-color:rgba(212,168,67,.65)!important;background:linear-gradient(145deg,color-mix(in srgb,#d4a843 13%,var(--rtp-surface)),var(--rtp-surface))!important;box-shadow:0 12px 30px rgba(212,168,67,.12),inset 0 0 0 1px rgba(255,224,139,.14)}
.rt-credit-balances .is-tokens>span{display:grid!important;place-items:center;width:48px;height:48px;border:2px solid #d4a843;border-radius:50%;color:#d4a843!important;background:rgba(212,168,67,.08);box-shadow:0 0 0 5px rgba(212,168,67,.07);animation:rt-token-glow 2.8s ease-in-out infinite}
.rt-credit-balances .is-tokens strong{color:#d4a843}.rt-credit-balances .is-tokens:after{content:"";position:absolute;inset:-45% auto auto -15%;width:70%;height:180%;transform:rotate(20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent);animation:rt-credit-shine 4.2s linear infinite;pointer-events:none}
@keyframes rt-token-glow{0%,100%{box-shadow:0 0 0 5px rgba(212,168,67,.06)}50%{box-shadow:0 0 0 8px rgba(212,168,67,.12)}}@keyframes rt-credit-shine{0%{left:-65%}55%,100%{left:120%}}


/* ==========================================================
   RT Platform 12.4.1 — dark feed/community visual hotfix only
   ========================================================== */
/* Kill residual BuddyPress light surfaces inside activity cards. */
html[data-theme="dark"] #buddypress .rtp-activity-card,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-content,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-inner,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-meta,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-meta.action,
html[data-theme="dark"] #buddypress .rtp-activity-card .generic-button,
html[data-theme="dark"] #buddypress .rtp-activity-card .acomment-options,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-comments,
html[data-theme="dark"] #buddypress .rtp-activity-card .acomment-content,
html[data-theme="dark"] #buddypress .rtp-activity-card .acomment-meta {
  background:transparent!important;
  color:var(--rtp-text)!important;
}
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-inner {
  border:0!important;
  box-shadow:none!important;
  min-height:0!important;
}
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-inner:empty,
html[data-theme="dark"] #buddypress .rtp-activity-card .rtp-feed-body:empty {
  display:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions {
  background:transparent!important;
  border-top-color:#263548!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta,
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta.action {
  background:#111c27!important;
  border:1px solid #263548!important;
  border-radius:14px!important;
  padding:7px!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta a,
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta button,
html[data-theme="dark"] #buddypress .rtp-feed-actions .generic-button a {
  background:transparent!important;
  color:#aebbd0!important;
  border-color:transparent!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta a:hover,
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta button:hover,
html[data-theme="dark"] #buddypress .rtp-feed-actions .generic-button a:hover {
  background:#1c2a39!important;
  color:#f5f7fb!important;
}
html[data-theme="dark"] #buddypress .rtp-comments-toggle {
  background:#111c27!important;
  border-color:#2b3a4d!important;
  color:#9a8cff!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-comments {
  background:#0f1923!important;
  border:1px solid #263548!important;
  color:var(--rtp-text)!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-comments textarea,
html[data-theme="dark"] #buddypress .rtp-feed-comments input[type="text"] {
  background:#151f2d!important;
  color:#f5f7fb!important;
  border-color:#2b3a4d!important;
}
/* BuddyPress may inject generic white containers around activity content. */
html[data-theme="dark"] #buddypress .activity-list .activity-item .activity-content > div,
html[data-theme="dark"] #buddypress .activity-list .activity-item .activity-content > p,
html[data-theme="dark"] #buddypress .activity-list .activity-item .activity-meta.action {
  border-color:#263548!important;
}
html[data-theme="dark"] #buddypress .activity-list .activity-item .activity-content > div:not(.rtp-activity-media):not(.rtp-reactions):not(.rtp-feed-actions):not(.rtp-feed-comments) {
  background:transparent!important;
}
/* Directory tabs and community action controls must remain dark. */
html[data-theme="dark"] #buddypress .members-type-navs,
html[data-theme="dark"] #buddypress .bp-navs,
html[data-theme="dark"] #buddypress .members-directory-wrapper .subnav-filters {
  background:#171b26!important;
  border-color:#2b3244!important;
}
html[data-theme="dark"] #buddypress .members-type-navs li a,
html[data-theme="dark"] #buddypress .bp-navs li a {
  background:#202636!important;
  color:#a9b3c7!important;
  border-color:#2b3244!important;
}
html[data-theme="dark"] #buddypress .members-type-navs li.current a,
html[data-theme="dark"] #buddypress .members-type-navs li.selected a,
html[data-theme="dark"] #buddypress .bp-navs li.current a,
html[data-theme="dark"] #buddypress .bp-navs li.selected a,
html[data-theme="dark"] #buddypress .members-type-navs li a:hover,
html[data-theme="dark"] #buddypress .bp-navs li a:hover {
  background:linear-gradient(135deg,#6258ff,#7a5cff)!important;
  color:#fff!important;
}
html[data-theme="dark"] #buddypress .rtp-member-bp-buttons .generic-button a,
html[data-theme="dark"] #buddypress .rtp-member-bp-buttons .message-button a,
html[data-theme="dark"] #buddypress .rtp-member-bp-buttons .pending_friend,
html[data-theme="dark"] #buddypress .rtp-member-bp-buttons .awaiting_response_friend {
  background:#202636!important;
  color:#eef2fb!important;
  border-color:#303a4d!important;
}
/* Gamer challenge CTA — still consistent with RT's minimal UI. */
.rt-native-quick-challenge .rt-truco-challenge-btn,
.rt-community-challenge .rt-truco-challenge-btn {
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:40px!important;
  padding:9px 15px!important;
  border:1px solid color-mix(in srgb,#8b7cff 68%,var(--rtp-line))!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#4736d9 0%,#6e54ff 52%,#3ec7d6 135%)!important;
  color:#fff!important;
  letter-spacing:.02em!important;
  text-shadow:0 1px 0 rgba(0,0,0,.16)!important;
  box-shadow:0 8px 22px rgba(92,72,255,.25),inset 0 1px 0 rgba(255,255,255,.18)!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.rt-native-quick-challenge .rt-truco-challenge-btn:before,
.rt-community-challenge .rt-truco-challenge-btn:before {
  content:"⚡";
  margin-right:6px;
  filter:drop-shadow(0 0 6px rgba(255,232,95,.65));
}
.rt-native-quick-challenge .rt-truco-challenge-btn:after,
.rt-community-challenge .rt-truco-challenge-btn:after {
  content:"";
  position:absolute;
  z-index:-1;
  top:-80%;left:-35%;
  width:28%;height:260%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transition:left .34s ease;
}
.rt-native-quick-challenge .rt-truco-challenge-btn:hover,
.rt-community-challenge .rt-truco-challenge-btn:hover {
  transform:translateY(-1px) scale(1.01)!important;
  filter:saturate(1.08)!important;
  box-shadow:0 11px 28px rgba(92,72,255,.34),0 0 0 3px rgba(110,84,255,.09)!important;
}
.rt-native-quick-challenge .rt-truco-challenge-btn:hover:after,
.rt-community-challenge .rt-truco-challenge-btn:hover:after { left:118%; }
html[data-theme="dark"] .rt-native-quick-challenge .rt-truco-challenge-btn,
html[data-theme="dark"] .rt-community-challenge .rt-truco-challenge-btn {
  border-color:#766cff!important;
  box-shadow:0 9px 24px rgba(95,76,255,.35),0 0 18px rgba(62,199,214,.08)!important;
}

/* ==========================================================
   RT Platform 12.4.2 — Carbon Gamer dark polish + challenge CTA
   Dark mode only. Inspired by the visual idea of dark/carbon
   presets, but implemented with RT Platform's own tokens/styles.
   ========================================================== */
:root[data-theme="dark"]{
  --rtp-bg:#080b12;
  --rtp-surface:#0f141e;
  --rtp-surface-2:#171e2a;
  --rtp-text:#f4f1e8;
  --rtp-muted:#9da6b8;
  --rtp-line:#2a3140;
  --rtp-primary:#7567ff;
  --rtp-primary-2:#9a70ff;
  --rtp-gold:#d4a843;
  --rtp-gold-soft:#f1c75c;
  --rtp-shadow:0 18px 52px rgba(0,0,0,.42);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .rtp-shell,
html[data-theme="dark"] .rtp-main{
  background:#080b12!important;
}
html[data-theme="dark"] .rtp-topbar{
  background:rgba(11,15,23,.96)!important;
  border-bottom-color:rgba(212,168,67,.16)!important;
  box-shadow:0 10px 34px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] .rtp-icon-button,
html[data-theme="dark"] .rtp-mobile-nav,
html[data-theme="dark"] .rtp-sidebar-panel,
html[data-theme="dark"] .rtp-card{
  background:#0f141e!important;
  border-color:#27303e!important;
}
html[data-theme="dark"] .rtp-icon-button:hover,
html[data-theme="dark"] .rtp-mobile-nav>a:hover{
  border-color:rgba(212,168,67,.42)!important;
  color:var(--rtp-gold-soft)!important;
}
html[data-theme="dark"] .rtp-mobile-nav{
  box-shadow:0 22px 56px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] .rtp-mobile-nav>a.is-active{
  color:var(--rtp-gold-soft)!important;
}
html[data-theme="dark"] .rtp-mobile-nav>a.is-active svg{
  filter:drop-shadow(0 0 9px rgba(212,168,67,.34))!important;
}

/* Dark feed: deeper carbon surfaces + restrained gold trim. */
html[data-theme="dark"] #buddypress .activity-list .rtp-activity-card{
  background:#0f141e!important;
  border-color:#242d3a!important;
  box-shadow:0 16px 42px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.018)!important;
}
html[data-theme="dark"] #buddypress .activity-list .rtp-activity-card:hover{
  border-color:rgba(212,168,67,.22)!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-header,
html[data-theme="dark"] #buddypress .rtp-feed-body,
html[data-theme="dark"] #buddypress .rtp-feed-body p,
html[data-theme="dark"] #buddypress .rtp-feed-body div,
html[data-theme="dark"] #buddypress .rtp-feed-content{
  color:#e8eaf0!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-body,
html[data-theme="dark"] #buddypress .rtp-feed-body>div,
html[data-theme="dark"] #buddypress .rtp-feed-body>p,
html[data-theme="dark"] #buddypress .rtp-feed-body>a,
html[data-theme="dark"] #buddypress .rtp-feed-content>.activity-inner{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] #buddypress .rtp-reactions{
  background:#151c28!important;
  border-color:#2a3342!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}
html[data-theme="dark"] #buddypress .rtp-reaction:hover,
html[data-theme="dark"] #buddypress .rtp-reaction.is-active{
  background:#1b2432!important;
  border-color:rgba(212,168,67,.34)!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta,
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta.action{
  background:#0c121b!important;
  border-color:#242e3b!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta a:hover,
html[data-theme="dark"] #buddypress .rtp-feed-actions .activity-meta button:hover,
html[data-theme="dark"] #buddypress .rtp-feed-actions .generic-button a:hover{
  background:#171f2b!important;
  color:var(--rtp-gold-soft)!important;
}
html[data-theme="dark"] #buddypress .rtp-comments-toggle{
  color:var(--rtp-gold-soft)!important;
  background:transparent!important;
  border-color:transparent!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-comments{
  background:#0b111a!important;
  border-color:#26303d!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-comments textarea,
html[data-theme="dark"] #buddypress .rtp-feed-comments input[type="text"],
html[data-theme="dark"] #buddypress .rtp-feed-comments input[type="search"]{
  background:#141b27!important;
  color:#f4f1e8!important;
  border-color:#2d3747!important;
}
html[data-theme="dark"] #buddypress .rtp-feed-comments input[type="submit"]{
  background:linear-gradient(135deg,#8b6f20,#d4a843)!important;
  color:#12100a!important;
  box-shadow:0 8px 22px rgba(212,168,67,.18)!important;
}

/* Any legacy/BuddyPress white activity fragments inherit the carbon card. */
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-content,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-inner,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-comments,
html[data-theme="dark"] #buddypress .rtp-activity-card .acomment-content,
html[data-theme="dark"] #buddypress .rtp-activity-card .acomment-meta,
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-meta.action{
  background-color:transparent!important;
  color:#e8eaf0!important;
}
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-inner [style*="background"],
html[data-theme="dark"] #buddypress .rtp-activity-card .activity-content [style*="background"]{
  background-color:transparent!important;
}

/* Community: darker cards, gold micro-accent, no pale blocks. */
html[data-theme="dark"] #buddypress .rtp-member-card-inner{
  background:#0f141e!important;
  border-color:#27303e!important;
  box-shadow:0 18px 46px rgba(0,0,0,.36)!important;
}
html[data-theme="dark"] #buddypress .rtp-member-card-inner:hover{
  border-color:rgba(212,168,67,.34)!important;
  box-shadow:0 20px 50px rgba(0,0,0,.42),0 0 0 1px rgba(212,168,67,.07)!important;
}
html[data-theme="dark"] #buddypress .rtp-member-stats{
  background:#141b27!important;
  border-color:#27303e!important;
}
html[data-theme="dark"] #buddypress .rtp-member-stats>div+div{
  border-color:#27303e!important;
}
html[data-theme="dark"] #buddypress .rtp-member-rank-name{
  color:#8f82ff!important;
}
html[data-theme="dark"] #buddypress .members-type-navs,
html[data-theme="dark"] #buddypress .bp-navs,
html[data-theme="dark"] #buddypress .members-directory-wrapper .subnav-filters{
  background:#0f141e!important;
  border-color:#27303e!important;
}
html[data-theme="dark"] #buddypress .members-type-navs li a,
html[data-theme="dark"] #buddypress .bp-navs li a{
  background:#171e2a!important;
  color:#a6afc0!important;
  border-color:#2a3342!important;
}
html[data-theme="dark"] #buddypress .members-type-navs li.current a,
html[data-theme="dark"] #buddypress .members-type-navs li.selected a,
html[data-theme="dark"] #buddypress .bp-navs li.current a,
html[data-theme="dark"] #buddypress .bp-navs li.selected a{
  background:linear-gradient(135deg,#4f43d7,#7567ff)!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 rgba(212,168,67,.75),0 9px 22px rgba(90,76,230,.22)!important;
}

/* Challenge button: target the real bare button returned by Core. */
.rt-truco-challenge-btn,
#buddypress .rt-truco-challenge-btn,
.rtp-member-bp-buttons .rt-truco-challenge-btn,
.rtp-member-profile-actions .rt-truco-challenge-btn{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:42px!important;
  padding:9px 16px!important;
  border:1px solid #d4a843!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#17131f 0%,#33266f 50%,#171b26 100%)!important;
  color:#f6d36c!important;
  font-size:.72rem!important;
  font-weight:950!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
  box-shadow:0 8px 24px rgba(91,72,221,.28),0 0 0 1px rgba(212,168,67,.08),inset 0 1px 0 rgba(255,255,255,.10)!important;
  text-shadow:0 1px 0 #000!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.rt-truco-challenge-btn:before,
#buddypress .rt-truco-challenge-btn:before{
  content:"VS"!important;
  display:inline-grid!important;
  place-items:center!important;
  min-width:24px!important;
  height:20px!important;
  margin-right:7px!important;
  padding:0 4px!important;
  border:1px solid rgba(246,211,108,.58)!important;
  border-radius:7px!important;
  background:rgba(212,168,67,.10)!important;
  color:#f6d36c!important;
  font-size:.55rem!important;
  line-height:1!important;
  box-shadow:0 0 12px rgba(212,168,67,.14)!important;
}
.rt-truco-challenge-btn:after,
#buddypress .rt-truco-challenge-btn:after{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  inset:-80% auto auto -35%!important;
  width:26%!important;
  height:270%!important;
  transform:rotate(24deg)!important;
  background:linear-gradient(90deg,transparent,rgba(246,211,108,.22),transparent)!important;
  transition:left .32s ease!important;
}
.rt-truco-challenge-btn:hover,
#buddypress .rt-truco-challenge-btn:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.08) saturate(1.08)!important;
  box-shadow:0 11px 30px rgba(91,72,221,.34),0 0 18px rgba(212,168,67,.16),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
.rt-truco-challenge-btn:hover:after,
#buddypress .rt-truco-challenge-btn:hover:after{left:118%!important}
.rt-truco-challenge-btn[disabled],
#buddypress .rt-truco-challenge-btn[disabled]{opacity:.58!important;filter:saturate(.55)!important;box-shadow:none!important}

/* Small gold details, not a full recolor. */
html[data-theme="dark"] .rtp-rank-number,
html[data-theme="dark"] .rtp-member-rank-number,
html[data-theme="dark"] .rtp-feed-rank{
  box-shadow:0 0 0 1px rgba(212,168,67,.18),0 5px 16px rgba(0,0,0,.26)!important;
}
html[data-theme="dark"] .rtp-token-chip,
html[data-theme="dark"] .rtp-profile-token-chip{
  color:#e0b950!important;
  border-color:rgba(212,168,67,.52)!important;
  background:rgba(212,168,67,.07)!important;
}


/* ==========================================================
   RT Platform 12.4.3 — requested focused changes only
   Community cards/list + Truco challenge + mobile scroll chrome
   ========================================================== */
.rtp-community-viewbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 14px}.rtp-community-viewbar>strong{color:var(--rtp-muted);font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.rtp-community-viewbuttons{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--rtp-line);border-radius:13px;background:var(--rtp-surface)}.rtp-community-viewbuttons button{min-height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--rtp-muted);font-size:.7rem;font-weight:900;cursor:pointer;transition:.18s ease}.rtp-community-viewbuttons button:hover,.rtp-community-viewbuttons button.is-active{background:color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface-2));color:var(--rtp-primary)}
#buddypress .rtp-members-grid.is-list{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}#buddypress .rtp-members-grid.is-list>li.rtp-member-card{width:100%!important;margin:0!important}#buddypress .rtp-members-grid.is-list .rtp-member-card-inner{min-height:88px!important;display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;align-items:center!important;padding:10px 12px!important;overflow:visible!important}#buddypress .rtp-members-grid.is-list .rtp-member-cover{display:none!important}#buddypress .rtp-members-grid.is-list .rtp-member-avatar-zone{position:static!important;width:64px!important;height:64px!important;margin:0!important;align-self:center!important}#buddypress .rtp-members-grid.is-list .rtp-member-avatar{width:64px!important;height:64px!important;margin:0!important}#buddypress .rtp-members-grid.is-list .rtp-member-avatar-ring{width:64px!important;height:64px!important}#buddypress .rtp-members-grid.is-list .rtp-member-rank-number{min-width:23px!important;height:23px!important;font-size:.58rem!important;border-width:2px!important}#buddypress .rtp-members-grid.is-list .rtp-member-info{min-width:0!important;display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(250px,1.35fr) auto!important;align-items:center!important;column-gap:14px!important;padding:0!important;text-align:left!important}#buddypress .rtp-members-grid.is-list .rtp-member-name{grid-column:1;align-self:end!important}#buddypress .rtp-members-grid.is-list .rtp-member-rank-name{grid-column:1;align-self:start!important}#buddypress .rtp-members-grid.is-list .rtp-member-update,#buddypress .rtp-members-grid.is-list .rtp-member-meta{display:none!important}#buddypress .rtp-members-grid.is-list .rtp-member-stats{grid-column:2;grid-row:1/3;margin:0!important}#buddypress .rtp-members-grid.is-list .rtp-member-actions{grid-column:3;grid-row:1/3;margin:0!important;justify-content:flex-end!important;white-space:nowrap}#buddypress .rtp-members-grid.is-list .rtp-member-view{display:none!important}
.rtp-profile-friend-card{display:flex!important;align-items:center!important;gap:10px!important}.rtp-profile-friend-main{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important}.rtp-profile-friend-challenge{flex:0 0 auto!important;margin-left:auto!important}.rtp-profile-friend-challenge .rt-native-quick-challenge{margin:0!important}.rtp-profile-friend-challenge .rt-truco-challenge-btn{min-height:36px!important;padding:7px 10px!important;font-size:.66rem!important}
@media(max-width:760px){#buddypress .rtp-members-grid.is-list .rtp-member-card-inner{grid-template-columns:64px minmax(0,1fr)!important;padding:9px!important}#buddypress .rtp-members-grid.is-list .rtp-member-avatar-zone,#buddypress .rtp-members-grid.is-list .rtp-member-avatar,#buddypress .rtp-members-grid.is-list .rtp-member-avatar-ring{width:54px!important;height:54px!important}#buddypress .rtp-members-grid.is-list .rtp-member-info{grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important}#buddypress .rtp-members-grid.is-list .rtp-member-stats{display:none!important}#buddypress .rtp-members-grid.is-list .rtp-member-actions{grid-column:2;grid-row:1/3}#buddypress .rtp-members-grid.is-list .rtp-member-bp-buttons{justify-content:flex-end!important}.rtp-community-viewbar{justify-content:space-between}.rtp-community-viewbar>strong{display:block}.rtp-profile-friend-challenge .rt-truco-challenge-btn{min-width:92px!important}}
@media(max-width:430px){.rtp-community-viewbuttons button span{display:none}.rtp-profile-friend-card{padding:10px!important}.rtp-profile-friend-challenge .rt-truco-challenge-btn{min-width:0!important;padding:7px 8px!important}}
@media(max-width:900px){.rtp-topbar,.rtp-mobile-nav{transition:transform .22s ease,opacity .18s ease!important;will-change:transform}.rtp-topbar{transform:translateY(0)!important;opacity:1!important}.rtp-mobile-nav{transform:translateY(calc(100% + 28px))!important;opacity:0!important;pointer-events:none!important}body.rtp-scroll-down .rtp-topbar{transform:translateY(calc(-100% - 50px))!important;opacity:0!important;pointer-events:none!important}body.rtp-scroll-down .rtp-mobile-nav{transform:translateY(0)!important;opacity:1!important;pointer-events:auto!important}body.rtp-scroll-top .rtp-topbar{transform:translateY(0)!important;opacity:1!important;pointer-events:auto!important}body.rtp-scroll-top .rtp-mobile-nav{transform:translateY(calc(100% + 28px))!important;opacity:0!important;pointer-events:none!important}body.rtp-focus-app .rtp-mobile-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){.rtp-topbar,.rtp-mobile-nav,.rtp-community-viewbuttons button{transition:none!important}}


/* RT 12.5 — focused integration refinements */
.rtp-sidebar-currencies{display:flex!important;flex-wrap:wrap;gap:5px;margin-top:6px}
.rtp-sidebar-currencies .rtp-token-chip{margin-top:0!important;position:relative;overflow:hidden;animation:rtp-currency-pulse 3s ease-in-out infinite}
.rtp-sidebar-currencies .rtp-token-chip:after{content:"";position:absolute;top:-70%;left:-55%;width:35%;height:240%;transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);animation:rtp-currency-shine 4.5s ease-in-out infinite;pointer-events:none}
.rtp-sidebar-currencies .rtp-token-chip.is-silver{border-color:color-mix(in srgb,#cbd5e1 62%,var(--rtp-line));background:linear-gradient(135deg,color-mix(in srgb,#e2e8f0 13%,var(--rtp-surface)),var(--rtp-surface));color:#94a3b8;box-shadow:0 0 18px rgba(203,213,225,.10)}
@keyframes rtp-currency-pulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
@keyframes rtp-currency-shine{0%,58%{left:-55%}82%,100%{left:125%}}
/* Truco Native: no card/page container around the game. */
.rtp-page-truco-full{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.rtp-truco-page-native{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.rtp-focus-app .rtp-main{padding-left:0!important;padding-right:0!important}
/* Opening the mobile drawer removes the top chrome instead of layering it over the drawer. */
@media(max-width:900px){body.rtp-menu-open .rtp-topbar{transform:translateY(calc(-100% - 55px))!important;opacity:0!important;pointer-events:none!important}.rtp-sidebar,.rtp-sidebar-backdrop{z-index:1505!important}}
@media(prefers-reduced-motion:reduce){.rtp-sidebar-currencies .rtp-token-chip,.rtp-sidebar-currencies .rtp-token-chip:after{animation:none!important}}

/* RT Platform 12.6 — editable menus, drawer and install control. */
.rtp-top-spacer{min-width:0}.rtp-top-label{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.rtp-top-actions .rtp-icon-button.is-active{color:var(--rtp-primary);border-color:color-mix(in srgb,var(--rtp-primary) 42%,var(--rtp-line));box-shadow:0 0 18px color-mix(in srgb,var(--rtp-primary) 16%,transparent)}
.rtp-install-rt{width:calc(100% - 24px);margin:10px 12px 6px;padding:11px 12px;display:flex;align-items:center;gap:10px;border:1px solid color-mix(in srgb,var(--rtp-primary) 42%,var(--rtp-line));border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 18%,var(--rtp-surface)),color-mix(in srgb,var(--rtp-primary-2) 12%,var(--rtp-surface)));color:var(--rtp-text);cursor:pointer;text-align:left;box-shadow:0 9px 24px color-mix(in srgb,var(--rtp-primary) 12%,transparent);animation:rt-install-pulse 2.8s ease-in-out infinite}.rtp-install-rt[hidden]{display:none!important}.rtp-install-rt i{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--rtp-primary);color:#fff}.rtp-install-rt i svg{width:18px;height:18px}.rtp-install-rt span{display:grid}.rtp-install-rt strong{font-size:.78rem}.rtp-install-rt small{color:var(--rtp-muted);font-size:.62rem}.rtp-install-rt:hover{transform:translateY(-1px);filter:brightness(1.06)}@keyframes rt-install-pulse{0%,100%{box-shadow:0 9px 24px color-mix(in srgb,var(--rtp-primary) 10%,transparent)}50%{box-shadow:0 9px 30px color-mix(in srgb,var(--rtp-primary) 25%,transparent)}}
.rtp-sidebar-user .rtp-token-chip{animation:rtp-currency-pulse 2.4s ease-in-out infinite!important}.rtp-sidebar-user .rtp-token-chip:after{animation:rtp-currency-shine 3.8s ease-in-out infinite!important}
@media(max-width:900px){.rtp-topbar{grid-template-columns:auto auto 1fr auto!important}.rtp-top-spacer{display:block}.rtp-top-actions{grid-column:4}.rtp-brand{grid-column:2}.rtp-sidebar-toggle{grid-column:1}.rtp-mobile-nav{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important}}
@media(prefers-reduced-motion:reduce){.rtp-install-rt{animation:none!important}}

/* RT 12.7 — audited navigation, sidebar card, GamiPress skin and cosmetics. */
@media(max-width:900px){
  .rtp-sidebar-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(5,7,14,.55)!important}
  .rtp-main{padding-top:8px!important}
}
.rtp-sidebar-user{position:relative;overflow:hidden;isolation:isolate}
.rtp-sidebar-user:after{content:"";position:absolute;z-index:-1;top:-80%;left:-55%;width:32%;height:270%;transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);animation:rtpSidebarCardShine 5.2s ease-in-out infinite;pointer-events:none}
@keyframes rtpSidebarCardShine{0%,60%{left:-55%;opacity:0}70%{opacity:1}88%,100%{left:135%;opacity:0}}
.rtp-sidebar-currencies .rtp-token-chip,.rtp-sidebar-user .rtp-token-chip{animation:none!important}
.rtp-sidebar-currencies .rtp-token-chip:after,.rtp-sidebar-user .rtp-token-chip:after{display:none!important}
.rtp-mobile-nav>a{position:relative}.rtp-mobile-badge{position:absolute;top:0;right:calc(50% - 22px);display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--rtp-surface);border-radius:99px;background:#f0445f;color:#fff;font-size:.52rem;font-weight:950}
.rtp-mobile-nav a.rt-truco-menu-alert,.rtp-mobile-nav a.rt-truco-menu-alert svg,.rtp-side-link.rt-truco-menu-alert,.rtp-icon-button.rt-truco-menu-alert{color:#ff405f!important}
.rtp-mobile-nav a.rt-truco-menu-alert:before{content:"";position:absolute;top:2px;right:calc(50% - 20px);width:9px;height:9px;border-radius:50%;background:#ff405f;box-shadow:0 0 0 4px rgba(255,64,95,.13),0 0 16px rgba(255,64,95,.75);animation:rtpAlertPulse 1.25s ease-in-out infinite}
@keyframes rtpAlertPulse{50%{transform:scale(1.25);opacity:.72}}

/* GamiPress is data; RT Platform owns the presentation. */
.rtp-app-page-content .gamipress-points,.rtp-app-page-content .gamipress-rank,.rtp-app-page-content .gamipress-achievement,.rtp-app-page-content .gamipress-achievements-list,.rtp-app-page-content .gamipress-ranks-list,.rtp-app-page-content .gamipress-earnings,.rtp-app-page-content .gamipress-leaderboard,.rtp-gamipress-panel{color:var(--rtp-text)}
.rtp-gamipress-ranking-stack{display:grid;gap:18px;margin:18px auto;width:min(1100px,100%)}
.rtp-gamipress-panel{position:relative;overflow:hidden;padding:18px;border:1px solid color-mix(in srgb,var(--rtp-primary) 24%,var(--rtp-line));border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--rtp-primary) 5%,var(--rtp-surface)),var(--rtp-surface));box-shadow:var(--rtp-shadow)}
.rtp-gamipress-panel:before{content:"";position:absolute;inset:0 auto auto -35%;width:32%;height:2px;background:linear-gradient(90deg,transparent,var(--rtp-primary),#e6b94e,transparent);animation:rtpRankScan 5s ease-in-out infinite}
@keyframes rtpRankScan{0%,55%{left:-35%}85%,100%{left:110%}}
.rtp-app-page-content [class*="gamipress-"] table,.rtp-gamipress-panel table{width:100%;border-collapse:separate;border-spacing:0 8px;background:transparent!important}
.rtp-app-page-content [class*="gamipress-"] th,.rtp-gamipress-panel th{padding:10px 12px;color:var(--rtp-muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;border:0!important}
.rtp-app-page-content [class*="gamipress-"] td,.rtp-gamipress-panel td{padding:13px 12px;background:var(--rtp-surface-2)!important;border-top:1px solid var(--rtp-line)!important;border-bottom:1px solid var(--rtp-line)!important;color:var(--rtp-text)!important}
.rtp-app-page-content [class*="gamipress-"] img{border-radius:14px}.rtp-app-page-content [class*="gamipress-"] a{color:var(--rtp-primary);font-weight:800}
.rtp-app-page-content [class*="gamipress-"] button,.rtp-app-page-content [class*="gamipress-"] input[type=submit],.rtp-gamipress-panel button{border:0;border-radius:12px;min-height:40px;padding:0 14px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff;font-weight:900;cursor:pointer}
.rtp-app-page-content .gamipress-points-type,.rtp-app-page-content .gamipress-user-points,.rtp-app-page-content .gamipress-rank,.rtp-app-page-content .gamipress-achievement{border:1px solid var(--rtp-line)!important;border-radius:18px!important;background:var(--rtp-surface)!important;padding:14px!important;box-shadow:0 10px 28px rgba(10,14,28,.08)}

/* Rank halo + equipped cosmetic slots. */
.rtp-member-profile-avatar{transition:filter .25s ease,transform .25s ease}.rtp-member-profile-avatar:hover{transform:translateY(-2px);filter:drop-shadow(0 0 14px color-mix(in srgb,var(--rtp-primary) 25%,transparent))}
.rtp-member-profile-avatar.aureola-solar{background:conic-gradient(#ffd76a var(--rtp-progress),#6f4a16 0)!important}.rtp-member-profile-avatar.aureola-neon{background:conic-gradient(#35f2ff var(--rtp-progress),#8b38ff 0)!important}.rtp-member-profile-avatar.frame-elite .rtp-member-avatar-ring{box-shadow:inset 0 0 0 2px #e6b94e,0 0 18px rgba(230,185,78,.22)}
.rtp-member-rank-number.rank-style-gold{background:linear-gradient(135deg,#ffe18a,#b97916)!important;color:#2b1900!important}.rtp-member-rank-number.rank-style-neon{background:linear-gradient(135deg,#25e5ff,#8d43ff)!important;box-shadow:0 0 16px rgba(74,214,255,.45)}
.rtp-profile-pet{position:absolute;z-index:5;left:-17px;bottom:4px;display:grid;place-items:center;width:42px;height:42px;border:3px solid var(--rtp-surface);border-radius:50%;background:var(--rtp-surface-2);font-size:22px;filter:drop-shadow(0 8px 10px rgba(0,0,0,.2));animation:rtpPetFloat 3s ease-in-out infinite}
@keyframes rtpPetFloat{50%{transform:translateY(-4px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.rtp-sidebar-user:after,.rtp-gamipress-panel:before,.rtp-profile-pet,.rtp-mobile-nav a.rt-truco-menu-alert:before{animation:none!important}}
/* Same RT skin also applies when a GamiPress shortcode is placed on any normal WordPress page. */
.gamipress-points,.gamipress-user-points,.gamipress-rank,.gamipress-ranks,.gamipress-achievement,.gamipress-achievements,.gamipress-earnings,.gamipress-leaderboard{color:var(--rtp-text)}
.gamipress-points a,.gamipress-rank a,.gamipress-achievement a,.gamipress-leaderboard a{color:var(--rtp-primary);font-weight:800}

/* RT 12.7.1 — drawer interaction and page spacing audit. */
.rtp-main{padding-top:12px!important}
@media(max-width:900px){
  .rtp-sidebar-backdrop{display:none!important;pointer-events:none!important;opacity:0!important}
  body.rtp-menu-open{overflow:auto!important}
  .rtp-sidebar{z-index:1600!important;pointer-events:auto!important}
  .rtp-sidebar a,.rtp-sidebar button{pointer-events:auto!important}
  .rtp-main{padding-top:0!important}
  .rtp-buddypress-shell{padding-top:8px!important}
}

/* RT 12.8 — correcciones finales de layout, instalación, auth y fotos */
body:not(.admin-bar) .rtp-main{padding-top:0!important}.rtp-main>.rtp-container:first-child,#buddypress>.bp-wrap:first-child{margin-top:0!important}.rtp-buddypress-shell{padding-top:0!important}
@media(max-width:900px){body:not(.admin-bar) .rtp-main{padding-top:64px!important}.rtp-main>.rtp-container:first-child{margin-top:0!important}}
.rtp-install-rt{min-height:62px!important;padding:13px 14px!important;border-radius:16px!important;position:relative;overflow:hidden}.rtp-install-rt:after{content:"";position:absolute;inset:-30% auto -30% -45%;width:30%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);animation:rt-install-shine 3.2s ease-in-out infinite}.rtp-install-rt i{width:40px!important;height:40px!important}.rtp-install-rt strong{font-size:.84rem!important}@keyframes rt-install-shine{0%,55%{left:-45%}85%,100%{left:125%}}
.rtp-auth-card{width:min(560px,calc(100% - 28px));margin:24px auto;padding:clamp(24px,5vw,42px);border:1px solid var(--rtp-line);border-radius:24px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rtp-auth-card h1{margin:8px 0 22px}.rtp-auth-form{display:grid;gap:14px}.rtp-auth-form label{display:grid;gap:6px;font-weight:800;font-size:.8rem}.rtp-auth-form input:not([type=checkbox]){width:100%;min-height:48px;padding:0 13px;border:1px solid var(--rtp-line);border-radius:12px;background:var(--rtp-surface-2);color:var(--rtp-text)}.rtp-password-wrap{display:flex;position:relative}.rtp-password-wrap input{padding-right:48px!important}.rtp-password-wrap button{position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;border-radius:10px;background:transparent;cursor:pointer}.rtp-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.rtp-auth-links{display:flex;justify-content:space-between;gap:12px;font-size:.75rem}.rtp-auth-notice{padding:11px 13px;margin-bottom:14px;border-radius:11px;background:color-mix(in srgb,var(--rtp-danger) 12%,var(--rtp-surface-2))}.rtp-auth-notice.is-success{background:color-mix(in srgb,var(--rtp-success) 12%,var(--rtp-surface-2))}.rtp-hp{position:absolute!important;left:-9999px!important}.rtp-home-hero{width:min(920px,calc(100% - 28px));margin:30px auto;padding:clamp(34px,8vw,90px) clamp(22px,7vw,72px);text-align:center;border:1px solid var(--rtp-line);border-radius:30px;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--rtp-primary) 25%,transparent),transparent 45%),var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rtp-home-hero h1{font-size:clamp(2rem,6vw,4.5rem);line-height:1;margin:12px 0}.rtp-legal h2{margin-top:28px}.rtp-profile-section-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.rtp-profile-section-card>header h2{margin:2px 0}.rtp-activity-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:12px;overflow:hidden;border-radius:16px}.rtp-activity-photo-grid.count-1{grid-template-columns:1fr}.rtp-activity-photo-grid img{display:block;width:100%;height:260px;object-fit:cover}.rtp-media-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.rtp-media-preview-item{position:relative}.rtp-media-preview-item img{width:100%;height:110px;object-fit:cover;border-radius:12px}.rtp-media-preview-item button{position:absolute;top:5px;right:5px;width:28px;height:28px;border:0;border-radius:50%;background:#111b;color:#fff;font-size:20px}.rtp-composer-media{padding:0 18px 16px}.rtp-media-add{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--rtp-line);border-radius:11px;background:var(--rtp-surface-2);font-weight:850;cursor:pointer}.rtp-composer-media small{margin-left:8px;color:var(--rtp-muted)}
@media(prefers-reduced-motion:reduce){.rtp-install-rt:after{animation:none!important}}

/* RT Platform 13.0 — layout limpio sin interferir con la toolbar de WordPress. */
.rtp-topbar{top:0!important}
.rtp-main,.rtp-buddypress-shell{padding-top:0!important}
.rtp-shell,.rtp-app-body,.rtp-main{margin-top:0!important}
body.admin-bar .rtp-topbar{top:32px!important}
body.admin-bar .rtp-main{padding-top:0!important}
@media(max-width:782px){body.admin-bar .rtp-topbar{top:46px!important}}
@media(max-width:900px){
  .rtp-topbar{position:sticky!important}
  .rtp-main,body:not(.admin-bar) .rtp-main{padding-top:0!important;margin-top:0!important}
}


/* RT Platform 12.8.3 — root DOM repair: one document + one shell only. */
.rtp-shell{min-height:0!important;height:auto!important}
.rtp-app-body{min-height:0!important}
/* RT 12.9 — editor de perfil, ubicación territorial y compositor de fotos unificado. */
.rtp-account-editor{width:min(820px,calc(100% - 24px));margin:0 auto;padding:24px;border:1px solid var(--rtp-line);border-radius:24px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow)}.rtp-account-editor>header{margin-bottom:8px}.rtp-account-editor>header h1{margin:5px 0}.rtp-account-editor>header p,.rtp-register-location>p,.rtp-location-privacy{color:var(--rtp-muted)}.rtp-location-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rtp-location-fields label{display:grid;gap:6px}.rtp-location-fields label:first-child,.rtp-location-fields label:last-child{grid-column:1/-1}.rtp-location-fields select,.rtp-location-fields input{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--rtp-line);border-radius:13px;background:var(--rtp-surface-2);color:var(--rtp-text)}.rtp-location-fields small{color:var(--rtp-muted);font-size:.78rem}.rtp-register-location{padding:16px;border:1px solid color-mix(in srgb,var(--rtp-primary) 25%,var(--rtp-line));border-radius:18px;background:color-mix(in srgb,var(--rtp-primary) 5%,var(--rtp-surface))}.rtp-register-location h2{margin:0;font-size:1.05rem}.rtp-upload-meter{display:grid;gap:4px}.rtp-upload-meter i{display:block;width:0;height:4px;border-radius:999px;background:var(--rtp-primary);transition:width .18s}.rt-truco-menu-alert{color:#ff525f!important;position:relative}.rt-truco-menu-alert:after{content:"";position:absolute;top:4px;right:18%;width:8px;height:8px;border-radius:50%;background:#ff3d4d;box-shadow:0 0 0 0 rgba(255,61,77,.55);animation:rtpTrucoPulse 1.4s infinite}@keyframes rtpTrucoPulse{70%{box-shadow:0 0 0 9px rgba(255,61,77,0)}100%{box-shadow:0 0 0 0 rgba(255,61,77,0)}}@media(max-width:640px){.rtp-location-fields{grid-template-columns:1fr}.rtp-location-fields label{grid-column:1!important}.rtp-account-editor{padding:16px}}
/* RT 12.10 alerts: heartbeat is a small signal, never the whole menu tile. */
.rtp-side-link.rt-truco-menu-alert,.rtp-mobile-nav a.rt-truco-menu-alert{background:transparent!important;box-shadow:none!important}
.rtp-side-link.rt-truco-menu-alert svg,.rtp-mobile-nav a.rt-truco-menu-alert svg{animation:rtpHeartBeat 1.45s ease-in-out infinite;transform-origin:center;color:#ff405f!important}
.rtp-side-link.rt-truco-menu-alert:after{content:"";position:absolute;right:13px;top:12px;width:8px;height:8px;border-radius:50%;background:#ff405f;box-shadow:0 0 12px rgba(255,64,95,.8);animation:rtpHeartBeat 1.45s ease-in-out infinite}
.rtp-side-link .rtp-menu-badge,.rtp-mobile-badge{background:#e72f4b!important;color:#fff!important;box-shadow:0 0 0 3px rgba(231,47,75,.12),0 0 14px rgba(231,47,75,.4);animation:rtpHeartBeat 1.45s ease-in-out infinite}
@keyframes rtpHeartBeat{0%,42%,100%{transform:scale(1)}12%{transform:scale(1.22)}24%{transform:scale(.96)}32%{transform:scale(1.14)}}
.rtp-feed-ad{width:min(var(--rtp-feed),100%);margin:14px auto;padding:14px;display:grid;grid-template-columns:minmax(100px,180px) 1fr;gap:14px;align-items:center;border:1px solid color-mix(in srgb,var(--rtp-primary) 28%,var(--rtp-line));border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 7%,var(--rtp-surface)),var(--rtp-surface));box-shadow:var(--rtp-shadow);overflow:hidden}.rtp-feed-ad>small{grid-column:1/-1;font-size:.62rem;font-weight:950;letter-spacing:.14em;color:var(--rtp-muted)}.rtp-feed-ad img{width:100%;max-height:130px;object-fit:cover;border-radius:14px}.rtp-feed-ad b{font-size:1.02rem}.rtp-feed-ad a{display:inline-flex;margin-top:7px;padding:8px 12px;border-radius:10px;background:var(--rtp-primary);color:#fff!important;font-weight:900;text-decoration:none}@media(max-width:560px){.rtp-feed-ad{grid-template-columns:1fr}.rtp-feed-ad>small{grid-column:auto}}@media(prefers-reduced-motion:reduce){.rtp-side-link.rt-truco-menu-alert svg,.rtp-side-link.rt-truco-menu-alert:after,.rtp-mobile-nav a.rt-truco-menu-alert svg,.rtp-menu-badge,.rtp-mobile-badge{animation:none!important}}
.rt-notices{width:min(1180px,calc(100% - 24px));margin:12px auto}.rt-notice-card{display:grid;grid-template-columns:minmax(100px,180px) 1fr;gap:14px;align-items:center;padding:13px;border:1px solid color-mix(in srgb,var(--rtp-primary) 30%,var(--rtp-line));border-radius:18px;background:linear-gradient(120deg,color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface)),var(--rtp-surface));box-shadow:var(--rtp-shadow)}.rt-notice-card img{width:100%;max-height:110px;object-fit:cover;border-radius:13px}.rt-notice-card b{font-size:1.02rem}.rt-notice-card p{margin:5px 0;color:var(--rtp-muted)}.rt-notice-card a{font-weight:900;color:var(--rtp-primary)}@media(max-width:560px){.rt-notice-card{grid-template-columns:1fr}}

/* RT 12.11 — activity feedback, reactions, GamiPress market/showcase and account UI. */
.rtp-feed-feedback{margin:10px 0;padding:12px 14px;border-radius:12px;font-weight:800;background:color-mix(in srgb,var(--rtp-danger,#e5484d) 14%,transparent);border:1px solid color-mix(in srgb,var(--rtp-danger,#e5484d) 45%,transparent)}
.rtp-reactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.rtp-reaction{border:1px solid var(--rtp-border);background:var(--rtp-surface);border-radius:999px;padding:7px 10px;cursor:pointer;transition:.18s transform,.18s box-shadow}.rtp-reaction:hover{transform:translateY(-1px)}.rtp-reaction.is-active{box-shadow:0 0 0 2px rgba(139,92,246,.25),0 0 18px rgba(139,92,246,.18)}
.rtp-account-editor{max-width:900px;margin:0 auto}.rtp-account-editor>header{margin-bottom:18px}.rt-account-form{display:grid;gap:16px;background:var(--rtp-surface);border:1px solid var(--rtp-border);border-radius:20px;padding:22px}.rt-account-form>label{display:grid;gap:7px;font-weight:800}.rt-account-form input,.rt-account-form textarea,.rt-account-form select{width:100%;border:1px solid var(--rtp-border);border-radius:12px;padding:12px;background:var(--rtp-bg);color:var(--rtp-text)}
body .gamipress-achievement,body .gamipress-rank,body .gamipress-points,body .gamipress-leaderboard{background:linear-gradient(145deg,var(--rtp-surface),color-mix(in srgb,var(--rtp-surface) 88%,#7c3aed));border:1px solid var(--rtp-border);border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(15,10,40,.12)}body .gamipress-achievement img{border-radius:14px}body .gamipress-achievement-points,body .gamipress-points{font-weight:900}body .gamipress-leaderboard table{border-collapse:separate;border-spacing:0 8px;width:100%}body .gamipress-leaderboard tbody tr{background:var(--rtp-surface)}body .gamipress-leaderboard td{padding:12px}
.rtp-achievement-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin:12px 0}.rtp-achievement-tile{position:relative;overflow:hidden;display:grid;place-items:center;text-align:center;gap:8px;min-height:145px;padding:14px;border-radius:16px;border:1px solid var(--rtp-border);background:linear-gradient(145deg,var(--rtp-surface),color-mix(in srgb,var(--rtp-surface) 86%,#7c3aed))}.rtp-achievement-tile:after{content:"";position:absolute;inset:-100% -40%;background:linear-gradient(110deg,transparent 40%,rgba(255,255,255,.16) 50%,transparent 60%);animation:rtp-shine 5s linear infinite}.rtp-achievement-tile img{width:72px;height:72px;object-fit:contain}.rtp-main-ranking{display:grid;gap:8px}.rtp-ranking-row{display:grid;grid-template-columns:44px 48px 1fr auto;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--rtp-border);border-radius:14px;background:var(--rtp-surface)}.rtp-ranking-row img{width:44px;height:44px;border-radius:50%;object-fit:cover}
body .gamipress-achievement-unlock-with-points-button,body .gamipress-achievement-unlock-button,body .gamipress-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:10px 16px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#7c3aed,#a21caf)!important;color:#fff!important;font-weight:900!important;box-shadow:0 8px 22px rgba(124,58,237,.25);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}body .gamipress-achievement-unlock-with-points-button:hover,body .gamipress-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(124,58,237,.34)}


/* RT 12.12 - Gemas, Tokens y seguridad de mensajes. */
.rtp-profile-currencies{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:9px}.rtp-profile-currency{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:.7rem;font-weight:950;font-style:normal}.rtp-profile-currency.is-gem{border:1px solid rgba(84,220,255,.48);background:linear-gradient(135deg,rgba(79,209,255,.16),rgba(139,92,246,.13));color:#3dc9f2;box-shadow:0 0 18px rgba(76,201,240,.18);animation:rtp-gem-pulse 2.6s ease-in-out infinite}.rtp-profile-currency.is-gem:after{content:"";position:absolute;inset:-80% auto -80% -40%;width:35%;transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:rtp-gem-shine 3.2s ease-in-out infinite}.rtp-profile-currency.is-token{border:1px solid color-mix(in srgb,#d8a83b 45%,var(--rtp-line));background:color-mix(in srgb,#f1c75c 10%,var(--rtp-surface));color:#a87513}.rtp-message-safety{margin:0 0 16px;padding:14px 16px;border:1px solid color-mix(in srgb,#e3ad35 42%,var(--rtp-line));border-radius:16px;background:color-mix(in srgb,#f5c451 9%,var(--rtp-surface));color:var(--rtp-text)}.rtp-message-safety b{display:block;margin-bottom:4px}.rtp-message-safety p{margin:0;color:var(--rtp-muted);font-size:.84rem;line-height:1.5}@keyframes rtp-gem-pulse{50%{box-shadow:0 0 26px rgba(76,201,240,.36)}}@keyframes rtp-gem-shine{0%,60%{left:-40%}85%,100%{left:125%}}@media(prefers-reduced-motion:reduce){.rtp-profile-currency.is-gem,.rtp-profile-currency.is-gem:after{animation:none!important}}
.rtp-sidebar-currencies .rtp-token-chip.is-gem{border-color:rgba(84,220,255,.5);background:linear-gradient(135deg,rgba(79,209,255,.16),rgba(139,92,246,.13));color:#3dc9f2;box-shadow:0 0 18px rgba(76,201,240,.18)}.rtp-sidebar-currencies .rtp-token-chip.is-token{border-color:color-mix(in srgb,#d8a83b 42%,var(--rtp-line));background:color-mix(in srgb,#f1c75c 9%,var(--rtp-surface));color:#a87513}

/* RT 13.3 — galería privada y sesión persistente. */
.rtp-session-note{margin:0;padding:10px 12px;border-radius:11px;background:var(--rtp-surface-2);color:var(--rtp-muted);font-size:.78rem}
.rtp-gallery-upload-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:12px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff!important;font-size:.75rem!important;font-weight:900!important;cursor:pointer}.rtp-gallery-uploader{margin-top:12px}.rtp-gallery-uploader [data-rtp-photo-submit]{margin-top:10px}.rtp-gallery-uploader .rtp-feed-feedback[hidden]{display:none!important}
.rt-notice-card .rt-notice-action{display:inline-flex;align-items:center;justify-content:center;width:max-content;margin-top:8px;padding:9px 13px;border-radius:11px;background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2));color:#fff!important;text-decoration:none!important;font-weight:900!important}
/* RT 13.3 — ranking nativo de Truco integrado al selector RT. */
.rt-truco-ranking-embed{display:grid;gap:9px}.rt-truco-ranking-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--rtp-line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface)),var(--rtp-surface))}.rt-truco-ranking-caption strong{font-size:.92rem}.rt-truco-ranking-caption small{color:var(--rtp-muted);font-weight:800}.rt-truco-native-rank-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--rtp-line);border-radius:14px;background:var(--rtp-surface)}.rt-truco-native-rank-row>b{color:var(--rtp-primary);font-size:.8rem}.rt-truco-native-rank-row>span{font-weight:800}.rt-truco-native-rank-row>strong{white-space:nowrap}@media(max-width:560px){.rt-truco-ranking-caption{align-items:flex-start;flex-direction:column}.rt-truco-native-rank-row{grid-template-columns:38px minmax(0,1fr) auto;padding:10px}}

/* RT 13.4.1 — anuncios siempre encuadrados; el anunciante elige la proporción. */
.rtp-feed-ad img,.rt-ad img{width:100%;height:auto;object-fit:cover;object-position:center}.rtp-feed-ad.rt-ad-ratio-16x9 img,.rt-ad.rt-ad-ratio-16x9 img{aspect-ratio:16/9;max-height:none}.rtp-feed-ad.rt-ad-ratio-1x1 img,.rt-ad.rt-ad-ratio-1x1 img{aspect-ratio:1/1;max-height:260px}.rtp-feed-ad.rt-ad-ratio-4x5 img,.rt-ad.rt-ad-ratio-4x5 img{aspect-ratio:4/5;max-height:320px}

/* ==========================================================
   RT Platform 13.4.3 — foco solicitado: Mensajes, Leaderboards y Rangos
   ========================================================== */

/* Mensajes: la burbuja recibida y la propia se distinguen de un vistazo. */
.rtp-is-messages #buddypress #message-thread .message-box .message-content,
.rtp-is-messages #buddypress .bp-messages-content .message-box .message-content,
.rtp-is-messages #buddypress [data-bp-list="message"] .message-box .message-content{
  box-sizing:border-box!important;
  width:fit-content!important;
  min-width:min(220px,70%)!important;
  max-width:min(78%,620px)!important;
  margin-top:10px!important;
  padding:14px 16px!important;
  border:1px solid var(--rtp-line)!important;
  border-radius:18px 18px 18px 5px!important;
  box-shadow:0 8px 22px rgba(24,28,58,.07)!important;
}
.rtp-is-messages #buddypress .message-box.rtp-message-other .message-content{
  margin-left:22px!important;
  margin-right:auto!important;
  background:linear-gradient(145deg,color-mix(in srgb,#38bdf8 12%,var(--rtp-surface-2)),color-mix(in srgb,#22d3ee 5%,var(--rtp-surface)))!important;
  border-color:color-mix(in srgb,#38bdf8 34%,var(--rtp-line))!important;
  color:var(--rtp-text)!important;
}
.rtp-is-messages #buddypress .message-box.rtp-message-own .message-content{
  margin-left:auto!important;
  margin-right:22px!important;
  border-color:color-mix(in srgb,var(--rtp-primary) 55%,transparent)!important;
  border-radius:18px 18px 5px 18px!important;
  background:linear-gradient(135deg,var(--rtp-primary),var(--rtp-primary-2))!important;
  color:#fff!important;
  box-shadow:0 10px 26px color-mix(in srgb,var(--rtp-primary) 22%,transparent)!important;
}
.rtp-is-messages #buddypress .message-box.rtp-message-own .message-content a{color:#fff!important;text-decoration:underline}
.rtp-is-messages #buddypress .message-box.rtp-message-own .message-content *{color:inherit!important}
@media(max-width:560px){
  .rtp-is-messages #buddypress #message-thread .message-box .message-content,
  .rtp-is-messages #buddypress .bp-messages-content .message-box .message-content{max-width:84%!important;min-width:0!important}
  .rtp-is-messages #buddypress .message-box.rtp-message-other .message-content{margin-left:10px!important}
  .rtp-is-messages #buddypress .message-box.rtp-message-own .message-content{margin-right:10px!important}
}

/* Leaderboards oficiales: RT muestra la métrica real que GamiPress usa para ordenar. */
.rtp-ranking-basis{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:11px 0 2px}
.rtp-ranking-basis>small{font-size:.62rem;font-weight:950;letter-spacing:.1em;color:var(--rtp-muted)}
.rtp-ranking-basis-chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid var(--rtp-line);border-radius:999px;background:var(--rtp-surface-2);color:var(--rtp-text);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.rtp-ranking-basis-chip i{display:grid;place-items:center;width:20px;height:20px;color:var(--rtp-primary);font-style:normal}
.rtp-ranking-basis-chip i svg{width:18px;height:18px}
.rtp-ranking-basis-chip strong{font-size:.72rem;font-weight:950}
.rtp-ranking-basis-chip.is-points{border-color:color-mix(in srgb,#40c9ef 36%,var(--rtp-line));background:linear-gradient(135deg,color-mix(in srgb,#40c9ef 10%,var(--rtp-surface)),var(--rtp-surface-2))}
.rtp-ranking-basis-chip.is-rank{border-color:color-mix(in srgb,#f2c94c 38%,var(--rtp-line));background:linear-gradient(135deg,color-mix(in srgb,#f2c94c 10%,var(--rtp-surface)),var(--rtp-surface-2))}
.rtp-ranking-basis-chip.is-game{border-color:color-mix(in srgb,var(--rtp-primary) 40%,var(--rtp-line));background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 12%,var(--rtp-surface)),var(--rtp-surface-2))}



/* RT 13.5.5 — consentimiento legal visible y documento de Términos */
.rtp-terms-consent,.rtp-google-terms{padding:14px 15px;border:1px solid color-mix(in srgb,var(--rtp-primary) 32%,var(--rtp-line));border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--rtp-primary) 8%,var(--rtp-surface)),color-mix(in srgb,var(--rtp-gold,#d7aa4f) 7%,var(--rtp-surface)));box-shadow:0 10px 28px color-mix(in srgb,var(--rtp-primary) 8%,transparent)}
.rtp-terms-consent .rtp-check,.rtp-google-terms .rtp-check{align-items:flex-start;gap:10px;font-size:.86rem;line-height:1.45}
.rtp-terms-consent input[type=checkbox],.rtp-google-terms input[type=checkbox]{width:20px;height:20px;min-width:20px;margin-top:1px;accent-color:var(--rtp-primary)}
.rtp-terms-consent a,.rtp-google-terms a{color:var(--rtp-primary);text-decoration:underline;text-underline-offset:2px}
.rtp-terms-read{display:inline-flex;margin:7px 0 4px;font-size:.78rem;font-weight:850}
.rtp-terms-consent small{display:block;color:var(--rtp-muted);line-height:1.45}
.rtp-google-terms{margin:12px 0}
.rtp-legal{width:min(920px,calc(100% - 28px));margin:24px auto 60px;padding:clamp(22px,4vw,44px);border:1px solid var(--rtp-line);border-radius:26px;background:var(--rtp-surface);box-shadow:var(--rtp-shadow);line-height:1.72}
.rtp-legal-hero{padding-bottom:20px;margin-bottom:10px;border-bottom:1px solid var(--rtp-line)}
.rtp-legal-hero h1{margin:.3em 0;font-size:clamp(1.8rem,5vw,3.2rem);line-height:1.08}
.rtp-legal section{padding:10px 0 2px}
.rtp-legal h2{font-size:clamp(1.15rem,3vw,1.5rem);line-height:1.25;margin:24px 0 8px;color:var(--rtp-text)}
.rtp-legal p{margin:0 0 11px;color:var(--rtp-text)}
.rtp-legal a{color:var(--rtp-primary);font-weight:750}
.rtp-legal-admin-warning{padding:13px 15px;margin-bottom:18px;border:1px solid #d7aa4f;border-radius:13px;background:#fff7dc;color:#5c4511}
.rtp-legal-note{margin-top:28px;padding:16px;border-radius:14px;background:var(--rtp-surface-2);color:var(--rtp-muted);font-size:.88rem}
.rtp-footer>a.rtp-footer-terms{color:inherit;text-decoration:none;font-weight:700}
.rtp-footer>a.rtp-footer-terms:hover{text-decoration:underline}


/* RT 13.5.6 — instalación PWA discreta: sólo lateral + navegación inferior cuando el prompt está listo. */
.rtp-install-rt[hidden],.rtp-mobile-install[hidden]{display:none!important}
@media(max-width:900px){
  .rtp-mobile-nav>a,.rtp-mobile-nav>button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 1px!important;color:var(--rtp-muted);font-size:.61rem!important;font-weight:800}
  .rtp-mobile-nav>button{border:0;background:transparent;cursor:pointer}
  .rtp-mobile-nav>button:hover,.rtp-mobile-nav>button.is-ready{color:var(--rtp-primary)}
  .rtp-mobile-nav>button svg{width:20px;height:20px}
  .rtp-mobile-install.is-ready svg{filter:drop-shadow(0 4px 8px color-mix(in srgb,var(--rtp-primary) 32%,transparent));animation:rtpInstallReadyPulse 1.8s ease-in-out infinite}
}
html[data-theme="dark"] .rtp-mobile-nav>button:hover,html[data-theme="dark"] .rtp-mobile-nav>button.is-ready{color:var(--rtp-gold-soft)!important}
@keyframes rtpInstallReadyPulse{50%{transform:translateY(-1px) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.rtp-mobile-install.is-ready svg{animation:none!important}}
