/* Compact leaderboard; existing Streakline colors, rows and button language. */
.leaderboard-page main{padding-top:0}
.leaderboard-page .page-heading{margin:5px 0 12px;font-size:27px;line-height:1.15}
.leaderboard-heading{display:flex;align-items:center;justify-content:space-between}
.board-tabs{display:flex;gap:4px;padding:4px;background:#101923;border:1px solid #2b3845;border-radius:11px;margin-bottom:10px}
.board-tabs button{flex:1;min-height:44px;background:transparent;border:0;border-radius:8px;color:#9aafbf;font:inherit;font-weight:750;display:flex;gap:7px;align-items:center;justify-content:center}
.board-tabs button.active{background:#214b3d;color:#84f3bd;box-shadow:inset 0 0 0 1px #4cdf9b30}
.board-tabs button:focus-visible,.friend-action:focus-visible,.friend-link:focus-visible,.friend-remove:focus-visible{outline:2px solid #6af0bd;outline-offset:3px}
.friend-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:20px;background:#ffab45;color:#142027;font:800 11px/1 system-ui;flex-shrink:0}
#nav [data-view="leaderboard"]{position:relative}
#nav [data-view="leaderboard"]>.friend-badge{position:absolute;top:1px;left:calc(50% + 7px);height:16px;min-width:16px;font-size:10px;padding:0 4px}
.board-month-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:7px}
.board-month-toolbar .month-picker{margin:0;flex:1;gap:7px;font-size:12px}
.board-month-toolbar .month-picker select{padding:8px;min-height:44px;border-radius:8px;background:#14212c;border-color:#344555;font-size:13px}

.leaderboard-page .board-header{margin:0;padding-top:8px;padding-bottom:8px;font-size:11px}
.leaderboard-page .board-row{margin-bottom:6px;padding-top:10px;padding-bottom:10px;min-height:64px;border-radius:10px}
.leaderboard-page .data-note{font-size:12px;line-height:1.45;margin:12px 0;color:#91a7b8}
.friends-board-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.friends-board-title h2,.friend-requests h2{font-size:16px;margin:0;display:flex;align-items:center;gap:7px}
.friends-board-title h2 small{font-size:12px;color:#91a7b8;font-weight:500}
.friend-link{border:0;background:transparent;color:#77e7b2;font-family:inherit;font-weight:600;font-size:13px;line-height:1.3;min-height:44px;padding:8px 2px;text-align:left}
.friend-requests{border:1px solid #365b50;border-radius:12px;background:#132620;padding:12px;margin:12px 0}
.friend-person{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #ffffff0b;min-width:0}
.friend-person:last-child{border-bottom:0}
.friend-person>.board-avatar{width:32px;height:32px;flex-shrink:0}
.friend-person>strong{font-size:14px;overflow-wrap:anywhere;min-width:0;flex:1}
.friend-person-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:56%}
.friend-action{min-height:44px;padding:8px 10px;border:1px solid #3b5262;border-radius:8px;background:#1a2c38;color:#dceaf3;font-family:inherit;font-size:12px;font-weight:700}
.friend-action.friend-primary{background:#38e5ad;border-color:#38e5ad;color:#05251c}
.friend-action:disabled,.friend-pages button:disabled{opacity:.5}
.friend-status{font-size:12px;color:#9ab3bc;padding:5px 2px}
.friend-search{margin-top:14px;padding:14px;background:#121e2a;border:1px solid #304453;border-radius:12px}
.friend-search>label{display:block;font-size:15px;font-weight:700;margin-bottom:10px}
.friend-search-input{display:flex;align-items:center;gap:8px;background:#0b151e;border:1px solid #3b5364;border-radius:9px;padding:0 10px}
.friend-search-input svg{width:19px;height:19px;stroke:#93adbd;flex-shrink:0}
.friend-search-input input{width:100%;min-width:0;min-height:46px;background:transparent;border:0;color:#eef8ff;font-family:inherit;font-size:16px;line-height:1.4;outline:none}
.friend-search-input:focus-within{outline:2px solid #66eeb6;outline-offset:2px}
.friend-search-results>p{font-size:13px;color:#94aab9;margin:12px 0 4px}
.friends-empty{padding:16px 10px;text-align:center;color:#a6bac9;font-size:14px;line-height:1.5}
.friends-empty strong{display:block;color:#e7f5fc;font-size:17px;line-height:1.35;max-width:320px;margin:0 auto}
.friends-empty p{margin:8px auto 0;max-width:340px}
.friends-empty .primary{margin-top:16px}
.friend-outgoing{margin-top:12px;padding:12px;background:#121e2a;border:1px solid #304453;border-radius:10px}
.friend-outgoing summary{cursor:pointer;min-height:32px;color:#a5b9c8;font-size:13px;line-height:32px}
.friend-board-entry{position:relative}
.friend-remove{display:block;margin:-3px 0 8px auto;min-height:44px;padding:8px 12px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;background:transparent;border:1px solid #405362;border-radius:8px;color:#b7c8d5}
.friend-pinned-self{margin-bottom:12px;border-bottom:1px solid #345044;padding-bottom:6px}
.friend-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#a8bfcc}
.friend-pages button{min-height:44px;font-size:13px}
.friend-profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
#friend-invite-fallback input{display:block;width:100%;font-size:16px;padding:10px;background:#09151d;color:#e6f4fb;border:1px solid #456071;border-radius:8px}
@media(max-width:360px){.friend-person-actions{max-width:58%;gap:3px}.friend-action{padding:7px;font-size:11px}.board-month-toolbar>span{max-width:78px}.friend-search{padding:10px}.friend-person>.board-avatar{width:28px;height:28px}}

.friend-search{background:linear-gradient(145deg,#172634,#101b26);box-shadow:inset 0 1px 0 #ffffff05}
.friend-search-results:not(:empty){margin-top:10px}
.friend-search-results .friend-person{border:1px solid #314454;border-radius:10px;background:#1a2937;padding:9px;margin-top:6px;transition:border-color .16s ease}
.friend-search-results .friend-person:hover{border-color:#547c74}
.friend-search-results .board-avatar{width:36px;height:36px;border-radius:50%;border:1px solid #48616e}
.friend-search-results .friend-action{border-radius:9px}
.friend-search-input input::placeholder{color:#8da5b7}
@media(prefers-reduced-motion:reduce){.friend-search-results .friend-person{transition:none}}
/* Invite-first, compact friends view. */
.friend-invite-primary{display:block;width:100%;margin:10px 0 4px;min-height:48px}
.friend-invite-primary:disabled{opacity:.6}
.friend-ghost{width:100%;min-height:52px;margin:2px 0 4px;border:1px dashed #416257;border-radius:10px;background:#11231f;color:#8edbb9;font-family:inherit;font-weight:600;font-size:13px}
.friends-empty{padding:10px 8px}.friends-empty strong{font-size:14px}
.friend-search{margin-top:8px;padding:10px}.friend-search>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.friend-board-share{display:block;margin:0 auto;min-height:40px}
.friend-requests{padding:10px;margin:8px 0}.friends-board-title{margin-top:4px}
.leaderboard-page .player-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.leaderboard-page .player-heading>div:not(.friend-profile-actions){flex:1;min-width:0}
.leaderboard-page .player-heading h1{overflow-wrap:anywhere;font-size:23px}
.leaderboard-page .player-heading p{font-size:11px;margin:4px 0}
.friend-profile-actions{flex:0 0 auto;margin:0 0 0 auto;gap:0;flex-direction:column;align-items:flex-end;max-width:120px}
.friend-profile-manage{position:relative;font-size:11px;color:#95aab9}
.friend-profile-manage summary{cursor:pointer;min-height:30px;display:flex;align-items:center;justify-content:flex-end}
.friend-profile-manage button{position:absolute;right:0;top:30px;z-index:3;white-space:nowrap;box-shadow:0 6px 16px #0006}
#friend-invite-fallback textarea{width:100%;min-height:110px;background:#0b1822;color:#dcebf4;border:1px solid #416071;border-radius:8px;padding:10px;font:14px sans-serif}
.board-you-tag{display:inline-block;vertical-align:middle;margin-left:5px;padding:2px 4px;border-radius:4px;background:#2c5546;color:#9df3cb;font:800 9px/1.2 var(--font);letter-spacing:.5px}
.friend-add-pill{border-color:#4d987c;background:#17382c;color:#88edbd;border-radius:20px;white-space:nowrap}
.friend-search-close{flex-shrink:0;width:44px;height:44px;border:0;background:none;color:#b3c8d4;font-size:25px}
.friend-board-share{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #57a78b;border-radius:10px;background:#11251f;color:#c2efdc;font:700 14px var(--font);margin:8px 0}
.friend-board-share svg{width:20px;height:20px}.friend-ghost{margin-top:4px}
.friend-search{margin:6px 0 8px}.friends-board-title{margin-bottom:4px}
.friend-accepted{margin:6px 0 10px}.friend-accepted button{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:11px 12px;min-height:48px;background:#15372c;border:1px solid #408565;border-radius:10px;color:#bee6d5;font:13px var(--font);text-align:left}.friend-accepted strong{color:#8aefbd}
.leaderboard-page .board-row.friend-new-arrival{border-color:#7ff0bd;background:#244737;box-shadow:0 0 0 2px #6ce6ad55,inset 0 0 25px #62dc9d12;transition:background .3s ease,box-shadow .3s ease}
/* An open player slot, distinct from the share action. */
.friend-ghost{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:64px;padding:10px 14px;background:transparent;border:1px dashed #40515e;color:#91a6b5;text-align:left;font-size:13px;font-weight:500}
.friend-slot-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border:1px dashed #526675;border-radius:50%;font-size:20px;color:#9aafbc}
.friend-ghost:hover{background:#ffffff03;border-color:#6a8491;color:#d4e4ed}
.friend-ghost:focus-visible{outline:2px solid #81e6b9;outline-offset:3px}
.friend-board-share{min-height:48px;margin-top:12px}
.friend-outgoing{margin:8px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.friend-outgoing summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:44px;padding:0 2px;font-size:12px;color:#8fa4b3;line-height:1.3}
.friend-outgoing summary::-webkit-details-marker{display:none}
.friend-outgoing summary::after{content:'›';font-size:20px;transform:rotate(0deg);transition:transform .15s}
.friend-outgoing[open] summary::after{transform:rotate(90deg)}
.friend-outgoing .friend-person{padding:7px 2px}.friend-outgoing .friend-person>strong{font-size:13px}
.friend-outgoing .friend-person>.board-avatar{width:28px;height:28px}
.friend-outgoing .friend-action{background:transparent;border-color:transparent;padding:6px;font-size:11px}
.friend-outgoing .friend-nudge{color:#90dfba}.friend-outgoing .friend-status{font-size:10px}
.friend-outgoing .friend-person-actions{gap:2px;max-width:62%}
/* Compact hierarchy: standings first, mint reserved for identity and actions. */
.leaderboard-page .page-heading{font-size:22px;margin:3px 0 9px;line-height:1.15}
.board-tabs{padding:3px;margin-bottom:7px}.board-tabs button{min-height:44px;font-size:15px}.board-tabs button.active{background:#18382e;color:#83eabd}
.board-month-toolbar{gap:0;margin-bottom:5px}.board-month-toolbar .month-picker{flex-basis:100%}.board-month-toolbar .month-picker select{padding:6px 9px;min-height:40px}
.friends-board-title{margin-top:0;margin-bottom:2px;min-height:44px}.friends-board-title h2{font-size:15px;gap:5px}.friends-board-title h2 small{font-size:11px}
.friend-add-pill{background:#75e5b1;color:#092a1e;border:1px solid #75e5b1;font-size:12px;padding:8px 11px;min-height:44px;border-radius:9px;box-shadow:none}
.friend-search-invite{display:block;width:100%;min-height:44px;text-align:left;border:0;background:none;color:#8ae4bb;font:600 12px var(--font);padding:7px 2px}
.leaderboard-page .board-row{padding-top:8px;padding-bottom:8px;min-height:60px;margin-bottom:6px}
.leaderboard-page .board-row.you{background:#172d2b;border-color:#508e70}
.leaderboard-page .board-row .board-best{font-size:23px}.leaderboard-page .board-row .board-current{font-size:20px}
.leaderboard-page .pick-activity{color:#899cad;font-size:11px;margin-top:3px}.leaderboard-page .pick-activity.has-pick{color:#6de0ad}
.leaderboard-page .avatar-default{background:linear-gradient(135deg,#2d4051,#243544);color:#b9cbd7;border-color:#4a6071}
.friend-board-share{background:#101c26;border-color:#559a80;margin-top:9px}
.friend-outgoing{margin-top:3px}.friend-ghost{min-height:60px}
@media(max-width:360px){.friends-board-title h2{flex-wrap:wrap;gap:2px}.friend-add-pill{padding:7px 9px}}

/* New friends share the logo's warm-to-ice sweep, without pink or purple. */
.friend-accepted button{background:linear-gradient(110deg,#422810,#36201b 42%,#102c43 72%,#123943);border-color:#72cde1;color:#e5f3ff}
.friend-accepted strong{color:#ffd28a}
.leaderboard-page .board-row.friend-new-arrival{position:relative;overflow:hidden;isolation:isolate;border-color:#80d9ed;background:#182b38;box-shadow:none}
.friend-new-arrival::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(105deg,transparent 10%,#ffb44445 32%,#fa4b2638 46%,#219eff42 61%,#91f5ff55 73%,transparent 88%);transform:translateX(-110%);animation:friend-arrival-sweep 1.8s ease-in-out .35s both}
@keyframes friend-arrival-sweep{from{transform:translateX(-110%)}to{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){.friend-new-arrival::after{animation:none;transform:none;background:linear-gradient(105deg,#ffb44416,#fa4b2610,#219eff16,#91f5ff20)}}
