/* Accounts on the site pages: header control, the sign-in / profile / friends / notification / "Me" sheets,
   leaderboards, public profiles and the legal pages. Builds on tokens.css, arcade.css and home.css. */

/* ---------- header control ---------- */
.acct { display: flex; align-items: center; gap: 8px; }
.acct:empty { display: none; }
.btn.acct-signin { min-height: var(--by-tap); padding: 0 16px; white-space: nowrap; }
.acct-bell { position: relative; }
.acct-dot { font-style: normal; top: -3px; right: -3px; }
.acct-menuwrap { position: relative; display: none; }
.acct-me { display: flex; align-items: center; gap: 8px; height: var(--by-tap); padding: 0 14px 0 2px; border: 0; border-radius: var(--by-r-pill); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); font-weight: 600; font-size: 15px; max-width: 200px; transition: filter var(--by-dur-fast), transform var(--by-dur-gummy) var(--by-ease-spring); }
.acct-me:hover, .acct-me[aria-expanded="true"] { filter: brightness(1.2); }
.acct-me:active { transform: scale(.96, .92); transition-duration: var(--by-dur-instant); }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
img.av { border-radius: 50%; flex: none; object-fit: cover; background: var(--by-raised); }
.by-avatar > img { border-width: 2px; }
/* the account menu is floating chrome: real glass (the header's own blur is on a pseudo-element, so this is not nested) */
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: var(--by-z-overlay); width: 260px; padding: 8px; border-radius: var(--by-r-lg); display: grid; gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 42%), var(--by-glass-bg-strong); border: 1px solid var(--by-glass-border); box-shadow: var(--by-glass-inner), var(--by-shadow-3);
  -webkit-backdrop-filter: blur(var(--by-blur-lg)) saturate(var(--by-saturate)); backdrop-filter: blur(var(--by-blur-lg)) saturate(var(--by-saturate)); animation: by-pop var(--by-dur-gummy) var(--by-ease-gummy) both; transform-origin: 90% 0; }
.acct-menu[hidden] { display: none; }
.acct-menu-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--by-line); }
.acct-menu-head div { display: grid; min-width: 0; } .acct-menu-head b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.acct-menu-head span { font-size: 13px; }
.acct-menu [role="menuitem"] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--by-tap); padding: 0 12px; border: 0; border-radius: var(--by-r-sm); background: none; color: var(--by-text); font-weight: 600; font-size: 15px; text-align: left; }
.acct-menu [role="menuitem"]:hover, .acct-menu [role="menuitem"]:focus-visible { background: color-mix(in srgb, var(--by-text) 9%, transparent); outline: none; }
.acct-menu .ic { width: 22px; height: 22px; color: var(--by-text-muted); }
@media (min-width: 768px) { .acct-menuwrap { display: block; } }
@media (min-width: 768px) and (max-width: 1100px) { .acct-me { padding-right: 2px; } .acct-me .acct-name { display: none; } }
@media (max-width: 380px) { .btn.acct-signin { padding: 0 12px; font-size: 14px; } }

/* ---------- sheets ---------- */
@media (min-width: 768px) { dialog.acct-sheet { width: min(560px, calc(100vw - 48px)); } dialog.acct-sheet.profile { width: min(720px, calc(100vw - 48px)); } dialog.acct-sheet.me { width: min(440px, calc(100vw - 48px)); } }
.acct-body { display: grid; gap: 16px; padding: 32px 20px 24px; }
@media (min-width: 768px) { .acct-body { padding: 32px; } }
.acct-body h2 { font-size: var(--by-fs-h1); margin-top: 4px; padding-right: 44px; overflow-wrap: anywhere; }
.acct-body h3 { font: 700 12px/1.2 var(--by-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--by-text-muted); }
.acct-body .ic { width: 20px; height: 20px; }
.acct-reason { padding: 12px 14px; border-radius: var(--by-r-md); background: color-mix(in srgb, var(--by-social) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-social) 42%, transparent); font-weight: 500; }
.acct-perks { display: grid; gap: 12px; }
.acct-perks li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #cfd4ee; }
.acct-perks .ic { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, var(--by-owned) 12%, transparent); color: var(--by-owned); flex: none; }
.acct-perks b { color: var(--by-text); }
.acct-providers { display: grid; gap: 10px; }
.acct-providers .blipnote { padding: 8px; }
/* brand colours from each provider's sign-in button guidelines; text only, no logos */
.acct-provider { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-height: var(--by-tap-lg); padding: 10px 18px; border-radius: var(--by-r-pill); font: 600 16px/1.2 var(--by-font-ui); text-align: center; transition: filter var(--by-dur-fast), transform var(--by-dur-gummy) var(--by-ease-spring); }
.acct-provider.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775, 0 3px 0 rgba(0, 0, 0, .35); }
.acct-provider.discord { background: #5865f2; color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 3px 0 #3c45b0; }
a.acct-provider:hover { filter: brightness(1.06); transform: translateY(-1px); }
a.acct-provider:active { transform: scale(.96, .92) translateY(2px); transition-duration: var(--by-dur-instant); }
.acct-provider.off { opacity: .55; cursor: not-allowed; }
.acct-provider small { font: 700 11px/1 var(--by-font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--by-r-pill); background: rgba(0, 0, 0, .14); }
.acct-dev { display: grid; gap: 8px; padding: 14px; border-radius: var(--by-r-md); border: 1px dashed var(--by-line-strong); font-size: 14px; font-weight: 600; }
.acct-dev small { color: var(--by-text-muted); font-weight: 400; }
.acct-fine { font-size: 12px; line-height: 1.5; color: var(--by-text-muted); }
.acct-warn { padding: 12px 14px; border-radius: var(--by-r-md); background: color-mix(in srgb, var(--by-danger) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-danger) 42%, transparent); font-size: 14px; }
.acct-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--by-r-md); background: color-mix(in srgb, var(--by-owned) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-owned) 40%, transparent); font-weight: 500; font-size: 14px; }
.acct-ok .ic { color: var(--by-owned); }
.acct-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-inline input { flex: 1 1 180px; min-width: 0; }
.acct-inline .btn { min-height: var(--by-tap); }
.acct-nameform { display: grid; gap: 10px; }
.acct-nameform input { width: 100%; min-height: 56px; font: 400 24px/1.2 var(--by-font-display); }
.acct-help { font-size: 14px; }
.acct-help.bad { color: var(--by-danger-text); font-weight: 600; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.acct-actions .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .acct-actions .btn { flex: none; } }

/* profile sheet */
.acct-profile-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.acct-profile-head h2 { padding-right: 0; }
.acct-profile-head .muted { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.acct-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin-top: 4px; }
.acct-row .muted { font-size: 13px; }
.acct-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 12px 10px; }
@media (min-width: 480px) { .acct-gallery { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }
.acct-av { position: relative; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 0; background: var(--by-raised); box-shadow: 0 0 0 2px transparent; transition: transform var(--by-dur-gummy) var(--by-ease-spring), box-shadow var(--by-dur-fast); }
.acct-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.acct-av:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 2px var(--by-line-strong); }
.acct-av:active { transform: scale(.94, .9); transition-duration: var(--by-dur-instant); }
.acct-av.on { box-shadow: 0 0 0 3px var(--by-bg), 0 0 0 6px var(--by-owned); }
.acct-av.locked img { filter: grayscale(.85) brightness(.55); }
.acct-av.armed { box-shadow: 0 0 0 3px var(--by-bg), 0 0 0 6px var(--by-coin); }
.acct-av-lock { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--by-r-pill); background: rgba(11, 13, 26, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct-av-lock .ic { width: 13px; height: 13px; }
.acct-av-badge { position: absolute; right: -2px; top: -2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--by-gummy-mint); color: var(--by-text-on-mint); box-shadow: 0 0 0 2px var(--by-bg), inset 0 1.5px 0 rgba(255, 255, 255, .55); }
.acct-av-badge .ic { width: 13px; height: 13px; }
.acct-inline-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--by-r-md); background: color-mix(in srgb, var(--by-bg-deep) 45%, transparent); box-shadow: inset 0 0 0 1px var(--by-glass-border); }
.acct-inline-row > span { display: grid; gap: 2px; min-width: 0; }
.acct-inline-row b { font-weight: 600; }
.acct-inline-row small { font-size: 13px; }
.acct-danger { margin-top: 0; }

/* friends and notifications */
.acct-tabs { margin-top: -4px; }
.acct-panel { display: grid; gap: 12px; min-height: 140px; align-content: start; }
.acct-list { display: grid; gap: 8px; }
.acct-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 56px; padding: 8px 12px; border-radius: var(--by-r-lg); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); }
.acct-list li.unread { box-shadow: var(--by-glass-inner), inset 0 0 0 1px color-mix(in srgb, var(--by-coin) 45%, transparent); position: relative; }
/* the unread ping is the gold i-dot */
.acct-list li.unread::before { content: ""; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--by-coin); box-shadow: 0 0 0 3px color-mix(in srgb, var(--by-coin) 25%, transparent); }
.acct-who { flex: 1 1 140px; min-width: 0; display: grid; gap: 1px; font-size: 14px; }
.acct-who a, .acct-body .acct-who a { color: var(--by-text); text-decoration: none; }
.acct-who a:hover { color: var(--by-social-text); }
.acct-who b { font-weight: 600; }
.acct-who b, .acct-who > span { overflow: hidden; text-overflow: ellipsis; }
.acct-who small { color: var(--by-text-muted); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.acct-who small.on { color: var(--by-success-text); }
.acct-presence { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--by-text) 25%, transparent); flex: none; }
.acct-presence.on { background: var(--by-owned); box-shadow: 0 0 0 3px color-mix(in srgb, var(--by-owned) 22%, transparent); }
.acct-list .btn.small { min-height: 40px; }
.iconbtn.armed { box-shadow: inset 0 0 0 1.5px var(--by-danger); color: var(--by-danger-text); }
.acct-empty { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; text-align: center; color: var(--by-text-muted); }
.acct-addform { display: grid; gap: 8px; }
.acct-linkbox { display: grid; gap: 8px; padding: 14px; border-radius: var(--by-r-lg); background: color-mix(in srgb, var(--by-social) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-social) 38%, transparent); }
.acct-linkbox p { font-size: 14px; }
.acct-linkbox input { font-weight: 500; font-size: 14px; }

/* "Me" sheet (src/site/shell.js) */
.me-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.me-head h2 { padding-right: 0; margin-top: 2px; }
.me-head .blip { align-self: flex-end; }
.me-xp { display: grid; gap: 8px; }
.me-xp-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; font-size: 14px; font-weight: 500; color: var(--by-text-muted); font-variant-numeric: tabular-nums; }
.me-cta { display: grid; gap: 12px; padding: 14px; border-radius: var(--by-r-lg); background: color-mix(in srgb, var(--by-social) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-social) 38%, transparent); font-size: 14px; }
.me-list { display: grid; gap: 6px; }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--by-tap-lg); padding: 0 12px 0 14px; border: 0; border-radius: var(--by-r-md); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); color: var(--by-text); font: 600 16px/1.2 var(--by-font-ui); text-align: left; text-decoration: none; transition: transform var(--by-dur-gummy) var(--by-ease-spring), filter var(--by-dur-fast); }
.acct-body a.me-row { color: var(--by-text); text-decoration: none; }
.me-row:hover { filter: brightness(1.2); } .me-row:active { transform: scale(.98, .95); transition-duration: var(--by-dur-instant); }
.me-row > span { flex: 1; }
.me-row .ic { width: 22px; height: 22px; color: var(--by-text-muted); }
.me-row .me-chev { width: 16px; height: 16px; opacity: .6; }

/* ---------- player card: guest prompt ---------- */
.acct-cta { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 8px; border-radius: var(--by-r-lg); background: color-mix(in srgb, var(--by-social) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--by-social) 38%, transparent); font-size: 14px; line-height: 1.4; }
.acct-cta .blip { width: 48px; align-self: flex-end; }
.acct-cta span { flex: 1; min-width: 0; color: #d9d5f7; } .acct-cta b { color: var(--by-text); }
.acct-cta .btn { min-height: var(--by-tap); }
.acct-cta[hidden] { display: none; }
@media (max-width: 400px) { .acct-cta { flex-wrap: wrap; } .acct-cta span { flex-basis: calc(100% - 64px); } .acct-cta .btn { flex: 1 1 100%; } }

/* ---------- leaderboards (page + home widget) ---------- */
.lb-board { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lb-row { display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px 8px 10px; border-radius: var(--by-r-lg); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); }
.lb-row .lb-rank { min-width: 0; font: 400 20px/1 var(--by-font-display); text-align: center; color: var(--by-text-muted); font-variant-numeric: tabular-nums; }
.lb-row.top1 .lb-rank, .lb-row.top2 .lb-rank, .lb-row.top3 .lb-rank { width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #241600; }
.lb-row.top1 .lb-rank { background: var(--by-gummy-gold); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 0 14px rgba(255, 201, 77, .45); }
.lb-row.top2 .lb-rank { background: linear-gradient(180deg, #f4f6ff, #c3c9e6 50%, #9aa2c8); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7); }
.lb-row.top3 .lb-rank { background: linear-gradient(180deg, #ffd0a8, #e79a5d 50%, #c0723a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55); }
.lb-row img.av { width: 100%; height: auto; aspect-ratio: 1; }
.lb-row .who { display: grid; min-width: 0; margin: 0; gap: 0; }
.lb-row .who a { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .who a:hover { color: var(--by-social-text); }
.lb-row .who small { color: var(--by-text-muted); font-size: 12px; font-weight: 600; }
.lb-row .score { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.lb-row.me { box-shadow: var(--by-glass-inner), inset 0 0 0 1.5px var(--by-owned), 0 0 22px -6px color-mix(in srgb, var(--by-owned) 60%, transparent); }
.lb-row.me .who a::after { content: " (you)"; color: var(--by-success-text); font-weight: 600; }
.lb-gap { text-align: center; color: var(--by-text-muted); letter-spacing: .3em; padding: 0; line-height: 1; }
.lb-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lb-controls .seg { grid-template-columns: repeat(2, auto); flex: 1 1 auto; }
@media (min-width: 560px) { .lb-controls .seg { flex: none; } }
.lb-games { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); }
.lb-games::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .lb-games { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.lb-status { display: grid; justify-items: center; gap: 12px; padding: 28px 16px; text-align: center; color: var(--by-text-muted); border-radius: var(--by-r-xl); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); }
.lb-status .blip { animation: by-bob 3.2s var(--by-ease-in-out) infinite; }
.lb-status .by-loader { width: 56px; height: 62px; }
.lb-board + .lb-status { margin-top: 16px; }
.lb-note { font-size: 13px; color: var(--by-text-muted); max-width: 70ch; }
.home-lb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .home-lb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.home-lb .panel { display: grid; gap: 12px; align-content: start; }
.home-lb .panel h3 { margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.home-lb .panel h3 a { color: var(--by-link); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; padding: 6px 0; }
.home-lb .lb-row { min-height: 48px; padding: 6px 14px 6px 8px; grid-template-columns: 32px 32px minmax(0, 1fr) auto; background: color-mix(in srgb, var(--by-bg-deep) 45%, transparent); box-shadow: inset 0 0 0 1px var(--by-glass-border); }
.home-lb .lb-row.me { box-shadow: inset 0 0 0 1.5px var(--by-owned); }
.home-lb .lb-row .lb-rank { font-size: 17px; }
.home-lb .lb-row.top1 .lb-rank, .home-lb .lb-row.top2 .lb-rank, .home-lb .lb-row.top3 .lb-rank { width: 28px; height: 28px; font-size: 15px; }
main.lbpage { max-width: calc(900px + 2 * var(--gutter)); }
.lbpage .head { margin: 8px 0 0; }
@media (max-width: 420px) { .lb-row { grid-template-columns: 32px 34px minmax(0, 1fr) auto; gap: 10px; padding-right: 12px; } }

/* ---------- public profile page ---------- */
.pf-head { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.pf-head .by-avatar { --size: clamp(96px, 24vw, 140px); padding: 5px; }
.pf-head .by-avatar > img { border-width: 4px; }
.pf-head .by-avatar__lvl { right: 2px; bottom: 2px; min-width: 34px; height: 30px; font-size: 16px; border-radius: 15px; }
.pf-head > div { flex: 1 1 240px; min-width: 0; }
.pf-head h1 { overflow-wrap: anywhere; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--by-text-muted); font-weight: 500; font-size: 14px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pf-meta .on { color: var(--by-success-text); }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .pf-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } }
.pf-card { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--by-r-lg); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); transition: transform var(--by-dur-gummy) var(--by-ease-spring); }
.pf-card:hover { transform: translateY(-2px); } .pf-card:active { transform: scale(.98, .95); transition-duration: var(--by-dur-instant); }
.pf-card .cover-mini { width: 72px; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; flex: none; background: var(--by-raised); }
.pf-card div { display: grid; min-width: 0; font-size: 14px; }
.pf-card b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card span { color: var(--by-text-muted); }
.pf-card .rankpill { margin-left: auto; padding: 4px 10px; border-radius: var(--by-r-pill); background: color-mix(in srgb, var(--by-coin) 14%, transparent); color: var(--by-coin-text); font-weight: 700; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#profile .head { margin: 12px 0 -4px; }

/* ---------- legal pages ---------- */
.legal h2 { font: 700 var(--by-fs-h2)/var(--by-lh-h2) var(--by-font-ui); margin-top: 16px; }
.legal p, .legal li { color: #d5d9f0; max-width: 64ch; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal ul li::marker { color: var(--by-owned); }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal td, .legal th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--by-line); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.legal th { color: var(--by-text-muted); font: 700 12px/1.2 var(--by-font-ui); letter-spacing: .08em; text-transform: uppercase; }
.legal .tablewrap { overflow-x: auto; border-radius: var(--by-r-lg); background: var(--by-glass-lite); box-shadow: var(--by-glass-inner), 0 0 0 1px var(--by-glass-border); }

/* sign-in methods (Google / Discord): one row each, stacked with a small gap */
.acct-method + .acct-method { margin-top: 8px; }
.acct-method b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--by-text-dim, #8a90b8); }
.acct-method.google b::before { background: #ffc94d; }
.acct-method.discord b::before { background: #b69cff; }
