/* Travix account on the lobby: header chip, sign-in panels, the character strip on the server
   cards, the account page and the "entering the world" overlay (_acc/ui.php, account.js).
   Sits on the white glass panel of seasons.css and reuses its buttons. */

/* ---------- Header ---------- */
.acc-chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 240px;
  padding: 4px 14px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(8, 12, 20, .55);
  color: var(--text); font-size: 13px; font-weight: 600;
  transition: border-color .25s, background-color .25s;
}
.acc-chip:hover, .acc-chip:focus-visible { border-color: var(--gold); background: rgba(8, 12, 20, .75); }
.acc-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chip-i {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--on-gold);
  background: linear-gradient(180deg, #f8de9c 0%, #e2b65a 55%, #c48f35 100%);
}
html.stage-open[data-stage-view="account"] .acc-chip { border-color: var(--gold); }
.acc-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Sign in is a gold button: open, it keeps its colours and gets a ring. */
html.stage-open[data-stage-view="signin"] .acc-signin, html.stage-open[data-stage-view="signup"] .acc-signin { box-shadow: 0 0 0 2px rgba(8, 12, 20, .6), 0 0 0 4px rgba(246, 218, 150, .75); }

/* ---------- Sign-in panels ---------- */
.acc-col { max-width: 440px; margin: 0 auto; padding-top: 4px; }
.acc-col .view-title { margin-right: 0; }
.acc-center { text-align: center; }
.acc-form { display: grid; gap: 14px; }
.acc-form[hidden] { display: none; }
.acc-field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .92); }
.acc-lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.acc-lbl-row a, .acc-foot a, .acc-check a, .acc-link { color: #ffe8b0; font-weight: 700; text-decoration: none; }
.acc-lbl-row a:hover, .acc-foot a:hover, .acc-check a:hover, .acc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.acc-lbl-row a { font-size: 12.5px; font-weight: 600; }
.acc-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .34); background: rgba(6, 10, 18, .5);
  color: #fff; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0;
  outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
  /* The ring around the field (gold when focused, red when refused) is --ring, so a field the browser filled
     keeps its dark fill under it. color-scheme: the browser's own colours for the field are dark ones too. */
  --ring: 0 0 0 0 transparent; box-shadow: var(--ring); color-scheme: dark;
}
.acc-input::placeholder { color: rgba(255, 255, 255, .45); }
.acc-input::selection { background: rgba(246, 218, 150, .55); color: #1d1404; }
.acc-input:focus { border-color: var(--gold); --ring: 0 0 0 3px rgba(226, 182, 90, .25); background: rgba(6, 10, 18, .62); }
.is-bad .acc-input, .acc-input.is-bad { border-color: #ff8f95; --ring: 0 0 0 3px rgba(224, 86, 94, .25); }
/* The browser's saved e-mail and password: Chrome paints the field light blue (Safari yellow) and nothing
   can change that colour, so a dark inner shadow covers it, in every state (hover, focus, refused, the
   password shown), with the white text and no animation that would let the light colour flash through. */
.acc-input:-webkit-autofill, .acc-input:-webkit-autofill:hover, .acc-input:-webkit-autofill:focus, .acc-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important; caret-color: #fff;
  box-shadow: 0 0 0 1000px #1c2230 inset, var(--ring) !important;
  transition: border-color .2s, background-color 600000s 0s, color 600000s 0s;
}
/* Edge's own eye in password fields: the form has its own. */
.acc-input::-ms-reveal, .acc-input::-ms-clear { display: none; }
.acc-pw { position: relative; display: block; }
.acc-pw .acc-input { padding-right: 48px; }
.acc-eye {
  position: absolute; top: 50%; right: 6px; width: 38px; height: 38px; margin-top: -19px;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer;
}
.acc-eye svg { width: 20px; height: 20px; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.8; }
.acc-eye:hover svg, .acc-eye:focus-visible svg { stroke: #fff; }
/* The robot check's box (a fixed-size frame) in the middle of the form. */
.acc-form .h-captcha, .acc-form .g-recaptcha { display: flex; justify-content: center; }
.acc-eye.is-on svg { stroke: var(--gold-hi); }
.acc-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.acc-strength i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); transition: background-color .25s; }
.acc-strength[data-s="1"] i:nth-child(-n+1) { background: #e0565e; }
.acc-strength[data-s="2"] i:nth-child(-n+2) { background: #e2b65a; }
.acc-strength[data-s="3"] i:nth-child(-n+3) { background: #b9d45a; }
.acc-strength[data-s="4"] i { background: var(--green); }
.acc-check { position: relative; display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .9); cursor: pointer; }
.acc-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.acc-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(6, 10, 18, .5); position: relative; }
.acc-check input:checked + .acc-box { border-color: var(--gold); background: linear-gradient(180deg, #f8de9c, #e2b65a); }
.acc-check input:checked + .acc-box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--on-gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.acc-check input:focus-visible + .acc-box { box-shadow: 0 0 0 3px rgba(226, 182, 90, .35); }
.acc-check.is-bad .acc-box { border-color: #ff8f95; }
.acc-msg { margin: -4px 0 0; min-height: 0; font-size: 13.5px; font-weight: 600; color: #ffb3b7; }
.acc-msg:empty { display: none; }
.acc-msg.is-ok { color: #c8f08a; }
.acc-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
/* Busy: the button keeps its gold and shows a turning ring before its label (account.js busy()). */
.acc-form.is-busy .btn-gold, .acc-form.is-busy .btn-gold[disabled], .btn-gold.is-busy, .btn-gold.is-busy[disabled] { opacity: 1; cursor: progress; }
.acc-form.is-busy .btn-gold::before, .btn-gold.is-busy::before {
  content: ''; flex: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(29, 20, 4, .28); border-top-color: #1d1404;
  animation: acc-spin .75s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acc-form.is-busy .btn-gold::before, .btn-gold.is-busy::before { animation-duration: 2s; } }
.acc-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .25); }
.acc-google {
  width: 100%; gap: 12px; color: #fff; background: #131314; border-color: #8e918f;
  font-family: var(--font-body); font-size: 14.5px; letter-spacing: 0; text-transform: none; font-weight: 600;
}
.acc-google svg { width: 18px; height: 18px; }
.acc-google[disabled] { opacity: .75; }
.acc-foot { margin: 18px 0 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .85); }
.acc-link { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; }
.acc-info { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.acc-info b { color: #ffe8b0; }
.acc-target { margin: -12px 0 18px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(226, 182, 90, .55); background: rgba(48, 34, 8, .45); font-size: 13.5px; color: #ffe8b0; }
.acc-seal { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; border: 1px solid rgba(226, 182, 90, .6); background: rgba(48, 34, 8, .45); }
.acc-seal svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linejoin: round; }
.acc-code { display: flex; justify-content: center; gap: 7px; width: 100%; min-width: 0; margin: 6px 0 4px; }
.acc-digit {
  /* The boxes share the row (8 digits since 2026-11-14): never wider than 52px, narrower where the panel is. */
  flex: 1 1 0; min-width: 0; max-width: 52px; padding: 0; height: 62px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .38); background: rgba(6, 10, 18, .55);
  color: #fff; font-family: var(--font-display); font-size: 26px; font-weight: 700; outline: none;
}
.acc-digit:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 182, 90, .25); }
.acc-code.is-bad .acc-digit { border-color: #ff8f95; }
.acc-input-code { font-family: var(--font-display); font-size: 22px; letter-spacing: .4em; text-align: center; }

/* ---------- Server cards: the account strip ---------- */
.acc-strip {
  display: grid; gap: 10px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(226, 182, 90, .5);
  background: linear-gradient(180deg, rgba(48, 34, 8, .5), rgba(20, 14, 4, .42));
}
.acc-who { display: flex; align-items: center; gap: 12px; }
.acc-who-t { display: grid; min-width: 0; flex: 1; }
.acc-who-t b { font-family: var(--font-display); font-size: 17px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffe8b0; }
.acc-meta { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.acc-av {
  flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  border: 2px solid rgba(226, 182, 90, .85); background: #1a1408; box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.acc-av.is-faded { filter: grayscale(.7) brightness(.8); border-color: rgba(255, 255, 255, .35); }
.acc-av-new { display: grid; place-items: center; font-size: 24px; font-weight: 300; color: #ffe8b0; border-style: dashed; background: rgba(0, 0, 0, .25); }
/* The plus: drawn, so it sits in the very middle (a font's "+" sits low and a little to one side). */
.acc-av-new svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.acc-av-sm { width: 30px; height: 30px; border-width: 1.5px; }
.acc-av-xs { width: 22px; height: 22px; border-width: 1px; vertical-align: -6px; box-shadow: none; }
.acc-inc {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #ffd2d4; border: 1px solid rgba(224, 86, 94, .65); background: rgba(80, 14, 18, .7);
}
.acc-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.acc-hint b { color: #fff; }
.acc-bad { color: #ffb3b7; }
.acc-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 9px; border: 1px dashed rgba(255, 255, 255, .28); font-size: 13px; color: rgba(255, 255, 255, .8); }
.acc-line b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.acc-sits { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.acc-sit { display: flex; align-items: center; gap: 9px; min-height: 36px; font-size: 13.5px; }
.acc-sit b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.acc-sit .acc-meta { font-size: 12px; }
.acc-sit-btn {
  flex: none; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(226, 182, 90, .7); background: rgba(8, 12, 20, .5); color: var(--gold-hi);
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
.acc-sit-btn:hover:not([disabled]) { border-color: var(--gold); background: rgba(8, 12, 20, .75); }
.acc-sit-btn[disabled] { opacity: .45; cursor: not-allowed; }
.acc-friend { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); }
.srv-actions .btn:only-child { flex: 1; }

/* ---------- Account page ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.acc-card { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 12, 22, .34); }
.acc-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; color: #ffe8b0; letter-spacing: .04em; }
.acc-p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.acc-small { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.acc-friends { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.acc-friends li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 14px; }
.acc-friends li b { flex: 1; }
.acc-friends small { color: rgba(255, 255, 255, .6); }
.acc-friends .acc-none { color: rgba(255, 255, 255, .65); font-style: italic; }
.acc-inline { grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.acc-inline .acc-input { height: 40px; font-size: 14px; }
.acc-inline .acc-msg { grid-column: 1 / -1; margin: 0; }
.acc-mycode { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(226, 182, 90, .6); font-size: 13px; color: rgba(255, 255, 255, .8); }
.acc-mycode b { flex: 1; font-family: var(--font-display); font-size: 17px; letter-spacing: .12em; color: var(--gold-hi); }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acc-table th { padding: 0 6px 8px; text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #ffe8b0; }
.acc-table td { padding: 7px 6px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); white-space: nowrap; }
.acc-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Entering a world ---------- */
.acc-handoff {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(5, 8, 14, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.acc-handoff[hidden] { display: none; }
.acc-handoff.is-on { opacity: 1; }
.acc-handoff-box { display: grid; justify-items: center; gap: 18px; padding: 30px 40px; border-radius: 18px; border: 1px solid rgba(226, 182, 90, .5); background: rgba(12, 16, 28, .9); box-shadow: var(--shadow-lg); }
.acc-handoff-box p { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; color: var(--gold-hi); text-align: center; }
.acc-spin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(226, 182, 90, .25); border-top-color: var(--gold); animation: acc-spin .9s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .acc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  /* Sign in (icon) + Terms + Legal + Discord on a 320-390px phone. */
  /* seasons.css hides the gold header buttons on phones; Sign in is the only way in now (round icon). */
  .top-end .btn-gold.acc-signin { display: inline-flex; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .top-end .acc-signin span { display: none; }
  .top-end .acc-signin svg { width: 18px; height: 18px; }
  .acc-chip { padding: 3px; }
  .acc-chip-t { display: none; }
  .acc-digit { max-width: 44px; height: 50px; font-size: 20px; border-radius: 10px; }
  .acc-code { gap: 5px; }
  .acc-handoff-box { margin: 0 16px; padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-spin { animation-duration: 3s; }
}

/* Account page: the 2 sitter slots. */
.acc-slots li { min-height: 44px; }
.acc-slot {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #ffe8b0;
  border: 1px solid rgba(226, 182, 90, .6); background: rgba(48, 34, 8, .45);
}
.acc-slots .acc-none { font-style: normal; font-size: 13px; }
.acc-h4 { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffe8b0; }

/* ---------- Profile (owner 2026-11-13): characters, gold, codes, sitters with what they may do ---------- */
.acc-coin {   /* the game's gold as vectors (img/gold.svg, from the worlds' 12 px img/a/gold.gif): sharp at any size */
  display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px;
  background: url("../img/gold.svg") center / 100% 100% no-repeat;
}
.acc-chip:has(.acc-chip-gold) { max-width: 360px; }
.acc-chip-gold {
  display: inline-flex; align-items: center; margin-left: 2px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: #ffe8b0; background: rgba(226, 182, 90, .16); border: 1px solid rgba(226, 182, 90, .45);
  font-variant-numeric: tabular-nums;
}
.acc-prof-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acc-prof-i { width: 54px; height: 54px; font-size: 24px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.acc-prof-t { min-width: 0; }
.acc-prof-t .view-title { margin-bottom: 4px; }
.acc-prof-t .view-sub { margin: 0; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.acc-stat {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 12, 22, .34);
}
.acc-stat b { display: flex; align-items: center; font-family: var(--font-display); font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.acc-stat span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.acc-stat .acc-coin { width: 24px; height: 24px; margin-right: 8px; vertical-align: -3px; }
.acc-stat.is-gold { border-color: rgba(226, 182, 90, .6); background: linear-gradient(180deg, rgba(48, 34, 8, .55), rgba(20, 14, 4, .45)); cursor: pointer; transition: border-color .2s; }
.acc-stat.is-gold:hover { border-color: var(--gold); }
.acc-stat.is-gold b { color: var(--gold-hi); }
.acc-wide { margin-bottom: 16px; }
.acc-chars, .acc-worlds { display: grid; gap: 8px; }
.acc-charrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(226, 182, 90, .45);
  background: linear-gradient(180deg, rgba(48, 34, 8, .45), rgba(20, 14, 4, .35));
}
.acc-charrow-t { display: grid; min-width: 0; }
.acc-charrow-t b { font-family: var(--font-display); font-size: 17px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-wthumb {
  position: relative; display: block; width: 72px; height: 48px; border-radius: 9px; background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.acc-wthumb .acc-av { position: absolute; right: -8px; bottom: -8px; }
.acc-wthumb.is-small { width: 54px; height: 36px; }
.acc-nums { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 16px; margin: 0; }
.acc-nums div { display: grid; gap: 2px; text-align: right; }
.acc-nums dt { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.acc-nums dd { display: flex; align-items: center; justify-content: flex-end; margin: 0; font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-charrow-go { display: flex; align-items: center; gap: 8px; }
.acc-worldrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .26); background: rgba(0, 0, 0, .16);
}
.acc-worldrow b { font-size: 15px; font-family: var(--font-display); }
.acc-h3-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.acc-total { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--gold-hi); letter-spacing: 0; }
.acc-table-wrap { overflow-x: auto; }
.acc-codes code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; letter-spacing: .04em; color: #fff; }
.acc-codes td.acc-gold { font-weight: 800; color: var(--gold-hi); }
.acc-small-btn { margin-left: 6px; font-size: 12px; }
.acc-code-sub { display: none; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.acc-slots li.has-sitter { flex-direction: column; align-items: stretch; gap: 8px; }
.acc-slot-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-slot-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-perms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 40px; }
.acc-perm { position: relative; cursor: pointer; }
.acc-perm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-perm span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .18);
  transition: background-color .15s, border-color .15s, color .15s;
}
.acc-perm span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.acc-perm input:checked + span { color: #1d1404; border-color: var(--gold); background: linear-gradient(180deg, #f8de9c, #e2b65a); }
.acc-perm input:checked + span::before { background: #1d1404; border-color: #1d1404; }
.acc-perm input:focus-visible + span { box-shadow: 0 0 0 3px rgba(226, 182, 90, .35); }
.acc-perm-msg { font-size: 12px; font-weight: 700; color: #c8f08a; opacity: 0; transition: opacity .3s; }
.acc-perm-msg.is-on { opacity: 1; }
.acc-mycode { margin-top: 0; }
.acc-mycode b { font-size: 19px; }
@media (max-width: 960px) {
  .acc-charrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .acc-nums { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .acc-nums div { text-align: left; }
  .acc-nums dd { justify-content: flex-start; }
}
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .acc-chip-gold { display: none; }
  .acc-stats { gap: 8px; }
  .acc-stat { padding: 10px 10px; }
  .acc-stat b { font-size: 18px; }
  .acc-stat .acc-coin { width: 18px; height: 18px; margin-right: 5px; vertical-align: -2px; }   /* 3x on 2x screens */
  .acc-stat span { font-size: 9.5px; letter-spacing: .08em; }
  .acc-charrow { gap: 10px 12px; }
  .acc-wthumb { width: 56px; height: 40px; }
  .acc-wthumb.is-small { width: 44px; height: 30px; }
  .acc-charrow-go .btn { padding-left: 12px; padding-right: 12px; }
  .acc-worldrow { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
  .acc-worldrow > .btn { grid-column: 1 / -1; width: 100%; }
  /* Gold codes: where and until when under the code, no sideways scrolling. */
  .acc-codes th:nth-child(n+3), .acc-codes td:nth-child(n+3) { display: none; }
  .acc-codes .acc-code-sub { display: block; }
  .acc-codes td { white-space: normal; vertical-align: top; }
  .acc-codes code { font-size: 12px; letter-spacing: 0; }
  .acc-nums { gap: 4px 8px; }
  .acc-nums dt { font-size: 9px; letter-spacing: .03em; }
  .acc-nums dd { font-size: 14px; }
  .acc-perms { padding-left: 0; }
  .acc-prof-i { width: 44px; height: 44px; font-size: 19px; }
}

/* A world's Login sent a signed-in player to the server list: that world's card glows for a moment. */
.srv-card.acc-from { box-shadow: 0 0 0 2px #e2b65a, 0 0 26px rgba(226, 182, 90, .45); transition: box-shadow .6s ease; }

/* The staff account's profile (owner 2026-11-13): Sentinel and the Natars on every world. */
.acc-staff-go { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-staff-i { width: 44px; height: 44px; flex: none; font-size: 20px; }
.srv-actions.acc-staff-acts { flex-wrap: wrap; }

/* ---------- Profile: Sign out at the top, tabs (owner 2026-11-13) ---------- */
.acc-prof-out { margin-left: auto; margin-right: 52px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.acc-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-out-all { font-size: 12px; }
.acc-tabs {
  display: flex; gap: 6px; margin: 0 0 16px; padding: 5px; overflow-x: auto; scrollbar-width: none;
  border-radius: 13px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 12, 22, .4);
}
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px;
  border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, .82); cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.acc-tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.acc-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.acc-tab[aria-selected="true"] { color: var(--on-gold); background: linear-gradient(180deg, #f8de9c 0%, #e2b65a 55%, #c48f35 100%); box-shadow: 0 6px 18px rgba(226, 182, 90, .25); }
.acc-tab-n { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; letter-spacing: 0; }
.acc-tab[aria-selected="true"] .acc-tab-n { background: rgba(29, 20, 4, .16); }
.acc-pane[hidden] { display: none; }
.acc-pwbox { max-width: 560px; }
.acc-pwbox .acc-form { margin-top: 14px; }
.acc-pwbox .acc-msg:empty { display: none; }
.acc-pwbox > .acc-msg { margin-top: 12px; }

/* "Signed in here" on a world (card and profile): the world's session, with Log out. */
.acc-live {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; width: fit-content; max-width: 100%;
  align-self: flex-start; justify-self: start; margin-top: 6px; padding: 2px 9px;
  border-radius: 999px; border: 1px solid rgba(126, 224, 143, .38); background: rgba(40, 90, 50, .3);
  font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .9);
}
.acc-live b { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; }
.acc-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #7ee08f; box-shadow: 0 0 0 3px rgba(126, 224, 143, .22); }
.acc-live-out { font-size: 12px; }
/* The staff card's Sentinel, Natars and Info in one row (one row less on the server list). */
.srv-actions.acc-staff-acts, .srv-actions.acc-plain-acts { flex-wrap: nowrap; }
.srv-actions.acc-staff-acts .btn, .srv-actions.acc-plain-acts .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
@media (max-width: 420px) { .srv-actions.acc-staff-acts, .srv-actions.acc-plain-acts { flex-wrap: wrap; } }
.acc-live.is-out { border-color: rgba(255, 255, 255, .2); background: rgba(8, 12, 22, .3); color: rgba(255, 255, 255, .72); }

@media (max-width: 640px) {
  .acc-prof-head { flex-wrap: wrap; }
  .acc-prof-out { margin-left: 0; margin-right: 0; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .acc-tab { padding: 9px 12px; font-size: 12px; }
}
/* Phones: all four tabs in sight (two rows) rather than one row that scrolls. */
@media (max-width: 520px) {
  .acc-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
}
