/* Crooked Bear Games — the account pages (/account/, /account/link). Colours and type from site.css. */
.acc-page { background: var(--ink); }
.acc-main { max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gutter) 80px; box-sizing: border-box; min-height: 70vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.acc-banner { margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--ink-2); border-radius: var(--radius); color: var(--bone); }
.acc-banner.bad { border-left-color: var(--red-hi); }

/* signed out */
.acc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.acc-pitch h1 { font: 700 clamp(44px, 6vw, 72px)/0.95 var(--display); text-transform: uppercase; margin: 18px 0 20px; }
.acc-pitch p { color: var(--bone-dim); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.acc-perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.acc-perks li { display: flex; gap: 12px; align-items: center; }
.acc-perks li::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 1px; flex: none; }
.acc-perks li.teal::before { background: var(--teal); }

.acc-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.acc-narrow { max-width: 520px; margin: 0 auto; }
.acc-narrow h1 { font: 700 40px/1 var(--display); text-transform: uppercase; margin: 0; }
.acc-narrow p { color: var(--bone-dim); line-height: 1.6; margin: 0; }
.acc-tabs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; }
.acc-tabs button { flex: 1; height: 44px; border: 0; border-radius: 3px; background: transparent; color: var(--bone-dim); cursor: pointer;
  font: 600 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.acc-tabs button[aria-selected="true"] { background: var(--bone); color: var(--ink); }
.acc-oauth { height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 600; }
.acc-oauth svg { width: 20px; height: 20px; }
.acc-oauth.discord { background: #5865f2; }
.acc-oauth.itch { background: #fa5c5c; }
.acc-oauth:hover { filter: brightness(1.08); }
.acc-or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#f-auth, #f-reset, #f-pass, #f-delete, #f-rename { display: flex; flex-direction: column; gap: 14px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--bone-dim); }
.acc-field input { height: 46px; box-sizing: border-box; padding: 0 14px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); font: 16px var(--body); }
.acc-field input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.acc-field small { color: var(--mute); font-size: 12px; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; color: var(--bone-dim); font-size: 14px; line-height: 1.45; }
.acc-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.acc-error { margin: 0; color: var(--red-hi); font-size: 14px; }
.acc-note { margin: 0 0 12px; color: var(--teal); font-size: 14px; }
.acc-submit { justify-content: center; height: 52px; font-size: 18px; }
.acc-links { display: flex; justify-content: flex-end; }
.acc-fine { margin: 0; font-size: 12px; color: var(--mute); }
.acc-fine a { color: var(--bone-dim); }
.acc-captcha:empty { display: none; }
.acc-dev { padding: 10px 12px; background: var(--ink); border: 1px dashed var(--teal); color: var(--teal) !important; font-size: 13px; word-break: break-all; }
.acc-dev a { color: var(--teal); }
.linkish { background: none; border: 0; padding: 0; color: var(--red-hi); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--bone); }
.linkish.danger { color: var(--red-hi); }
button:disabled { opacity: .5; cursor: default; }

/* signed in: the header, four tabs and what's under them (.hub-*; account.js route() sets body[data-tab]) */
:root { --live: #5fd3a0; --r: 8px; --bar: 72px; }
.acc-dim { color: var(--bone-dim); }
.acc-small { font-size: 14px; }
.acc-h3 { margin: 0 0 14px; font: 600 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.acc-row { display: flex; gap: 10px; }
.acc-title { padding: 5px 10px; border-radius: 3px; font: 600 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.acc-title.supporter { background: var(--red); color: #fff; }
.acc-title.founder { border: 1px solid var(--teal); color: var(--teal); background: rgba(11, 11, 11, .45); }
.acc-badge { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 10px; background: var(--red); color: #fff; font: 600 12px/16px var(--body); letter-spacing: 0; text-align: center; }

body.hub-on .acc-main { max-width: none; padding: 0; }
.hub { display: block; }
.hub-body { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 88px; box-sizing: border-box; }
.hub svg { width: 18px; height: 18px; flex: none; }
.hub h2 { font: 600 20px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.hub-sub { color: var(--bone-dim); font-size: 15px; line-height: 1.45; margin: 0; }
.hub-pad { padding: 16px 18px; }

/* the header: the waiting room on camera */
.hub-hero { position: relative; overflow: hidden; padding-top: var(--bar); isolation: isolate; }
.hub-art { position: absolute; inset: 58px 0 0; z-index: -1; background: var(--ink) url("/assets/img/account/waiting-room-cctv.webp") center top / cover no-repeat; filter: saturate(.75) brightness(.8); }
.hub-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px),
    radial-gradient(120% 130% at 50% 30%, transparent 40%, rgba(11, 11, 11, .75) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, .55) 0, rgba(11, 11, 11, .05) 34%, rgba(11, 11, 11, .78) 74%, var(--ink) 100%); }
.hub-osd { position: absolute; top: calc(var(--bar) + 18px); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); display: flex; gap: 20px;
  font: 500 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: rgba(232, 227, 216, .78); text-shadow: 0 1px 3px #000; }
.hub-osd .rec::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--red-hi); animation: hub-rec 1.6s steps(2) infinite; }
@keyframes hub-rec { 50% { opacity: .15; } }
.hub-id { max-width: var(--maxw); margin: 0 auto; padding: 118px var(--gutter) 30px; box-sizing: border-box; display: flex; align-items: flex-end; gap: 24px; }

.hub-avwrap { position: relative; flex: none; }
.hub-avatar { position: relative; overflow: hidden; width: 118px; height: 118px; padding: 0; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--bone); display: flex; align-items: center; justify-content: center;
  font: 700 54px/1 var(--display); cursor: pointer; box-shadow: 0 0 0 2px var(--red), 0 0 0 6px rgba(11, 11, 11, .6); transition: width .2s, height .2s; }
.hub-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-avedit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(10, 10, 10, .74); font: 600 12px/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; opacity: 0; transition: opacity .15s; }
.hub-avatar:hover .hub-avedit, .hub-avatar:focus-visible .hub-avedit, .hub-avatar.busy .hub-avedit { opacity: 1; }
.hub-avcam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bone); color: var(--ink); pointer-events: none; box-shadow: 0 0 0 3px var(--ink); }
.hub-avcam svg { width: 17px; height: 17px; }
.hub-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-titles { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-titles:empty { display: none; }
.hub-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hub-name h1 { margin: 0; min-width: 0; font: 700 clamp(34px, 4.6vw, 58px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hub-since { color: var(--bone-dim); font-size: 15px; }

/* the friend code, as the game's waiting-room ticket */
.hub-ticket { flex: none; width: 196px; padding: 11px 20px 20px; border: 0; border-radius: 3px; position: relative; display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: left; font-family: var(--body);
  background: var(--bone); color: #4a4640; transform: rotate(-2.4deg); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s;
  -webkit-mask: radial-gradient(circle 7px at 0 42%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 42%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 42%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 42%, #0000 97%, #000) right / 51% 100% no-repeat; }
.hub-ticket:hover, .hub-ticket:focus-visible { transform: rotate(0) translateY(-3px); }
.hub-ticket::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 7px; opacity: .72;
  background: repeating-linear-gradient(90deg, #15130f 0 2px, transparent 2px 3px, #15130f 3px 4px, transparent 4px 7px, #15130f 7px 10px, transparent 10px 12px); }
.tk-top { display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.hub-ticket svg { width: 14px; height: 14px; }
.hub-ticket b { font: 700 31px/1.1 var(--display); letter-spacing: .05em; color: #b5291f; white-space: nowrap; }
.tk-how { font-size: 12px; line-height: 1.2; }
.hub-ticket.done { background: #cfe3d9; }
.hub-pic-error { max-width: var(--maxw); margin: 12px auto 0; padding: 0 var(--gutter); box-sizing: border-box; }

/* the tabs */
.hub-tabs { position: sticky; top: var(--bar); z-index: 40; background: rgba(11, 11, 11, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hub-tabs-in { max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--gutter) - 14px); box-sizing: border-box; display: flex; gap: 4px; }
.hub-tabs a { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 14px; color: var(--bone-dim); text-decoration: none; font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transition: color .15s; }
.hub-tabs a:hover { color: var(--bone); }
.hub-tabs a[aria-current="page"] { color: var(--bone); }
.hub-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); }

/* a tab other than the overview: the header steps aside */
body:not([data-tab="overview"]) .hub-id { padding-top: 22px; padding-bottom: 18px; align-items: center; gap: 18px; }
body:not([data-tab="overview"]) .hub-avatar { width: 62px; height: 62px; font-size: 30px; }
body:not([data-tab="overview"]) .hub-avcam, body:not([data-tab="overview"]) .hub-since, body:not([data-tab="overview"]) .hub-titles, body:not([data-tab="overview"]) .hub-osd, body:not([data-tab="overview"]) .tk-how { display: none; }
body:not([data-tab="overview"]) .hub-name h1 { font-size: clamp(26px, 3vw, 34px); }
body:not([data-tab="overview"]) .hub-ticket { width: auto; flex-direction: row; align-items: center; gap: 12px; padding: 8px 20px; transform: none; }
body:not([data-tab="overview"]) .hub-ticket::after { display: none; }
body:not([data-tab="overview"]) .hub-ticket b { font-size: 22px; }
body:not([data-tab="overview"]) .tk-top svg { display: none; }

/* parts */
.hub-cols { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 22px; align-items: start; }
.hub-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hub-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hub-card.flush { padding: 0; gap: 0; }
.hub-card.flush .hub-person { padding: 11px 18px; border-top: 1px solid var(--line); }
.hub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.hub-stack { display: flex; flex-direction: column; gap: 14px; }
.hub-more { display: inline-flex; align-items: center; gap: 2px; color: var(--bone-dim); font-size: 14px; text-decoration: none; }
.hub-more:hover { color: var(--bone); }
.hub-more svg { width: 15px; height: 15px; }
.hub-btn { height: 44px; padding: 0 18px; font-size: 14px; letter-spacing: .13em; justify-content: center; cursor: pointer; font-family: var(--display); box-sizing: border-box; }
.hub-btn:hover { transform: none; }
.hub-wide { width: 100%; }
.hub-link { background: none; border: 0; padding: 0; color: var(--bone); font: 500 15px/1.2 var(--body); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(232, 227, 216, .35); text-underline-offset: 4px; white-space: nowrap; }
.hub-link:hover { color: var(--red-hi); text-decoration-color: currentColor; }
.hub-link.quiet { color: var(--bone-dim); }
.hub-link.bad { color: var(--red-hi); }
.hub-ico { width: 34px; height: 34px; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 6px; color: var(--bone-dim); cursor: pointer; transition: background .15s, color .15s; }
.hub-ico:hover { background: rgba(232, 227, 216, .1); color: var(--bone); }
.hub-ico.boxed { width: 44px; height: 44px; border: 1px solid var(--line); }
.hub-name .hub-ico { color: var(--bone); opacity: .75; }

.hub-face { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.hub-face .in { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: center / cover no-repeat; color: var(--bone); font: 700 19px/1 var(--display); }
.hub-face i { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #55524b; border: 2.5px solid var(--ink-2); box-sizing: border-box; }
.hub-face i.on { background: var(--live); }
.hub-face.group { background: var(--ink-3); border: 1px solid var(--line); color: var(--bone-dim); box-sizing: border-box; }
.hub-stackf { display: flex; }
.hub-stackf .hub-face { box-shadow: 0 0 0 2px var(--ink-2); }
.hub-stackf .hub-face + .hub-face { margin-left: -10px; }
.hub-partyline { display: flex; align-items: center; gap: 12px; }

.hub-people { display: flex; flex-direction: column; gap: 12px; }
.hub-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hub-person .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hub-person .nm { font-weight: 600; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-person .nm em { margin-left: 8px; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.hub-person .sub { color: var(--mute); font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-person .sub.on { color: var(--live); }
.hub-person .go { flex: none; display: flex; align-items: center; gap: 4px; }
.hub-mini { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--bone); cursor: pointer; font: 500 14px/1 var(--body); transition: background .15s, border-color .15s; }
.hub-mini svg { width: 16px; height: 16px; }
.hub-mini:hover { border-color: var(--bone-dim); }
.hub-mini.yes { background: var(--bone); border-color: var(--bone); color: var(--ink); font-weight: 600; }
.hub-mini.yes:hover { background: #fff; border-color: #fff; }
.hub-menuwrap { position: relative; display: inline-flex; }
.hub-menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); min-width: 190px; padding: 5px; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); display: flex; flex-direction: column; }
.hub-menu button { padding: 10px 12px; background: none; border: 0; border-radius: 5px; color: var(--bone); text-align: left; cursor: pointer; font: 15px/1.2 var(--body); }
.hub-menu button:hover { background: rgba(232, 227, 216, .08); }
.hub-menu button.bad { color: var(--red-hi); }
.hub-fold-t { padding: 13px 18px 12px; margin: 0; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.hub-fold-t span { margin-left: 8px; color: var(--red-hi); }
.hub-none { align-items: center; text-align: center; color: var(--bone-dim); padding: 40px 28px; }
.hub-none svg { width: 34px; height: 34px; color: var(--mute); }
.hub-none p { margin: 0; max-width: 44ch; }

/* overview */
.hub-wait { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; margin-bottom: 22px; }
.hub-waiti { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(210, 58, 50, .5); border-radius: var(--r); background: rgba(210, 58, 50, .1); color: var(--bone); text-decoration: none; font-weight: 500; transition: background .15s; }
.hub-waiti:hover { background: rgba(210, 58, 50, .18); }
.hub-waiti svg:first-child { color: var(--red-hi); }
.hub-waiti svg:last-child { margin-left: auto; color: var(--bone-dim); }
.hub-game { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); isolation: isolate; }
.hub-game-art { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/doctors-appointment/normal_entry.webp") center 46% / cover no-repeat; opacity: .42; }
.hub-game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, var(--ink-2) 12%, rgba(19, 19, 18, .55) 70%, rgba(19, 19, 18, .3)); }
.hub-game-head { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-end; justify-content: space-between; padding: 26px 24px; }
.hub-game-head > div:first-child { flex: 1 1 280px; min-width: 0; }
.hub-kicker { font: 600 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.hub .hub-game h2 { margin: 8px 0 10px; font: 700 clamp(30px, 3.4vw, 42px)/1 var(--display); letter-spacing: .01em; }
.hub-game p { margin: 0; color: var(--bone-dim); line-height: 1.45; }
.hub-thanks { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; color: var(--teal) !important; }
.hub-thanks svg { width: 16px; height: 16px; }
.hub-game-go { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hub-game-go .btn { padding: 14px 20px; font-size: 14px; letter-spacing: .13em; }
.hub-careers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(11, 11, 11, .66); }
.hub-career { padding: 15px 18px 14px; --c: var(--bone); display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hub-career + .hub-career { border-left: 1px solid var(--line); }
.hub-career.doc { --c: var(--red-hi); }
.hub-career.dua { --c: var(--teal); }
.hub-career .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.hub-career .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-career small { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hub-career .nm b { font: 600 21px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.hub-career .lv { display: flex; align-items: baseline; gap: 5px; }
.hub-career .lv b { font: 700 32px/.9 var(--display); color: var(--c); }
.hub-career .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hub-career .bar i { display: block; height: 100%; background: var(--c); min-width: 3px; }
.hub-career .next { color: var(--bone-dim); font-size: 13px; line-height: 1.2; }
.hub-rush { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 6px; background: var(--ink-3); color: var(--bone-dim); font-size: 15px; line-height: 1.3; }
.hub-rush svg { color: var(--teal); }
.hub-rush.on { background: rgba(210, 58, 50, .14); color: var(--bone); }
.hub-rush.on svg { color: var(--red-hi); }
.hub-tasks { list-style: none; margin: 0; padding: 0; }
.hub-tasks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hub-tasks li:first-child { border-top: 0; padding-top: 2px; }
.hub-tasks li:last-child { padding-bottom: 0; }
.hub-tasks .ck { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #4a4842; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.hub-tasks .done .ck { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.hub-tasks .ck svg { width: 14px; height: 14px; stroke-width: 3; }
.hub-tasks .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hub-tasks .tx small { color: var(--mute); font-size: 12.5px; }
.hub-tasks .done .tx span { color: var(--bone-dim); }
.hub-tasks .ct { color: var(--bone-dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.hub-tasks .xp { flex: none; font: 600 14px/1 var(--display); letter-spacing: .06em; color: var(--teal); white-space: nowrap; }
.hub-tasks .done .xp { color: var(--mute); }

/* friends */
.hub-add { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hub-add label { font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.hub-addrow { display: flex; gap: 8px; }
.hub-add input, .hub-partyadd select { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 12px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); font: 16px var(--body); }
.hub-add .btn { flex: none; }
.acc-note { margin: 0; color: var(--teal); font-size: 14px; }
#friend-list { display: flex; flex-direction: column; gap: 16px; }
#friend-list:empty { display: none; }
.hub-partyadd { display: flex; gap: 8px; }
#party-invites:empty { display: none; }
#party-invites { display: flex; flex-direction: column; gap: 10px; }
#party-none { display: flex; flex-direction: column; gap: 14px; }
.hub-duo { display: flex; justify-content: space-between; gap: 12px; }
.hub-blocked { color: var(--bone-dim); font-size: 14px; }
.hub-blocked summary { cursor: pointer; }
.hub-blocked p { margin: 8px 0; }
#blocked-count { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* messages */
.hub-msgs { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--bar) - 158px - 28px - 24px); min-height: 480px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
body[data-tab="messages"] .hub-body { padding-bottom: 24px; }
.hub-convs { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.hub-convhead { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.hub-convlist { flex: 1; overflow-y: auto; }
.hub-conv { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--bone); text-align: left; cursor: pointer; font: 15px var(--body); transition: background .12s; }
.hub-conv:hover { background: rgba(232, 227, 216, .05); }
.hub-conv[aria-current="true"] { background: var(--ink-3); border-left-color: var(--red); }
.hub-conv .hub-face i { border-color: var(--ink-2); }
.hub-conv .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hub-conv .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.hub-conv .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-conv .at { flex: none; color: var(--mute); font-size: 12px; }
.hub-conv .ln { color: var(--mute); font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-conv.new .ln { color: var(--bone); }
.hub-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hub-noth { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; text-align: center; color: var(--bone-dim); }
.hub-noth[hidden] { display: none; }
.hub-noth > svg { width: 38px; height: 38px; color: var(--mute); }
.hub-noth p { margin: 0; max-width: 36ch; }
.hub-starts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.hub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--bone); cursor: pointer; font: 500 14px var(--body); transition: border-color .15s; }
.hub-chip:hover { border-color: var(--bone-dim); }
.hub-chip .hub-face { width: 28px; height: 28px; }
.hub-chip .hub-face .in { font-size: 14px; }
.hub-chip .hub-face i { width: 11px; height: 11px; border-width: 2px; }
#thread-on { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#thread-on[hidden] { display: none; }
.hub-thead { display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.hub-thface { display: inline-flex; }
.hub-thname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hub-thname b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-thname span { color: var(--mute); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-backbtn { display: none; }
.hub-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.hub-day { align-self: center; margin: 6px 0; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.acc-msg { align-self: flex-start; max-width: 74%; padding: 8px 12px; border-radius: 12px 12px 12px 3px; background: var(--ink-3); line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-msg.mine { align-self: flex-end; background: #2b3d38; border-radius: 12px 12px 3px 12px; }
.acc-msg.cont { margin-top: -5px; }
.acc-msg .by { display: block; font-size: 12px; color: var(--mute); margin-bottom: 2px; }
.acc-msg .at { margin-left: 10px; font-size: 11px; color: rgba(232, 227, 216, .45); white-space: nowrap; float: right; line-height: 1.9; }
.acc-msg.sys { align-self: center; background: transparent; color: var(--mute); font-size: 13px; padding: 2px; }
.acc-msg.play { border: 1px solid var(--teal); }
.acc-msg.play b { color: var(--teal); letter-spacing: .1em; }
.hub-tplay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(11, 11, 11, .4); }
.hub-tplay[hidden] { display: none; }
.hub-tplay label { font-size: 14px; color: var(--bone-dim); }
.hub-tplay input { width: 104px; height: 40px; box-sizing: border-box; padding: 0 10px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); font: 600 15px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.hub-tplay .btn { height: 40px; }
.hub-tplay small { flex-basis: 100%; color: var(--mute); font-size: 13px; }
.hub-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.hub-compose textarea { flex: 1; min-width: 0; height: 42px; max-height: 120px; box-sizing: border-box; resize: none; overflow: hidden; padding: 9px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); color: var(--bone); font: 16px/1.4 var(--body); }
.hub-compose .hub-ico { width: 42px; height: 42px; }
.hub-send { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r); background: var(--red); color: #fff; cursor: pointer; transition: background .15s; }
.hub-send:hover { background: var(--red-hi); }
#thread .acc-error { padding: 8px 18px 0; }

/* settings */
.hub-set { max-width: 940px; margin: 0 auto; }
.hub-group { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 70px); }
.hub-group:first-child { border-top: 0; padding-top: 4px; }
.hub-grouphead p { margin: 6px 0 0; color: var(--mute); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.hub-grouphead a { color: var(--bone-dim); }
.hub-rows { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.hub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-rowtxt { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.hub-rowtxt b { font-weight: 600; }
.hub-rowtxt span { color: var(--mute); font-size: 14px; overflow-wrap: anywhere; }
.hub-rowgo { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.hub-rowgo:empty { display: none; }
.hub-rowface { display: inline-flex; }
.hub-rowface .hub-face { width: 46px; height: 46px; }
.hub-brand { width: 36px; height: 36px; flex: none; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--mute); }
.hub-brand.discord.yes { background: #5865f2; color: #fff; }
.hub-brand.itch.yes { background: #fa5c5c; color: #fff; }
.hub-brand.mailbox.yes { background: var(--teal); color: var(--ink); }
.hub-switch { cursor: pointer; flex-wrap: nowrap; }
.hub-switch input { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 25px; margin: 0; flex: none; border-radius: 99px; background: #3a3833; cursor: pointer; transition: background .18s; }
.hub-switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--bone); transition: transform .18s; }
.hub-switch input:checked { background: var(--red); }
.hub-switch input:checked::before { transform: translateX(19px); background: #fff; }
.hub-fold { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.hub-fold[hidden] { display: none; }
.hub-fold .acc-field { width: 100%; max-width: 360px; }
.hub-sess { flex-basis: 100%; display: flex; flex-direction: column; gap: 7px; }
.hub-sess:empty { display: none; }
.hub-sessrow { display: flex; align-items: center; gap: 10px; color: var(--bone-dim); font-size: 14px; }
.hub-sessrow svg { width: 16px; height: 16px; color: var(--mute); }
.hub-sessrow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-sessrow small { margin-left: auto; flex: none; color: var(--mute); font-size: 13px; }
.hub-row.danger { background: rgba(210, 58, 50, .05); border-radius: 0 0 var(--r) var(--r); }
.hub-signout { display: flex; justify-content: flex-end; padding-top: 8px; }

/* dialogs and the toast */
.hub-dlg { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 24px; background: var(--ink-2); color: var(--bone); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.hub-dlg::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); }
.hub-dlg form { display: flex; flex-direction: column; gap: 16px; }
.hub-dlg p:not(.acc-error) { margin: 0 0 20px; line-height: 1.5; }
.hub-dlggo { display: flex; justify-content: flex-end; gap: 10px; }
.hub-toast { position: fixed; z-index: 150; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); box-sizing: border-box; padding: 12px 18px; border-radius: var(--r); background: var(--bone); color: var(--ink); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: hub-up .22s ease-out; }
.hub-toast.bad { background: var(--red); color: #fff; }
@keyframes hub-up { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .hub-osd .rec::before, .hub-toast { animation: none; } .hub-ticket { transition: none; } }

@media (max-width: 1040px) {
  .hub-cols { grid-template-columns: 1fr; }
  .hub-osd { top: calc(var(--bar) + 12px); font-size: 13px; }
}
@media (max-width: 900px) {
  .acc-auth { grid-template-columns: 1fr; }
  .hub-group { grid-template-columns: 1fr; gap: 12px; }
}
/* the phone: the tabs become a bar at the foot of the screen, and a conversation takes the whole screen */
@media (max-width: 760px) {
  body.hub-on { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hub-id { padding-top: 62px; padding-bottom: 20px; flex-wrap: wrap; align-items: center; gap: 16px; }
  .hub-avatar { width: 84px; height: 84px; font-size: 40px; }
  .hub-avcam { width: 28px; height: 28px; }
  .hub-osd { right: var(--gutter); }
  .hub-who { flex: 1 1 200px; }
  .hub-name h1 { font-size: clamp(26px, 8vw, 34px); }
  .hub-name h1.long { font-size: clamp(22px, 6.4vw, 30px); }
  .hub-ticket, body:not([data-tab="overview"]) .hub-ticket { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 9px 22px; transform: none; }
  .hub-ticket::after, .hub-ticket .tk-how { display: none; }
  .hub-ticket b, body:not([data-tab="overview"]) .hub-ticket b { font-size: 24px; margin-left: auto; }
  .tk-top { gap: 8px; }
  body:not([data-tab="overview"]) .hub-id { padding-top: 14px; padding-bottom: 14px; }
  body[data-tab="messages"] .hub-hero { display: none; }
  body[data-tab="messages"] .site-footer { display: none; }
  .hub-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); background: rgba(14, 14, 13, .97); }
  .hub-tabs-in { padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .hub-tabs a { height: 62px; padding: 8px 2px 6px; flex-direction: column; justify-content: center; gap: 4px; font-size: 12px; letter-spacing: .08em; }
  .hub-tabs a svg { width: 22px; height: 22px; }
  .hub-tabs a[aria-current="page"]::after { left: 24%; right: 24%; top: -1px; bottom: auto; }
  .hub-tabs .acc-badge { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 17px; padding: 0 4px; font-size: 11px; line-height: 17px; }
  .hub-body { padding-top: 20px; padding-bottom: 40px; }
  .hub-game-head { padding: 20px 18px; }
  .hub-game-go { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .hub-careers { grid-template-columns: 1fr; }
  .hub-career + .hub-career { border-left: 0; border-top: 1px solid var(--line); }
  .hub-addrow .btn span { display: none; }
  .hub-addrow .btn { width: 46px; padding: 0; }
  body[data-tab="messages"] .hub-body { padding: var(--bar) 0 0; max-width: none; }
  .hub-msgs { display: block; height: calc(100dvh - var(--bar) - 62px - env(safe-area-inset-bottom)); min-height: 0; border: 0; border-radius: 0; }
  .hub-convs { height: 100%; border-right: 0; }
  .hub-thread { display: none; height: 100%; }
  .hub-msgs.open .hub-convs { display: none; }
  .hub-msgs.open .hub-thread { display: flex; }
  .hub-noth { display: none; }
  .hub-backbtn { display: inline-flex; margin-left: -8px; }
  .hub-group { padding: 20px 0; scroll-margin-top: var(--bar); }
  .hub-signout { justify-content: stretch; }
  .hub-signout .btn { width: 100%; }
}
@media (max-width: 460px) {
  .hub-person .go .hub-mini:has(svg) span { display: none; }
  .hub-person .go .hub-mini:has(svg) { width: 36px; padding: 0; justify-content: center; }
  .hub-tasks .ct { display: none; }
  .hub-person.many { flex-wrap: wrap; }
  .hub-person.many .txt { flex-basis: calc(100% - 54px); }
  .hub-person.many .go { width: 100%; padding-left: 54px; box-sizing: border-box; }
}

/* /account/link */
.acc-linkp h1 { font-size: clamp(38px, 5vw, 56px); }
.acc-ucode { display: flex; gap: 10px; margin: 24px 0; }
.acc-ucode span { width: 60px; height: 74px; display: flex; align-items: center; justify-content: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); font: 700 42px/1 var(--display); }
.acc-ucode i { width: 14px; }
.acc-linkp .acc-card p { margin: 0; line-height: 1.5; }
