/* The player's account box (the demo's page and the new-password page): a white glossy panel, the game's look. */
dialog.acct, .acct-page {
  width: min(420px, calc(100vw - 32px)); padding: 26px 26px 22px; border: 1px solid var(--edge); border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); box-shadow: var(--shadow); color: var(--ink-strong);
}
dialog.acct::backdrop { background: rgba(20, 26, 40, 0.55); backdrop-filter: blur(3px); }
.acct h2, .acct-page h2 { margin: 0 0 6px; font: 800 22px/1.2 var(--body); }
.acct .lead, .acct-page .lead { margin: 0 0 16px; font-size: 14px; color: var(--ink); }
.acct .x { position: absolute; top: 10px; right: 10px; margin: 0; }
.acct .x button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font: 800 20px/1 var(--body); cursor: pointer; }
.acct .x button:hover, .acct .x button:focus-visible { background: rgba(0, 0, 0, 0.06); outline: none; }
.acct .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.acct .tabs button { font: 800 14px/1 var(--body); padding: 10px; border-radius: 6px; border: 1px solid var(--edge); background: #fff; color: var(--ink); cursor: pointer; }
.acct .tabs button[aria-selected="true"] { background: var(--lit); color: #fff; border-color: transparent; }
.acct form, .acct-page form { display: grid; gap: 10px; }
.acct label, .acct-page label { display: grid; gap: 4px; font-size: 13px; color: var(--ink); }
.acct input, .acct-page input { font: 600 15px/1 var(--body); color: var(--ink-strong); background: #fff; border: 1px solid #d3d0c8; border-radius: 6px; padding: 11px 12px; }
.acct input:focus-visible, .acct-page input:focus-visible { outline: 2px solid var(--lit); outline-offset: 1px; }
.acct .go, .acct-page .go { margin-top: 4px; font: 800 15px/1 var(--body); color: #fff; background: #2b5c9e; border: 0; border-radius: 6px; padding: 13px 16px; cursor: pointer; }
.acct .go:hover, .acct-page .go:hover { background: #24508b; }
.acct .go:disabled, .acct-page .go:disabled { opacity: 0.6; cursor: wait; }
.acct .link, .acct-page .link { justify-self: center; font: 600 13px/1 var(--body); color: #2b5c9e; background: none; border: 0; padding: 6px; cursor: pointer; text-decoration: underline; }
.acct .msg, .acct-page .msg { margin: 10px 0 0; min-height: 1em; font-size: 13px; color: var(--ink); text-align: center; }
.acct .msg.bad, .acct-page .msg.bad { color: #b5401d; }
.acct .builds { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.acct .builds li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: #fff; border: 1px solid var(--edge); border-radius: 6px; }
.acct .builds li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .builds li small { color: var(--soft); font-size: 12px; white-space: nowrap; }
.acct .builds li button { font: 700 13px/1 var(--body); color: #b5401d; background: none; border: 1px solid rgba(181, 64, 29, 0.35); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.acct .builds li button:hover { background: rgba(181, 64, 29, 0.08); }
.acct .builds li.none { justify-content: center; color: var(--ink); background: transparent; border-style: dashed; }
