/* Friends and their board (public/js/social.js): the card in Home's column, the board full screen, the invite sheet, as the mock-up
   Matt said "do it" to. The board's colours (light or dark) from style.css, the lips under buttons like the rest of Home. */
.fr-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.fr-card .bh-ico .fr-ic.p { width: 28px; height: 28px; color: #4b82ff; }
.fr-mini { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; }
.fr-mini.me { background: color-mix(in srgb, #4b82ff 12%, transparent); }
.fr-mini b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 900; }
.fr-mini em { font-style: normal; font-size: 14.5px; font-weight: 800; color: var(--muted); }
.fr-rk { width: 22px; flex: none; text-align: center; font-size: 15px; font-weight: 900; color: var(--faint); }
.fr-rk.g { color: #e6a800; } .fr-rk.s { color: #8d97a6; } .fr-rk.b { color: #c2783c; }
.fr-av { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 3px 0 var(--lip); color: #fff; font-size: 17px; font-weight: 900; }

/* the board, over everything */
html.fr-open, html.fr-open body { overflow: hidden; }
html.fr-open .cbox-wrap { z-index: 3100; } /* (the are-you-sure box over it) */
.fr { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: var(--ink); color: var(--text); font-family: Nunito, system-ui, sans-serif;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); animation: fr-in .22s ease-out; }
@keyframes fr-in { from { opacity: 0; translate: 0 14px; } }
.fr > .fr-top, .fr > .fr-body, .fr > .fr-foot { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
.fr-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 0 4px; }
.fr-close { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 12px; background: none; color: var(--faint); cursor: pointer; }
.fr-close .fr-ic { width: 26px; height: 26px; stroke-width: 2.6; } .fr-close:hover { color: var(--text); background: var(--arc); }
.fr-edit { border: 0; background: none; color: #4b82ff; font: 900 15px/1 Nunito, system-ui, sans-serif; padding: 10px 6px; cursor: pointer; }
.fr-body { flex: 1; min-height: 0; overflow-y: auto; }
.fr-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 16px; text-align: center; }
.fr-head h2 { margin: 6px 0 0; font-size: 26px; font-weight: 900; } .fr-head p { margin: 0; max-width: 34ch; font-size: 15px; font-weight: 700; color: var(--muted); }
.fr-trophy { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #ffc83d; box-shadow: 0 5px 0 #d79a00; } .fr-trophy .fr-ic { width: 40px; height: 40px; color: #fff; stroke-width: 2.2; }
.fr-board { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; }
.fr-row.me { background: color-mix(in srgb, #4b82ff 12%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, #4b82ff 35%, transparent) inset; }
.fr-row .fr-av { width: 42px; height: 42px; font-size: 18px; }
.fr-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fr-nm b { font-size: 17px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-nm em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 13.5px; font-weight: 800; color: #ff9a3c; } .fr-nm em .fr-ic { width: 15px; height: 15px; fill: #ff9a3c; stroke: none; } .fr-nm em.none { color: var(--faint); }
.fr-xp { font-size: 16px; font-weight: 900; color: var(--muted); }
.fr-rm { border: 0; border-radius: 12px; padding: 8px 12px; background: color-mix(in srgb, #ff4646 12%, transparent); color: #e02424; font: 900 14px/1 Nunito, system-ui, sans-serif; cursor: pointer; }
.fr-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 0 max(20px, env(safe-area-inset-bottom)); }
.fr-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 18px; padding: 16px 20px 15px; font: 900 18px/1.2 Nunito, system-ui, sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #fff; cursor: pointer; transition: translate .08s, box-shadow .08s, filter .15s; }
.fr-btn.blue { background: #4b82ff; box-shadow: 0 5px 0 #2f5fd0; } .fr-btn .fr-ic { stroke-width: 2.5; }
.fr-btn:hover { filter: brightness(1.06); } .fr-btn:active { translate: 0 4px; box-shadow: 0 1px 0 #2f5fd0; }
.fr-soft { margin: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
/* the invite, a sheet from the bottom */
.fr-veil { position: fixed; inset: 0; background: #1d1d1f66; animation: fr-fade .18s ease-out; }
@keyframes fr-fade { from { opacity: 0; } }
.fr-sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 560px); display: flex; flex-direction: column; gap: 14px; padding: 24px 22px max(28px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--fr-sheet, #fff); color: var(--text); animation: fr-up .22s ease-out; }
body:not(.light) .fr-sheet { --fr-sheet: #18181c; }
@keyframes fr-up { from { translate: 0 40px; opacity: 0; } }
.fr-face { display: flex; justify-content: center; } .fr-face svg { width: 72px; height: 72px; }
.fr-sheet h3 { margin: 0; text-align: center; font-size: 24px; font-weight: 900; } .fr-sheet > p { margin: 0; text-align: center; font-size: 15.5px; font-weight: 700; color: var(--muted); }
.fr-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; box-shadow: 0 0 0 2px var(--arc-edge) inset; font-size: 15px; font-weight: 900; }
.fr-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3b74f0; user-select: all; }
.fr-link button { border: 0; padding: 10px 16px; border-radius: 12px; background: var(--arc); font: 900 14px/1 Nunito, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--text); box-shadow: 0 3px 0 var(--arc-lip); cursor: pointer; }
.fr-sheet-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: none; color: var(--faint); cursor: pointer; } .fr-sheet-x .fr-ic { width: 24px; height: 24px; stroke-width: 2.6; }
.fr-new { white-space: nowrap; border: 0; background: none; padding: 0; color: #4b82ff; font: inherit; font-weight: 900; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fr, .fr-veil, .fr-sheet { animation: none; } }
