/* «Друзья»: рейтинг недели — бумага и печатные тени, как остальные экраны; пьедестал — три краски. */
.friends { display: flex; flex-direction: column; gap: 14px; padding: calc(12px + var(--safe-t)) 16px calc(var(--tabbar-h) + 24px); }
.fr-top { display: flex; align-items: center; gap: 10px; }
.demo-tag { padding: 3px 10px; border-radius: 99px; border: 1.5px dashed var(--muted); color: var(--muted); font-size: 12px; font-weight: 700; }
.fr-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.fr-tabs button { flex: 1; min-height: 40px; border-radius: 99px; font-weight: 700; color: var(--muted); }
.fr-tabs button.on { background: var(--ink); color: var(--bg); }
.fr-when { color: var(--muted); font-size: 12.5px; }
.fr-quest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mint); border: 2px solid var(--ink); box-shadow: var(--hard); }
.fr-quest i { font-style: normal; font-size: 26px; }
.fr-quest span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-quest small { font-size: 12.5px; }
.fr-quest svg, .fr-go svg { width: 20px; height: 20px; }
.fr-go { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--coral); border: 2px solid var(--ink); box-shadow: var(--hard); text-align: left; }
.fr-go i { font-style: normal; font-size: 26px; }
.fr-go.on { background: var(--bg); border-style: dashed; box-shadow: none; }
.fr-hide { min-height: 36px; padding: 0 12px; font-size: 13px; }
.fr-go span, .fr-sig span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-go small, .fr-sig small { font-size: 12.5px; }
.fr-now { display: flex; flex-direction: column; gap: 8px; }
.fr-now .h-sec small { font: 500 13px var(--f-body); color: var(--muted); }
.fr-sig .fr-sig-faces { flex: none; flex-direction: row; }
.fr-sig-faces img, .fr-sig-faces svg { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--amber); object-fit: cover; object-position: 50% 12%; }
.fr-sig-faces > * + * { margin-left: -14px; background: var(--mint); }
.fr-sig { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; border: 2px dashed var(--coral); }
.fr-sig small { color: var(--muted); }
.fr-sig-go { min-height: 38px; padding: 0 16px; background: var(--coral); }

/* пьедестал: второй, первый, третий — первый выше */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding-top: 8px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 18px 18px 6px 6px;
  border: 2px solid var(--ink); box-shadow: var(--hard); text-align: center; }
.pod b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-n { font: 900 30px/1 var(--f-head); }
.pod i { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 800 14px/1 var(--f-body); font-style: normal; }
.pod-1 { background: var(--amber); min-height: 200px; }
.pod-2 { background: var(--mint); min-height: 168px; }
.pod-3 { background: var(--coral); min-height: 150px; }
.pod.you b::after { content: " · ты"; font-weight: 500; }
.fr-face { object-fit: contain; }

.fr-me { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; }
.fr-list, .fr-hosts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fr-list li, .fr-hosts li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.fr-list li.you { background: var(--amber); border: 2px solid var(--ink); box-shadow: var(--hard); }
.fr-list li > div, .fr-hosts li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-list small, .fr-hosts small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-list li.you small { color: var(--ink); }
.fr-no { width: 20px; font: 800 18px/1 var(--f-head); text-align: center; }
.fr-n { font: 900 24px/1 var(--f-head); }
.fr-hosts { display: flex; flex-direction: column; gap: 6px; }
.crown { font-size: 22px; }
.fr-invite { align-self: stretch; }
.fr-safe { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* карточка друга */
.mate { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mate h2 { margin: 0; font: 900 30px/1 var(--f-head); }
.mate > small { color: var(--muted); }
.mate-top { margin: 6px 0 0; }
.mate h3 { align-self: flex-start; margin: 10px 0 0; font: 800 20px var(--f-head); }
.mate-pl { list-style: none; align-self: stretch; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mate-pl li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); text-align: left; }
.mate-bd { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.mate-bd span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--ink); font-size: 26px; }
.mate-bd small { font-size: 11px; overflow-wrap: anywhere; font-weight: 600; line-height: 1.2; }
