/* Account. Linked after bets.css, as these rules followed My bets in styles.css until they had a sheet of their own.
   Colours are the tokens in styles.css. */

/* Account: who you are and your balance, then panels of rows. Forms open from their row. */
.account { display: grid; gap: 12px; padding: 20px 0 24px; }
.acct-head { display: flex; align-items: center; gap: 14px; }
.acct-disc { width: 56px; height: 56px; font-size: calc(20px * var(--type)); }
.acct-who { min-width: 0; }
.account-name { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: calc(36px * var(--type)); line-height: 1; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.acct-role { margin-top: 4px; font-size: calc(14px * var(--type)); color: var(--muted); }
.acct-balance { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.acct-balance > div:first-child { display: grid; gap: 2px; }
.account-figure { font-size: calc(34px * var(--type)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.account-actions { display: flex; gap: 8px; }
.acct-grid { display: grid; gap: 12px; }
.acct-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.acct-panel { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.acct-panel.is-safer { box-shadow: inset 4px 0 var(--placed); }
.acct-panel.is-attention { box-shadow: inset 4px 0 var(--pending); }
/* A section that opens and closes from its title (Safer gambling, at the foot of the page). */
.acct-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: -6px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acct-section .ico { flex: none; color: var(--muted); transition: color .18s; }
.acct-section:hover .ico { color: var(--text); }
.acct-panel.is-collapsible:not(.is-open) .acct-title { margin-bottom: 0; }
.acct-panel-body { display: grid; gap: 4px; }
.acct-panel-body > .acct-title-row { justify-content: flex-end; margin-top: -4px; }
.acct-sub { box-shadow: inset 0 1px var(--line); margin-top: 4px; }
.silks-editor { display: grid; gap: 12px; padding-bottom: 8px; }
/* A panel title with a tooltip beside it, and the tooltip itself: a bubble under its row, pointing up at its "i". */
.acct-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.acct-title-row .acct-title { margin-bottom: 0; }
.tip-btn { flex: none; color: var(--muted); }
.tip-btn[aria-expanded="true"] { color: var(--text); }
.acct-select + .tip-btn { align-self: flex-end; }
/* A box with its "i" beside it (Play money's Amount, 25.11.2026): the "i" level with the box, any error under both. */
.acct-field-tip { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
.acct-field-tip > .tip-btn { grid-column: 2; grid-row: 1; }
.acct-field-tip > .form-error, .acct-field-tip > .field-hint { grid-column: 1 / -1; }
.acct-tip { position: relative; margin: 2px 0 10px; padding: 10px 12px; border-radius: var(--radius-inner); background: var(--text); color: var(--ground); font-size: calc(14px * var(--type)); line-height: 1.45; animation: form-open .2s var(--ease); }
.acct-tip::before { content: ''; position: absolute; top: -6px; right: 16px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--text); }
.acct-tip + .acct-row { box-shadow: inset 0 1px var(--line); }
/* The sports on the player's Board: a chip each, on (ringed, in colour) or off (greyed). */
.sport-picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 12px; }
.sport-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: calc(15px * var(--type)); font-weight: 600; transition: background-color .18s, color .18s, box-shadow .18s; }
.sport-pick .ico { width: 20px; height: 20px; filter: grayscale(1); opacity: .5; transition: filter .18s, opacity .18s; }
.sport-pick.is-on { color: var(--text); box-shadow: inset 0 0 0 2px var(--switch-on); }
.sport-pick.is-on .ico { filter: none; opacity: 1; }
.sport-pick:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.acct-panel.is-danger .acct-title { color: var(--loss); }
.acct-title { margin-bottom: 4px; font-size: calc(17px * var(--type)); font-weight: 700; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 0; }
.acct-row + .acct-row, .auth-form + .acct-row { box-shadow: inset 0 1px var(--line); }
.acct-row-main { display: grid; gap: 2px; min-width: 0; }
/* Price changes: the label, then the three choices and their "i", which drop under the label on a phone. */
.acct-row.is-prices { flex-wrap: wrap; row-gap: 6px; }
.acct-label { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.acct-value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: calc(15px * var(--type)); overflow-wrap: anywhere; }
.acct-dots { letter-spacing: .12em; color: var(--muted); }
.acct-pending { flex-basis: 100%; font-size: calc(13px * var(--type)); color: var(--muted); }
.acct-controls { display: flex; gap: 4px; flex: none; }
.acct-panel .auth-form.compact { padding: 4px 0 12px; animation: form-open .24s var(--ease); }
@keyframes form-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* The player's own limits (16.11.2026): a head with the pencil and the "i", then a row a limit, its label over what is
   used of it and any change waiting for it. The betting limits and the loss limits stand side by side where there is
   room (the betting limits first, down the first column), then the maximum bet. */
.limits { display: grid; gap: 10px; padding: 0 0 12px; }
.limits-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.limits-title { font-size: calc(15px * var(--type)); font-weight: 600; }
.limits .acct-tip { margin: 0; }
.limit-rows { display: grid; gap: 12px 16px; }
.limit-row { display: grid; align-content: start; gap: 2px; min-width: 0; }
.limit-row dt { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.limit-row dd { font-size: calc(15px * var(--type)); overflow-wrap: anywhere; }
.limit-row .limit-wait { font-size: calc(13px * var(--type)); color: var(--muted); }
@media (min-width: 480px) {
  .limit-rows.is-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
}
.field-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-trio > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field-trio .field-error { margin-top: 0; }
@media (max-width: 479px) { .field-trio { grid-template-columns: 1fr; } }
.acct-prompt { padding: 10px 12px; border-radius: var(--radius-inner); background: var(--surface-2); font-size: calc(15px * var(--type)); font-weight: 600; }
.acct-ready { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-inner); background: var(--surface-2); font-size: calc(15px * var(--type)); }
.acct-help { display: grid; gap: 6px; padding: 4px 0 8px; font-size: calc(14px * var(--type)); color: var(--muted); }
.acct-help a, .acct-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.acct-select { flex: 1; }
.acct-sub { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--muted); }
/* The setup key in fours (js/views/account/mfa.js): a line breaks only between fours, the lines balanced, and one tap
   selects the whole key. */
.secret { padding: 12px 14px; border-radius: var(--radius-inner); background: var(--surface-2); font-family: ui-monospace, Menlo, monospace; font-size: calc(17px * var(--type)); letter-spacing: .06em; text-wrap: balance; overflow-wrap: anywhere; user-select: all; }
.secret span:not(:last-child) { margin-right: .6em; }
/* Two-factor authentication's set-up (18.11.2026, js/views/account/mfa.js): the QR code (js/qr.js), dark modules on
   white in both themes as a phone's camera reads it, its quiet zone inside the drawing; 200px on a computer and smaller
   on a phone, where the link beside the setup key adds it to the app on the phone itself. */
.mfa-qr { padding: 4px 0 12px; }
.qr { display: block; width: 200px; height: 200px; border-radius: var(--radius-inner); shape-rendering: crispEdges; }
.qr-ground { fill: var(--qr-ground); }
.qr-ink { fill: var(--qr-ink); }
@media (max-width: 479px) { .qr { width: 160px; height: 160px; } }
.msg-number { font-weight: 700; color: var(--text); }
.msg-check { margin-top: 2px; }
/* Racing colours: the player's jersey in the head, then the picker. Five patterns drawn in the player's own colours,
   the part the colours change, and racing's 18 colours. The choice wears the gold ring of what is yours; the focus
   ring stands apart from it. */
.acct-silks { display: grid; place-items: center; flex: none; width: 56px; height: 56px; }
.acct-silks .silks { width: 56px; height: 56px; }
.silks-words { padding-bottom: 6px; font-size: calc(15px * var(--type)); font-weight: 500; overflow-wrap: anywhere; }
.silks-patterns, .silks-swatches { min-width: 0; margin: 0; padding: 0; border: 0; }
.silks-patterns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px 0 12px; }
.silks-pick { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.silks-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.silks-tile { display: grid; place-items: center; width: min(52px, 100%); aspect-ratio: 1; border-radius: 14px; transition: box-shadow .2s var(--ease); }
.silks-tile .silks { width: min(44px, 100%); height: auto; aspect-ratio: 1; }
.silks-name { font-size: calc(12px * var(--type)); font-weight: 500; color: var(--muted); }
@media (hover: hover) { .silks-pick:hover .silks-tile, .silks-pick:hover .silks-chip { background: var(--surface-2); } }
.silks-pick input:checked + .silks-tile { box-shadow: inset 0 0 0 2px var(--switch-on); }
.silks-pick input:checked ~ .silks-name { color: var(--text); font-weight: 600; }
.silks-pick input:focus-visible + .silks-tile, .silks-pick input:focus-visible + .silks-chip { outline: 2px solid var(--text); outline-offset: 2px; }
.silks-parts { justify-self: start; margin-bottom: 8px; }
.silks-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding-bottom: 8px; }
.silks-swatch { min-height: 44px; place-content: center; }
.silks-chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: box-shadow .2s var(--ease); }
.silks-dot { display: block; width: 30px; height: 30px; }
.silks-pick input:checked + .silks-chip { box-shadow: inset 0 0 0 2px var(--switch-on); }
@media (min-width: 480px) { .silks-swatches { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 359px) { .silks-patterns { gap: 2px; } .silks-name { font-size: calc(11px * var(--type)); letter-spacing: -0.02em; } }
@media (min-width: 1024px) {
  .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .account-name { font-size: calc(40px * var(--type)); }
}
/* Invite friends (18.11.2026, js/views/account/invite.js): the player's link with its share button, then the reward,
   the two caps (each with a bar of how much of it is used, a pill on the one reached) and the friends who joined, as
   figures side by side where there is room; the rules a link away. Ink only: the reward is no money returned. */
/* min-width 0: the panel's body is a grid, and the link's unbroken text would otherwise widen it past a phone. */
.invite-link { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; }
.invite-url { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius-inner); background: var(--surface-2); font-size: calc(14px * var(--type)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }
.invite-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 8px 0 4px; }
.invite-figures > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.invite-figures dt { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.invite-figures dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: calc(15px * var(--type)); font-variant-numeric: tabular-nums; }
.invite-meter { display: block; flex-basis: 100%; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.invite-meter i { display: block; height: 100%; border-radius: inherit; background: var(--text); opacity: .75; transform-origin: 0 50%; transform: scaleX(var(--share, 0)); }
.invite-foot { padding: 0 0 4px; font-size: calc(14px * var(--type)); }
.invite-foot a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 560px) { .invite-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Your record (account/record.js): best calls as a short list, the figures as Invite friends' are, last week in a card
   of its own. Ink only: nothing in the win or loss colours. */
.record-calls-row { align-items: start; }
.record-calls { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.record-calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.record-call-name { font-weight: 600; color: var(--text); }
.record-call-line { grid-column: 1; font-size: calc(13px * var(--type)); color: var(--muted); }
.record-call-price { grid-row: 1; grid-column: 2; font-variant-numeric: tabular-nums; color: var(--text); }
.record-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 8px 0 4px; }
.record-figures > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.record-figures dt { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.record-figures dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.record-week { margin: 12px 0 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.record-week-title { margin: 0 0 4px; font-size: calc(15px * var(--type)); font-weight: 600; }
.form-tiles { display: inline-flex; gap: 3px; }
