/* Accounts and the players you meet: the house rules under a name field, the profile's pages outside the app, the
   people blocked and deleting the account, the player sheet, faces that open it. */

/* ---------- under a name field ---------- */
.rules-line { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin: -2px 4px 4px; }
.rules-line a { color: var(--ink-2); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2.5px; text-decoration-color: rgba(255, 255, 255, .28); }
.rules-line a:active { opacity: .7; }
/* with the rules under it, a name field's note keeps no room while it is empty; one that shows comes in between */
:has(> .rules-line) > div > .field-note:empty { min-height: 0; margin-top: 0; }
.welcome .apple-note { font-size: 14px; line-height: 1.4; color: var(--muted); margin: -10px 4px 16px; }

/* ---------- the profile ---------- */
a.row { color: inherit; text-decoration: none; -webkit-touch-callout: none; transition: transform .22s var(--spring); }
a.row:active { transform: scale(.98); }
.profile-scr .group.outside { margin-top: 28px; }
.profile-scr .group.blocked .row { gap: 12px; }
.profile-scr .group.blocked .row .k { flex-direction: row; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.profile-scr .group.delete { margin-top: 18px; }
.profile-scr .group.delete .row .k { color: var(--red-ink); }

/* ---------- a friend request: the face and name open who it is ---------- */
.row > button.who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; transition: transform .22s var(--spring); }
.row > button.who:active { transform: scale(.98); }

/* ---------- the player sheet ---------- */
.fsheet.player .section-h { margin: 4px 0 0; min-height: 36px; }
.fsheet.player .section-h h2 { font-size: 17px; }
.fsheet.player .top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsheet.player .top > div { min-width: 0; }
.fsheet.player .remove { display: flex; justify-content: center; margin-top: -4px; }
.fsheet.player .remove .text-link { color: var(--red-ink); }

/* ---------- faces that open the player sheet ---------- */
.seat > button.who-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; text-align: left; font-weight: 720; transition: transform .22s var(--spring); }
.seat > button.who-tap:active { transform: scale(.98); }
.seat > button.who-tap .who { flex: 1; min-width: 0; }
/* an opponent whose account was deleted: no rematch, so home has the row to itself */
.result.compact .btns.one { grid-template-columns: minmax(0, 1fr); }
.result .face.tap { cursor: pointer; }
.result .face.tap .avatar { transition: transform .2s var(--spring); }
.result .face.tap:active .avatar { transform: scale(.94); }
/* durak draws its seats over the table: their faces and names take a tap (the cards still go to the board) */
.play .stage [data-seat] .avatar, .play .stage .dk-name { pointer-events: auto; }
