/* Social depth system, 2026-09-03.
   People, conversation and media share one visual grammar across the
   social loop. Every rule is body-scoped so utility and round pages keep
   their own established surfaces. */

.social-friends,
.social-users,
.social-messages,
.social-leaderboard,
.social-community,
.social-notifications,
.social-watch,
.profile-page.social-profile{
  --social-radius:24px;
  --social-radius-sm:16px;
  --social-shadow:0 24px 70px rgba(0,0,0,.16),0 2px 10px rgba(0,0,0,.06);
  --social-shadow-soft:0 14px 42px rgba(0,0,0,.10),0 1px 4px rgba(0,0,0,.05);
}

/* Friends: a utility page, not a marketing landing page. */
.social-friends .fr-wrap{max-width:1240px;padding:28px 24px 88px}
.social-friends .fr-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 2px 18px;margin-bottom:18px;border-bottom:1px solid var(--line,rgba(127,127,127,.18))}
.social-friends .fr-head{font-size:clamp(1.7rem,3vw,2.25rem);letter-spacing:-.04em;line-height:1;margin:0}
.social-friends .fr-jump{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.social-friends .fr-jump a{padding:8px 13px;border-radius:999px;color:var(--text-dim);font-size:.78rem;font-weight:800;text-decoration:none;border:1px solid transparent}
.social-friends .fr-jump a:first-child{color:#fff;background:var(--accent,#dc2626)}
.social-friends .fr-jump a:hover{border-color:var(--line,rgba(127,127,127,.25));color:var(--text)}
.social-friends .fr-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.8fr);gap:22px;align-items:start}
.social-friends .fr-primary,.social-friends .fr-side{min-width:0}
.social-friends .fr-side{position:sticky;top:88px}
.social-friends .fr-card{border-radius:var(--social-radius);padding:22px;background:var(--panel,var(--bg-card,#fff));box-shadow:var(--social-shadow-soft)}
.social-friends .fr-card h2{font-size:1.1rem;letter-spacing:-.015em}
.social-friends .fr-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.social-friends .fr-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:rgba(239,68,68,.11);color:var(--accent,#dc2626);font-size:.72rem;font-weight:900}
.social-friends .fr-row{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:16px;align-items:center;padding:17px;margin-top:10px;border:1px solid var(--line,rgba(127,127,127,.14));border-radius:19px;background:color-mix(in srgb,var(--panel,var(--bg-card,#fff)) 94%,var(--text,#111) 6%);transition:transform .16s,border-color .16s,box-shadow .16s}
.social-friends .fr-row:first-of-type{border-top:1px solid var(--line,rgba(127,127,127,.14))}
.social-friends .fr-row:hover{transform:translateY(-2px);border-color:rgba(239,68,68,.32);box-shadow:0 14px 34px rgba(0,0,0,.1)}
.social-friends .fr-av{width:76px;height:76px;font-size:1.35rem;border:3px solid color-mix(in srgb,var(--text,#111) 10%,transparent);box-shadow:0 0 0 1px var(--line,rgba(127,127,127,.18)),0 8px 24px rgba(0,0,0,.14);overflow:hidden}
.social-friends .fr-av{position:relative}
.social-friends .fr-av-fallback{display:grid;place-items:center;width:100%;height:100%}
.social-friends .fr-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.social-friends .fr-person{text-decoration:none;color:inherit;min-width:0}
.social-friends .fr-name{font-size:1.12rem;letter-spacing:-.015em}
.social-friends .fr-handle{margin-left:5px;font-size:.78rem;font-weight:650;color:var(--text-dim)}
.social-friends .fr-bio{font-size:.84rem;line-height:1.45;color:var(--text-dim);margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.social-friends .fr-meta{font-size:.75rem;margin-top:5px}
.social-friends .fr-acts{justify-content:flex-end}
.social-friends .fr-btn{border-radius:999px;padding:9px 14px}
.social-friends #frFindCard .fr-row{grid-template-columns:58px minmax(0,1fr);gap:12px;padding:12px}
.social-friends #frFindCard .fr-av{width:58px;height:58px}
.social-friends #frFindCard .fr-acts{grid-column:2;justify-content:flex-start}
.social-friends .fr-invite input{min-height:44px;border-radius:14px;background:var(--bg,transparent)}
.social-friends .fr-gate{max-width:720px;margin:0 auto;padding:56px 30px}

/* Messages: a true two-pane conversation room, with people at scale. */
.social-messages .msg-wrap{max-width:1280px;padding:92px 24px 84px}
.social-messages .msg-head{position:relative;display:block;margin:0 0 18px;padding:22px 28px;border:1px solid var(--border);border-radius:26px;background:linear-gradient(120deg,var(--bg-card),transparent 72%);overflow:hidden;box-shadow:var(--social-shadow-soft)}
.social-messages .msg-head::after{content:"";position:absolute;right:-70px;top:-150px;width:270px;height:270px;border-radius:50%;border:1px solid rgba(239,68,68,.35);box-shadow:0 0 0 42px rgba(239,68,68,.04)}
.social-messages .msg-head h1{font-size:clamp(1.9rem,3.2vw,2.9rem);letter-spacing:-.055em;line-height:1}
.social-messages .msg-head .sub{display:block;margin-top:9px;max-width:650px;font-size:.98rem;line-height:1.5}
/* The reserve is the chrome actually above the columns, measured rather
   than rounded: 92px of wrap padding plus a ~153px head block plus the
   gap. messages.html states the invariant it protects, and the head
   grew past it: the feed scrolls internally and the composer is always
   on screen. Grow the head again and this number grows with it. */
.social-messages .msg-shell{grid-template-columns:390px minmax(0,1fr);gap:20px;--msg-col-h:clamp(460px,calc(100dvh - 280px),850px)}
.social-messages .msg-rail,.social-messages .msg-pane{border-radius:24px;box-shadow:var(--social-shadow-soft)}
.social-messages .msg-rail-head{padding:18px 20px;font-size:1rem}
.social-messages .msg-titem{gap:14px;padding:16px 18px}
.social-messages .msg-av{width:54px;height:54px;font-size:1rem;box-shadow:0 0 0 1px var(--border),0 8px 18px rgba(0,0,0,.09)}
.social-messages .msg-tname{font-size:1rem}
.social-messages .msg-tprev{font-size:.84rem;margin-top:4px}
.social-messages .msg-pane-head{min-height:82px;padding:13px 20px}
.social-messages .msg-pane-head .msg-av{width:56px;height:56px}
.social-messages .msg-peer .nm{font-size:1.08rem}
.social-messages .msg-feed{padding:22px;gap:10px;background:linear-gradient(180deg,transparent,rgba(127,127,127,.035))}
.social-messages .msg-b{max-width:70%;padding:11px 15px;border-radius:18px;font-size:.95rem}
.social-messages .msg-compose{padding:14px 18px}
.social-messages .msg-compose input{min-height:46px}
.social-messages .msg-profile{margin-top:4px;padding:22px 24px;border:1px solid var(--border);border-radius:20px;background:var(--bg-card);box-shadow:var(--social-shadow-soft)}
.social-messages .msg-empty{padding:30px 22px}

/* Public profile: the person owns the first screen; stats recede. */
.social-users .wrap{max-width:1120px;padding:104px 24px 88px}
.social-users .profile-card{position:relative;overflow:hidden;border-radius:30px;padding:38px 40px;background:linear-gradient(125deg,var(--bg-card),var(--bg-card2) 72%);box-shadow:var(--social-shadow)}
.social-users .profile-card::after{content:"";position:absolute;right:-120px;top:-190px;width:390px;height:390px;border-radius:50%;border:1px solid rgba(239,68,68,.33);box-shadow:0 0 0 58px rgba(239,68,68,.04),0 0 0 116px rgba(239,68,68,.02);pointer-events:none}
.social-users .phead{gap:28px;align-items:center;position:relative;z-index:1}
.social-users .avatar{width:128px;height:128px;font-size:2.55rem;border-width:3px;box-shadow:0 0 0 6px rgba(239,68,68,.08),0 16px 36px rgba(0,0,0,.25)}
.social-users .pname{font-size:clamp(2.15rem,4vw,3.4rem);letter-spacing:-.055em;line-height:.95}
.social-users .pbio{max-width:720px;font-size:1.12rem}
.social-users .pactions{margin-top:23px}
.social-users .btn{border-radius:999px;padding:11px 20px}
.social-users .level-card{border-radius:18px;padding:20px 22px}
.social-users .stat{border-radius:16px;padding:17px}
.social-users .dom,.social-users .round{border-radius:16px;padding:15px 17px}

/* Private profile: identity first, progress as the backdrop. */
.profile-page.social-profile .wrap{max-width:1180px;padding-top:86px}
.profile-page.social-profile .hero{grid-template-columns:132px 1fr auto;gap:28px;padding:34px 36px;border-radius:30px;box-shadow:var(--social-shadow)}
.profile-page.social-profile .avatar{width:132px;height:132px;font-size:2.7rem}
.profile-page.social-profile .hero-meta .name{font-size:clamp(2.15rem,4vw,3.3rem)}
.profile-page.social-profile .hero-meta .sub{font-size:.9rem}
.profile-page.social-profile .hero-meta .title-pill{margin-top:12px}
.profile-page.social-profile .profile-gate{position:relative;overflow:hidden;display:grid;grid-template-columns:190px minmax(0,1fr);gap:36px;align-items:center;min-height:380px;padding:46px 58px;text-align:left;border-radius:30px;background:linear-gradient(125deg,var(--bg-card),var(--bg-elev) 70%);box-shadow:var(--social-shadow)}
.profile-page.social-profile .profile-gate::after{content:"";position:absolute;right:-140px;top:-210px;width:430px;height:430px;border-radius:50%;border:1px solid var(--accent-border);box-shadow:0 0 0 64px var(--accent-soft),0 0 0 128px rgba(239,68,68,.025);pointer-events:none}
.profile-page.social-profile .profile-gate-avatar{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;background:var(--bg-elev);border:3px solid var(--accent);box-shadow:0 0 0 8px var(--accent-soft),0 18px 44px rgba(0,0,0,.2);color:var(--accent);font-size:2.25rem;font-weight:900;letter-spacing:-.05em}
.profile-page.social-profile .profile-gate-copy{position:relative;z-index:1}
.profile-page.social-profile .profile-gate-kicker{display:block;margin-bottom:8px;color:var(--accent);font:900 .67rem/1 'Geist Mono',monospace;letter-spacing:.17em;text-transform:uppercase}
.profile-page.social-profile .profile-gate h3{max-width:640px;font-size:clamp(2.15rem,5vw,4rem);line-height:.98;letter-spacing:-.055em}
.profile-page.social-profile .profile-gate p{max-width:590px;margin:16px 0 20px;font-size:1rem}
.profile-page.social-profile .profile-gate-link{display:inline-block;margin-left:16px;color:var(--text-dim);font-size:.82rem;font-weight:800;text-underline-offset:3px}

/* Leaderboard: less dashboard chrome, more recognizable people. */
.social-leaderboard .shell{max-width:1360px;padding-left:30px;padding-right:30px}
.social-leaderboard .hero{padding:30px 32px 28px;border:1px solid var(--border);border-radius:28px;background:linear-gradient(125deg,var(--bg-card),transparent 74%);box-shadow:var(--social-shadow-soft)}
.social-leaderboard .hero h1{font-size:clamp(2.65rem,5vw,4.5rem);font-weight:760;letter-spacing:-.055em}
.social-leaderboard .controls{padding:18px 2px 14px}
.social-leaderboard .main-grid{gap:22px}
.social-leaderboard .pod{border-radius:22px;padding:22px;box-shadow:var(--social-shadow-soft)}
.social-leaderboard .pod--1{padding:28px 24px 22px}
.social-leaderboard .pod-avatar{width:84px;height:84px}
.social-leaderboard .pod--1 .pod-avatar{width:104px;height:104px}
.social-leaderboard .pod-name{font-size:1.12rem}
.social-leaderboard .pod--1 .pod-name{font-size:1.34rem}
.social-leaderboard .board{border-radius:22px;box-shadow:var(--social-shadow-soft)}
.social-leaderboard .board-row{padding-top:16px;padding-bottom:16px}
.social-leaderboard .deb-av{width:58px;height:58px}
.social-leaderboard .deb-name{font-size:1rem}
.social-leaderboard .side-card{border-radius:20px;box-shadow:var(--social-shadow-soft)}

/* Community: the feed is the room; controls and side context are quieter. */
.social-community .wrap{max-width:1420px;padding-top:82px!important}
.social-community .community-layout{grid-template-columns:184px minmax(0,790px) 330px;gap:24px}
.social-community .main-head h1{font-size:2rem;letter-spacing:-.04em}
.social-community .composer{border-radius:22px;padding:18px 19px;margin-bottom:16px;box-shadow:var(--social-shadow-soft);border-top:1px solid var(--border)}
.social-community .composer-ava{width:50px;height:50px;font-size:.9rem;box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.social-community .composer textarea{min-height:58px;font-size:1rem}
.social-community .feed{border-radius:22px;box-shadow:var(--social-shadow-soft)}
.social-community .fitem{gap:16px;padding:20px}
.social-community .fitem-ava{width:56px;height:56px;font-size:.95rem;box-shadow:0 6px 18px rgba(0,0,0,.1)}
.social-community .fitem-name{font-size:.98rem}
.social-community .fitem-text{font-size:1rem;line-height:1.65}
.social-community .fcard{border-radius:15px;padding:14px}
.social-community .col-nav .tabs{gap:4px}
.social-community .col-nav .tab{min-height:42px}
.social-community .cmns{border-radius:20px;overflow:hidden;box-shadow:var(--social-shadow-soft)}

/* Notifications: a people-and-events stream instead of system logs. */
.social-notifications .wrap{max-width:1080px;padding-top:100px}
.social-notifications .page-h{font-size:clamp(2.8rem,6vw,4.8rem);letter-spacing:-.06em}
.social-notifications .page-sub{max-width:650px}
.social-notifications .notif-card{border-radius:26px;box-shadow:var(--social-shadow)}
.social-notifications #daNotifPage .ui-bell-row{gap:18px;padding:20px 24px;min-height:92px}
.social-notifications #daNotifPage .ui-bell-av{width:58px;height:58px;font-size:1.05rem;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.social-notifications #daNotifPage .ui-bell-row__name{font-size:1.08rem}
.social-notifications #daNotifPage .ui-bell-row__preview{font-size:.94rem}

/* Watch: the live state and real replay library lead. Editorial sources
   remain below, but no longer compete with the product's own archive. */
.social-watch .wrap{max-width:1440px}
.social-watch .page-head{position:relative;overflow:hidden;max-width:none;padding:104px 36px 32px;margin-top:0;border:1px solid var(--border);border-top:0;border-radius:0 0 30px 30px;background:linear-gradient(120deg,var(--surface),transparent 76%);box-shadow:var(--social-shadow-soft)}
.social-watch .page-head::after{content:"";position:absolute;right:-110px;top:-190px;width:420px;height:420px;border-radius:50%;border:1px solid rgba(239,68,68,.34);box-shadow:0 0 0 62px rgba(239,68,68,.04),0 0 0 124px rgba(239,68,68,.02)}
.social-watch .page-title{max-width:980px;font-size:clamp(2.8rem,6vw,5.2rem);letter-spacing:-.06em;line-height:.94}
.social-watch .page-sub{max-width:760px;font-size:1.05rem}
.social-watch .wait-banner{border-radius:20px;margin-top:18px;box-shadow:var(--social-shadow-soft)}
.social-watch .watch-cols{display:flex;flex-direction:column;gap:44px;margin-top:28px}
.social-watch .watch-rail{order:-1;position:static;border:1px solid var(--border);border-radius:24px;padding:24px;background:var(--surface);box-shadow:var(--social-shadow-soft)}
.social-watch .rail-head h2{font-size:1.55rem;letter-spacing:-.03em}
.social-watch .rail-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));max-height:none;overflow:visible;padding:0}
.social-watch .rail-list .card{display:block;padding:0;border-radius:16px}
.social-watch .rail-list .card .thumb{margin:0 0 10px}
.social-watch .rail-list .card h3{font-size:1rem}
.social-watch .rail-list .card .foot{font-size:.78rem;flex-direction:row;flex-wrap:wrap}
.social-watch .player-card,.social-watch .panel{border-radius:24px;box-shadow:var(--social-shadow-soft)}

@media(max-width:1240px){
  .social-community .community-layout{grid-template-columns:1fr;max-width:820px;margin:0 auto}
}
@media(max-width:1080px){
  .social-friends .fr-layout{grid-template-columns:1fr}
  .social-friends .fr-side{position:static}
}
@media(max-width:760px){
  .social-friends .fr-wrap{padding:20px 12px 64px}
  .social-friends .fr-hero{align-items:flex-start;flex-direction:column;padding:0 2px 16px;gap:14px}
  .social-friends .fr-row{grid-template-columns:60px minmax(0,1fr);padding:14px;gap:12px}
  .social-friends .fr-av{width:60px;height:60px}
  .social-friends .fr-acts{grid-column:1 / -1;justify-content:flex-start;padding-left:72px}
  .social-messages .msg-wrap{padding:80px 12px 60px}
  /* A phone has no room for the editorial head: it costs the composer its
     place on screen, and the thread is what someone opened the page for. */
  .social-messages .msg-head{padding:16px 18px;margin:0 0 14px;border-radius:20px}
  .social-messages .msg-head h1{font-size:1.55rem}
  .social-messages .msg-head .sub{display:none}
  /* 80 wrap + ~57 head + 14 gap above, 62 of tab bar plus clearance below. */
  .social-messages .msg-shell{grid-template-columns:1fr;--msg-col-h:clamp(360px,calc(100dvh - 228px),760px)}
  .social-users .wrap{padding:84px 12px 64px}
  .social-users .profile-card{padding:24px 20px;border-radius:24px}
  .social-users .avatar{width:88px;height:88px}
  .social-leaderboard .shell{padding-left:12px;padding-right:12px}
  .social-leaderboard .hero{padding:24px 20px;border-radius:22px}
  .profile-page.social-profile .hero{grid-template-columns:82px 1fr;padding:24px 20px;gap:16px}
  .profile-page.social-profile .avatar{width:82px;height:82px}
  .profile-page.social-profile .profile-gate{grid-template-columns:1fr;padding:32px 24px;text-align:center}
  .profile-page.social-profile .profile-gate-avatar{width:112px;height:112px;margin:0 auto;font-size:1.45rem}
  .profile-page.social-profile .profile-gate p{margin-left:auto;margin-right:auto}
  .social-notifications .wrap{padding:84px 12px 66px}
  .social-notifications #daNotifPage .ui-bell-av{width:48px;height:48px}
  .social-watch .page-head{padding:88px 20px 26px;border-radius:0 0 24px 24px}
  .social-watch .watch-rail{padding:16px}
  .social-watch .rail-list{grid-template-columns:1fr}
  .social-watch .rail-list .card{display:grid;grid-template-columns:132px minmax(0,1fr);gap:11px}
  .social-watch .rail-list .card .thumb{margin:0}
}
