/* The ELXR account on the games site: the sign-in pop-out (index) and the account page (/account).
   account.js builds the markup. Colours and sizes follow launcher/scripts/look.gd. */
.acct-root {
  --bg: #12110f; --panel: #1c1a18; --raised: #262421; --hover: #2f2c28; --line: rgba(239, 233, 222, 0.09);
  --text: #efe9de; --head: #f6f1e7; --dim: #aaa398; --mute: #8a847a; --accent: #e3b23c; --ink: #16120a; --good: #7fb487;
  font: 400 16px/1.5 "Barlow", system-ui, sans-serif; color: var(--text);
}
dialog.acct-root { width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 0; overflow: auto;
  background: var(--panel); border: 1px solid rgba(239, 233, 222, 0.14); border-radius: 8px; }
dialog.acct-root::backdrop { background: rgba(5, 6, 8, 0.72); }
.acct-root .acct { padding: 24px; }
.acct-root .acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.acct-root .acct-head h2 { margin: 0; font: 500 20px/1.3 "Barlow", sans-serif; color: var(--head); }
.acct-root .acct-x { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 4px; color: var(--dim); cursor: pointer; }
.acct-root .acct-x:hover { background: var(--hover); color: var(--head); }
.acct-root .acct-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.acct-root .gate-note { margin: 0 0 16px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--raised); font-size: 15px; }
.acct-root .tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.acct-root .tabs button { background: none; border: 0; padding: 0 0 12px; font: 500 16px/1 "Barlow", sans-serif; color: var(--dim); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-root .tabs button[aria-selected="true"] { color: var(--head); border-bottom-color: var(--accent); }
.acct-root form, .acct-root [data-view="me"] { display: flex; flex-direction: column; gap: 16px; }
.acct-root [hidden] { display: none !important; }
.acct-root label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--dim); }
.acct-root input:not([type="checkbox"]) { height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font: 400 16px "Barlow", sans-serif; }
.acct-root input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.acct-root label.check { flex-direction: row; align-items: center; gap: 12px; color: var(--text); }
.acct-root label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.acct-root label.check a, .acct-root .quiet { color: var(--dim); }
.acct-root .quiet { font-size: 14px; text-decoration: none; margin: 0; }
.acct-root a.quiet:hover { color: var(--head); }
.acct-root .btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--raised); color: var(--text); font: 500 14px/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer; }
.acct-root .btn:hover { background: var(--hover); }
.acct-root .btn.primary { height: 48px; font-size: 16px; font-weight: 600; background: var(--accent); color: var(--ink); border-color: transparent; }
.acct-root .btn.primary:hover { background: #e9b45a; }
.acct-root button:disabled { opacity: .6; cursor: default; }
.acct-root .msg { margin: 0; min-height: 20px; font-size: 14px; color: #e5866b; }
.acct-root .msg.good, .acct-root .good { color: var(--good); }
.acct-root .lead { margin: 0; color: var(--text); }
.acct-root .pair { display: flex; flex-wrap: wrap; gap: 12px; }
.acct-root .step2 { display: flex; flex-direction: column; gap: 16px; }

/* Signed in: one row per setting, its form opens under it. */
.acct-root .set { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.acct-root .set-row { display: flex; align-items: center; gap: 16px; }
.acct-root .set-row > div { flex: 1; min-width: 0; }
.acct-root .set-row strong { display: block; font-weight: 500; font-size: 14px; color: var(--dim); }
.acct-root .set-row span { display: block; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-root .code { margin: 0; padding: 12px 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 4px;
  font: 600 20px/1.2 "Barlow Condensed", "Barlow", sans-serif; letter-spacing: .04em; color: var(--head); user-select: all; }

.acct-root .qr { width: 176px; height: 176px; border-radius: 4px; overflow: hidden; }
.acct-root .qr svg { display: block; width: 100%; height: 100%; }
.acct-root .quiet b { color: var(--head); font-weight: 500; letter-spacing: .04em; }

/* The yellow box in the header once signed in: just the account name. */
header .acct-links .btn.go.name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 34px; cursor: pointer; }
