/* 4ALL account pages of the API (ACC1, docs\acc1.md): "My characters", the public character, security and the
   e-mail link pages. Only the tokens and colours of WEB2's site.css (glass panels, Marcellus / Raleway, its gold, its
   kingdom colours) and the item colours of the game's tooltip; a preview until the user approves the look. */

.acc-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 16px; color: var(--text-2); }
.acc-bar p { margin: 0; }
/* 4ALL GAMEPC1 round 2 (decision 519): the account's avatar before "Nickname", round as the forum's (forum.css .fr-av-sm) */
.acc-bar-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-bar-avlink { display: block; flex: none; border-radius: 50%; }
.acc-bar-av { display: block; width: 32px; height: 32px; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--topbar-bg); object-fit: cover; }
.acc-bar-avlink:hover .acc-bar-av, .acc-bar-avlink:focus-visible .acc-bar-av { border-color: var(--gold-lo); }
.has-tip { position: relative; }

/* ---------------------------------------------------------------- character picker */
.char-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.char-tab {
  appearance: none; display: grid; gap: 3px; min-width: 190px; padding: 10px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass); color: var(--text); font: inherit;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.char-tab:hover { border-color: var(--gold-lo); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.char-tab[aria-selected="true"] { border-color: var(--gold-lo); background: linear-gradient(var(--gold-soft), rgb(var(--gold-rgb) / .03)), var(--glass-2); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .15), 0 0 22px rgb(var(--gold-rgb) / .08); }
.char-tab-name { font: 400 1.15rem/1.2 var(--display); letter-spacing: .02em; color: var(--gold); }
.char-tab[aria-selected="true"] .char-tab-name { color: var(--gold-hi); }
.char-tab-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--text-2); }
.char-tab .badge { justify-self: start; margin-top: 2px; }

/* ---------------------------------------------------------------- layout */
.chars-stack { display: grid; gap: clamp(14px, 2vw, 22px); }
.chars-main { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .chars-main { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.acc-tabs { margin-bottom: 14px; }
.acc-tabs .tab { cursor: pointer; }
.side-body > :first-child { margin-top: 0; }

/* the shape of the page while it loads (grey blocks with a slow shine; none with reduced motion, site.css) */
.acc-loading { margin: 0 0 12px; }
.acc-skeleton { display: grid; gap: clamp(14px, 2vw, 22px); }
.sk-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.sk-block, .inv-skeleton .inv-cell { position: relative; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius); }
/* the blocks are empty panels of the site (its glass), the cells empty cells of a bag */
.sk-block { background: var(--glass-2); box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(8px)) { .sk-block { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); } }
.inv-skeleton .inv-cell { border-color: rgb(var(--gold-rgb) / .1); background: rgba(0, 0, 0, .4); }
.sk-block::after, .inv-skeleton .inv-cell::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / .08), transparent); animation: acc-shine 1.6s ease-in-out infinite;
}
@keyframes acc-shine { to { transform: translateX(100%); } }
.sk-tab { width: 190px; height: 64px; border-radius: var(--radius-lg); }
.sk-panel { min-height: 320px; border-radius: var(--radius-lg); }
.sk-big { min-height: 560px; }
.inv-skeleton { margin-top: 10px; }

/* ---------------------------------------------------------------- equipment window */
.eq-title { margin-bottom: 16px; }
.eq-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.eq-col { display: grid; gap: 8px; }
.eq-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* small headings like WEB2's section titles: capitals and a gold line that fades */
.eq-sub { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font: 400 .82rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lo); }
.eq-sub::after { content: ""; flex: 1; min-width: 16px; height: 1px; background: linear-gradient(90deg, rgb(var(--gold-rgb) / .28), rgb(var(--gold-rgb) / 0)); }
.eq-hint { margin: 16px 0 0; }

.eq-cell { display: flex; flex-direction: column; align-items: center; width: 72px; }
.eq-label { margin-top: 4px; max-width: 72px; font-size: .68rem; line-height: 1.2; text-align: center; color: var(--muted); }
.eq-slot, .inv-cell {
  --glow: rgb(var(--gold-rgb) / .35);
  appearance: none; position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; cursor: default;
  border: 1px solid rgb(var(--gold-rgb) / .2); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .04), transparent 70%), rgba(0, 0, 0, .45);
  color: rgb(var(--gold-rgb) / .28); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.eq-slot.has-item, .inv-cell.has-item { cursor: pointer; color: var(--gold); border-color: var(--gold-lo); background: radial-gradient(circle at 50% 35%, var(--gold-soft), transparent 70%), rgba(0, 0, 0, .45); }
/* the colour of the item's quality: the title colour of the game's tooltip (magic, rare, the grades) */
.eq-slot.has-q, .inv-cell.has-q { --glow: var(--q); border-color: var(--q); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 14px -4px var(--q); }
.eq-slot.has-item:hover, .eq-slot.has-item:focus-visible, .inv-cell.has-item:hover, .inv-cell.has-item:focus-visible {
  border-color: var(--gold-hi); transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 8px 16px rgba(0, 0, 0, .5), 0 0 16px -2px var(--glow);
}
.eq-slot.has-q:hover, .eq-slot.has-q:focus-visible, .inv-cell.has-q:hover, .inv-cell.has-q:focus-visible { border-color: var(--q); }
.eq-glyph { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eq-plus { position: absolute; right: 3px; bottom: 1px; font: 700 .72rem/1 var(--sans); color: var(--gold-hi); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.eq-slot.is-timed::after, .inv-cell.is-timed::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--info); }

/* the middle: the look on a lit stage, or the initial in a medallion */
.eq-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; align-self: stretch; }
.eq-portrait {
  --k: 236, 209, 154;   /* the kingdom's colour of site.css (.kingdom-N) as r, g, b; gold when there is none */
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 220px; padding: 16px; overflow: hidden; text-align: center;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 46% at 50% 34%, rgb(var(--gold-rgb) / .09), transparent 70%),
    radial-gradient(ellipse 90% 34% at 50% 100%, rgba(var(--k), .09), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .46));
  box-shadow: inset 0 1px 0 rgba(var(--k), .5), inset 0 0 70px rgba(0, 0, 0, .45);
}
.kingdom-ring-0 { --k: 224, 122, 98; }   /* KFLAG1: Valorian red */
.kingdom-ring-1 { --k: 111, 166, 224; }   /* Derion blue */
.kingdom-ring-2 { --k: 185, 194, 122; }
.eq-initial {
  flex: none; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%;
  font: 400 3.6rem/1 var(--display); color: var(--gold); border: 1px solid var(--gold-lo);
  background: radial-gradient(circle at 35% 30%, rgb(var(--gold-rgb) / .22), rgba(0, 0, 0, .25));
  box-shadow: 0 0 0 6px rgb(var(--gold-rgb) / .04), 0 0 30px rgba(var(--k, 236, 209, 154), .16);
}
.eq-nolook .eq-initial { margin-bottom: 10px; }
.eq-portrait-name { font: 400 1.35rem/1.2 var(--display); letter-spacing: .04em; color: var(--gold-hi); overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.eq-portrait-sub { font-size: .9rem; color: var(--text-2); }
.eq-weapons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* the look the API draws (300 x 420, transparent, the feet at the bottom edge) */
.eq-look { justify-content: flex-start; padding: 18px 12px 14px; }
.eq-stage {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 420; margin-bottom: 18px; border-radius: var(--radius);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.eq-stage.is-dragging { cursor: grabbing; }
.eq-stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* the light from above, behind the character */
.eq-stage::before {
  content: ""; position: absolute; inset: -4% -14% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 44% 54% at 50% 40%, rgb(var(--gold-rgb) / .15), rgb(var(--gold-rgb) / .04) 58%, transparent 76%);
}
/* the pedestal under the feet, lit in the kingdom's colour */
.eq-stage::after {
  content: ""; position: absolute; left: 13%; right: 13%; bottom: -4.5%; height: 10%; z-index: 0; pointer-events: none; border-radius: 50%;
  border: 1px solid rgb(var(--gold-rgb) / .24);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .72), rgba(0, 0, 0, .38) 46%, rgba(var(--k), .2) 78%, rgba(var(--k), .07));
  box-shadow: 0 0 28px rgba(var(--k), .22), inset 0 -2px 8px rgb(var(--gold-rgb) / .12);
}
.eq-look-img, .eq-look-view { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.eq-look-img { display: block; max-width: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); -webkit-user-drag: none; pointer-events: none; }
.eq-look-view { overflow: hidden; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); pointer-events: none; }
.eq-look-sheet { position: absolute; top: 0; left: 0; display: block; max-width: none; height: auto; -webkit-user-drag: none; }
.eq-look-img[hidden], .eq-look-view[hidden] { display: none; }
.eq-look-wait { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.eq-look-wait[hidden] { display: none; }
.eq-look-wait .eq-initial { animation: eq-breathe 1.8s ease-in-out infinite; }
@keyframes eq-breathe {
  0%, 100% { box-shadow: 0 0 0 6px rgb(var(--gold-rgb) / .04), 0 0 18px rgba(var(--k), .12); }
  50% { box-shadow: 0 0 0 11px rgb(var(--gold-rgb) / .07), 0 0 44px rgba(var(--k), .32); }
}
/* the turn controls: arrows on both sides of Front / Back (site.css .segmented) */
.eq-look-turn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.eq-look-turn[hidden], .eq-look-hint[hidden] { display: none; }
.eq-look-turn .segmented button { padding: 6px 14px; min-height: 34px; font-size: .74rem; }
.eq-turn-btn {
  appearance: none; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border: 1px solid var(--gold-line); border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--gold);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.eq-turn-btn:hover { border-color: var(--gold-lo); background-color: var(--gold-soft); color: var(--gold-hi); }
.eq-turn-btn:active { transform: scale(.94); }
.eq-turn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eq-look-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: .78rem; }
.eq-hint-ico { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--gold-lo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* tooltip: beside the slot on wide screens, under the grid on phones */
.eq-tip {
  position: absolute; z-index: 5; width: 290px; padding: 12px 14px; pointer-events: none;
  border: 1px solid var(--gold-lo); border-radius: var(--radius); background: var(--glass-2); box-shadow: var(--shadow); font-size: .875rem;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.eq-tip p { margin: 2px 0; }
.tip-name { font-weight: 700; color: var(--gold-hi); }
.tip-meta { font-size: .8rem; color: var(--muted); }
.tip-lines { margin: 8px 0 6px; padding: 8px 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.eq-tip .tip-line { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--text-2); }
.eq-tip .tip-gap { height: 6px; margin: 0; }
.tip-opts { list-style: none; margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.tip-opts li { display: flex; justify-content: space-between; gap: 12px; color: var(--info); }
.tip-opts li + li { margin-top: 2px; }
.tip-val { color: var(--text); font-variant-numeric: tabular-nums; }
.tip-time { font-size: .8rem; color: var(--muted); }
.tip-time.is-timed { color: var(--warn); }
@media (max-width: 719px) {
  .eq-tip { position: static; width: auto; margin-top: 14px; }
  /* phones: the characters in one row that scrolls sideways */
  .char-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .char-tab { flex: 0 0 auto; min-width: 160px; scroll-snap-align: start; }
}
/* phones: the look on top at its full size, the slots in rows of six under it */
@media (max-width: 560px) {
  .eq-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 4px; }
  .eq-figure { grid-column: 1 / -1; order: -1; }
  .eq-col { display: contents; }
  .eq-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 4px; }
  .eq-cell { width: auto; min-width: 0; }
  .eq-label { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .eq-label { font-size: .62rem; }
  .eq-slot { width: 46px; height: 46px; }
  .eq-glyph { width: 24px; height: 24px; }
  .eq-portrait { min-height: 220px; padding: 12px 10px; }
  .eq-initial { width: 92px; height: 92px; font-size: 3rem; }
  .eq-weapons { gap: 6px; }
  .eq-look-turn { gap: 8px; }
  .eq-look-turn .segmented button { padding: 6px 12px; }
}

/* ---------------------------------------------------------------- item pictures of our client (32 x 32) */
.eq-slot.has-icon, .inv-cell.has-icon { background: radial-gradient(circle at 50% 35%, rgb(var(--gold-rgb) / .08), transparent 70%), rgba(0, 0, 0, .55); }
.eq-icon { width: 40px; height: 40px; border-radius: 3px; }
.tip-head { display: flex; align-items: center; gap: 10px; }
.tip-icon { flex: none; width: 32px; height: 32px; border: 1px solid rgb(var(--gold-rgb) / .28); border-radius: 4px; background: rgba(0, 0, 0, .45); }
@media (max-width: 480px) { .eq-icon { width: 34px; height: 34px; } }

/* ---------------------------------------------------------------- bags and warehouse */
.inv-box + .inv-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.inv-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.inv-name { font: 400 1.02rem/1.2 var(--display); color: var(--gold); }
.inv-meta { margin-left: auto; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.inv-box.is-closed .inv-name { color: var(--muted); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 5px; }
.inv-grid .inv-cell { width: 44px; height: 44px; }
.inv-grid .eq-glyph { width: 22px; height: 22px; }
.inv-icon { width: 34px; height: 34px; border-radius: 3px; }
.inv-count { position: absolute; left: 3px; bottom: 1px; font: 700 .68rem/1 var(--sans); color: var(--text); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.inv-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: var(--radius); background: var(--glass-row); transition: background-color .15s ease; }
.inv-list li:hover { background: rgb(var(--gold-rgb) / .06); }
.inv-list .inv-cell { flex: none; width: 44px; height: 44px; }
.inv-list-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.inv-list-count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- stats, ranks, collections */
.st-attrs { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* one column in the side panel, two when the panel is wide (phones in landscape, tablets) */
.st-groups { display: grid; gap: 0 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.st-group { margin-top: 18px; }   /* site.css takes the top margin off a panel's first h3 */
.st-group > .eq-sub { margin-top: 0; }
.st-list { margin: 0; gap: 4px 12px; font-size: .92rem; }
.st-list dd { text-align: right; white-space: nowrap; }
.st-skill { margin: 16px 0 0; color: var(--text-2); }
.st-skill strong { color: var(--gold); }
.st-note { margin: 12px 0 0; }
.rk-view > :first-child, .rk-view > :first-child > .stat-tiles:first-child { margin-top: 0; }

/* battle rank: the rank of the game and, like its rank window, the way to the next one */
.stat-tile .tile-more { font: 400 .8rem/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.rk-next { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .25); }
.rk-next-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: .85rem; color: var(--text-2); }
.rk-next-num { color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.rk-bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .14); }
.rk-bar-fill { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold) 70%, var(--gold-hi)); box-shadow: 0 0 10px rgb(var(--gold-rgb) / .45); }
.rk-next-left { margin: 6px 0 0; }
.rk-top { margin: 10px 0 0; color: var(--gold); }
.rk-first { margin: 8px 0 0; }

/* small tables in WEB2's table.data style; the cells wrap, so they never scroll sideways */
.acc-table { font-size: .88rem; }
table.data.acc-table th, table.data.acc-table td { padding: 9px 12px; white-space: normal; overflow-wrap: anywhere; }
/* 4ALL BAN2: Ban History's Type and Duration keep whole words (only the reason may break anywhere) */
table.data.acc-table td.acc-type, table.data.acc-table td.acc-days { overflow-wrap: normal; }
/* 4ALL GAMEPC1 round 2 (decision 517): Login History's computer and result; the result in the site's ok / warn / bad.
   Whole words (the IP, the time, the result, the headings); only a long computer name may break anywhere. On the phone
   a little less room around the cells, so the four columns fit 390 px */
table.data.acc-logins th, table.data.acc-logins td { overflow-wrap: normal; }
table.data.acc-logins td.acc-pc { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  table.data.acc-logins th, table.data.acc-logins td { padding-left: 6px; padding-right: 6px; }
  table.data.acc-logins thead th { letter-spacing: .04em; }
}
table.data.acc-table td.acc-res.ok { color: var(--ok); }
table.data.acc-table td.acc-res.warn { color: var(--warn); }
table.data.acc-table td.acc-res.bad { color: var(--bad); }
table.data.acc-table td.acc-muted { color: var(--muted); }

/* Hall of Fame: all the columns when the table has the room (container query); with less room the four of the month
   and a row that opens with the rest */
.hof-wrap { container: hof / inline-size; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, .25); }
table.data.hof-table th, table.data.hof-table td { padding: 9px 8px; }
table.data.hof-table thead th { font-size: .68rem; letter-spacing: .08em; line-height: 1.25; vertical-align: bottom; }
table.data.hof-table tbody tr:nth-child(even) { background: none; }
table.data.hof-table tbody:nth-of-type(even) { background: var(--glass-row); }
.hof-table .num { text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.hof-table .hof-month { font-weight: 700; color: var(--text); white-space: nowrap; }
.hof-table .hof-points { color: var(--gold-hi); font-weight: 700; }
.hof-table .m-long, .hof-table .col-x { display: none; }
.hof-medal { width: 24px; height: 24px; font-size: .74rem; }
.hof-toggle {
  appearance: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -3px 6px -3px 0; padding: 0; vertical-align: middle; cursor: pointer;
  border: 1px solid var(--gold-line); border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--gold); transition: border-color .15s ease, color .15s ease;
}
.hof-toggle:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.hof-toggle-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.hof-toggle[aria-expanded="true"] .hof-toggle-ico { transform: rotate(180deg); }
.hof-row.is-open th, .hof-row.is-open td { border-bottom-color: transparent; }
table.data.hof-table .hof-more td { padding: 0 10px 12px 38px; }
.hof-more-list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: .85rem; }
.hof-more-list > div { display: flex; gap: 6px; }
.hof-more-list dt { color: var(--muted); }
.hof-more-list dd { margin: 0; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
@container hof (min-width: 24rem) {
  .hof-table .m-long { display: inline; }
  .hof-table .m-short { display: none; }
}
@container hof (min-width: 36rem) {
  .hof-table .col-x { display: table-cell; }
  .hof-table .hof-toggle, .hof-table tr.hof-more { display: none; }
  .hof-row.is-open th, .hof-row.is-open td { border-bottom-color: rgb(var(--gold-rgb) / .07); }
  table.data.hof-table th, table.data.hof-table td { padding: 10px 12px; }
}
.coll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

/* ---------------------------------------------------------------- details */
.char-details .stat-list dd { margin: 0; overflow-wrap: anywhere; }
.profile-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.profile-box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.05rem; }
.profile-box .check { margin-top: 8px; color: var(--text-2); }
.profile-box .check input:disabled + span { color: var(--muted); }
.pf-hint { margin: 4px 0 0 30px; }
.pf-status { margin: 10px 0 0; color: var(--ok); }
.pf-status:empty { display: none; }
.pf-status.is-error { color: var(--bad); }
.pf-link { margin: 12px 0 0; }
.acc-bar[hidden], .pf-hint[hidden], .pf-link[hidden] { display: none; }
.acc-ban { margin: 0 0 18px; }

/* ---------------------------------------------------------------- security page */
.sec-row { margin-top: clamp(14px, 2vw, 22px); }
.sec-row:first-child { margin-top: 0; }
.sec-facts dd { overflow-wrap: anywhere; }
.sec-warn { color: var(--warn); font-weight: 600; }
.sec-ban { margin: 0 0 clamp(14px, 2vw, 22px); }
.sec-ban .stat-list { margin: 8px 0; }
.sec-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sec-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .25);
}
.sec-item-main { min-width: 0; }
.sec-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-weight: 700; color: var(--text); }
.sec-item-line { margin: 3px 0 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.sec-item .btn { flex: none; }
.sec-empty { margin: 0; padding: 4px 0; color: var(--muted); }
.sec-actions { margin-top: 14px; }
.sec-msg { margin-top: 12px; }
.sec-msg:empty { display: none; }
.sec-events tr.is-warn td { color: var(--warn); }
@media (max-width: 479px) {
  .sec-item { flex-direction: column; align-items: stretch; }
  .sec-item .btn { align-self: flex-start; }
}

/* ---------------------------------------------------------------- e-mail link pages (confirm, new password) */
.mail-link-card { max-width: 38rem; }
.link-title { margin-top: 0; }
.link-text { color: var(--text-2); }
.mail-link-card .notice .btn-row { margin-top: 10px; }

/* ---------------------------------------------------------------- public character page */
.pub-find { display: flex; gap: 10px; max-width: 30rem; margin: 0 0 18px; }
.pub-find input { flex: 1; min-width: 0; }
.pub-main { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .pub-main { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.pub-hero { display: flex; align-items: center; gap: 22px; min-height: 180px; box-shadow: var(--shadow), inset 0 1px 0 rgba(var(--k), .5); }
.pub-hero .eq-portrait-name, .pub-hero .eq-portrait-sub { margin: 0; }
.pub-hero .eq-portrait-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 4px; }
.pub-ranks { margin-top: clamp(14px, 2vw, 22px); }

/* ---------------------------------------------------------------- stage 5: the scene, stances, turning, mount, badge */
/* a scene of the game behind the look (our client's loading screens, WebApi\Export-LookBackdrops.ps1), shaded so the
   character and the texts stay in front */
.eq-portrait.has-scene {
  background:
    radial-gradient(ellipse 70% 46% at 50% 34%, rgb(var(--gold-rgb) / .1), transparent 70%),
    radial-gradient(ellipse 90% 34% at 50% 100%, rgba(var(--k), .1), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .12) 38%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .82)),
    var(--scene) 50% 30% / cover no-repeat;
}
.eq-look-slot { display: flex; justify-content: center; width: 100%; }
.eq-look-ctrl { display: contents; }
.eq-portrait-title { font: 600 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.eq-stance { margin-top: 10px; }
.eq-stance button { padding: 6px 14px; min-height: 34px; font-size: .74rem; }
.eq-auto-btn[hidden] { display: none; }
.eq-auto-btn[aria-pressed="true"] { border-color: var(--gold-lo); color: var(--gold-hi); }
.eq-auto-btn .eq-turn-ico { stroke-width: 2.4; }
.eq-auto-btn [d^="M8 5.5"] { fill: currentColor; }

/* the mount and the companion, under the look */
.eq-pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; width: 100%; margin-top: 12px; }
.eq-pet {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin: 0; padding: 4px 12px 4px 4px; text-align: left;
  border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .4);
}
.eq-pet-pic { position: relative; flex: none; width: 64px; height: 90px; }
.eq-pet-pic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.eq-pet-pic img[hidden] { display: none; }
.eq-pet-pic.is-none { width: 12px; }
.eq-pet figcaption { display: grid; gap: 1px; min-width: 0; }
.eq-pet-kind { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eq-pet-name { font-weight: 700; color: var(--gold); overflow-wrap: anywhere; }
.eq-pet-extra { font-size: .8rem; color: var(--text-2); }

/* the game's badge of the battle rank beside the rank: 32 x 32 to 54 x 48 (RANK1), centred in one column */
.stat-tile.has-badge { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.stat-tile.has-badge dt, .stat-tile.has-badge dd { grid-column: 2; }
/* "of 130" on its own line under "Rank N": the tile beside the badge is narrow in the side panel */
.stat-tile.has-badge dd { white-space: normal; }
.stat-tile.has-badge .tile-more { display: block; margin-top: 4px; }
.rk-badge { grid-row: 1 / span 2; justify-self: center; width: auto; max-width: 56px; height: auto; max-height: 48px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }

/* the Hall of Fame under the equipment (wide screens) */
.hof-panel { margin-top: clamp(14px, 2vw, 22px); }
.chars-stack > .hof-panel { margin-top: 0; }
.hof-panel > .section-title { margin-top: 0; }

/* stage 5: the share link of a public profile */
.pub-share { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.pub-share-note { flex-basis: 100%; margin: 0; }
.pub-share-note:empty { display: none; }
.pub-share-link { width: 100%; max-width: 34rem; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--glass); color: var(--text); padding: .25rem .5rem; }

/* the upgrade history (Upgrades / Întăriri, docs\acc1.md section 14): the mock-up acc1_upg_01, site.css tokens only */
.upg-link { margin: 14px 0 0; }
.up-sum { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); margin: 0 0 14px; }
.up-sum .stat-tile small { display: block; margin-top: 4px; font: 400 .8rem/1.3 var(--sans); color: var(--muted); white-space: normal; }
.up-note { margin: 0; color: var(--text-2); font-size: .92rem; }
.up-mat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.up-mat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .25); }
.up-mat .item-ico { width: 36px; height: 36px; }
.up-mat.wide { grid-column: span 2; }
.up-coin { display: inline-grid; place-items: center; flex: none; color: var(--gold); }
.up-mat .up-coin { width: 36px; height: 36px; }
.up-coin svg { width: 22px; height: 22px; }
.up-mat-txt { min-width: 0; }
.up-mat-kind { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.up-mat-name { display: block; color: var(--text); font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.up-mat-n { margin-left: auto; padding-left: 8px; font: 400 1.25rem/1 var(--display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; text-align: right; }
.up-mat-n.money { font-size: 1rem; }
.up-chars { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.up-char { display: grid; gap: 10px; align-content: start; }
.up-char-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.up-char-head h3 { margin: 0; font: 400 1.3rem/1.2 var(--display); color: var(--gold); overflow-wrap: anywhere; }
.up-char-head p { margin: 0; color: var(--text-2); font-size: .9rem; }
.up-char-line { margin: 0; color: var(--text-2); font-size: .9rem; }
.up-char-line strong { color: var(--text); }
.up-char dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; }
.up-char dl div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.up-char dl .wide { grid-column: 1 / -1; }
.up-char dt { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: .86rem; line-height: 1.2; }
.up-char dd { margin: 0; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; white-space: nowrap; }
.up-char dl img, .up-chip img { width: 24px; height: 24px; flex: none; border-radius: 4px; border: 1px solid rgb(var(--gold-rgb) / .28); background: rgba(0, 0, 0, .45); }
.up-char dl .up-coin { width: 24px; height: 24px; }
.up-char dl .up-coin svg { width: 20px; height: 20px; }
.up-char .up-more { justify-self: start; }
.up-idle { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.up-filters .field:has(select) { flex: 1 1 12rem; min-width: 12rem; }
.up-filters .field.field-date { flex: 1 1 11rem; min-width: 11rem; }
.up-filters input[type="date"] { width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); font: 400 1rem/1.4 var(--sans); color: var(--text); background: rgba(4, 6, 10, .65); border: 1px solid var(--gold-line); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); color-scheme: dark; }
.up-filters .field-actions { display: flex; flex: 0 0 auto; gap: 8px; align-self: flex-end; align-items: center; min-height: 46px; }
.up-filters .up-err { flex-basis: 100%; margin: -4px 0 0; color: var(--bad); font-size: .875rem; font-weight: 600; }
.up-filters .up-err:empty { display: none; }
.up-count { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.up-results.is-busy { opacity: .55; transition: opacity .2s; }
table.data.up-hist td { vertical-align: top; }
.up-when { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.up-when small { display: block; color: var(--muted); font-size: .8rem; }
.up-op { display: grid; gap: 4px; justify-items: start; }
.up-res { display: grid; gap: 4px; justify-items: start; white-space: nowrap; }
.up-lv { font: 400 1.05rem/1 var(--display); color: var(--text); white-space: nowrap; }
.up-lv-unit { font: 400 .8rem/1 var(--sans); color: var(--muted); }
.up-became { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text); white-space: normal; }
.up-became img { width: 24px; height: 24px; }
.up-tag { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.up-tag.ok { color: var(--ok); }
.up-tag.warn { color: var(--warn); }
.up-tag.bad { color: var(--bad); }
.up-tag.info { color: var(--info); }
.up-mats { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.up-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--text-2); white-space: nowrap; }
.up-bonus { color: var(--text-2); font-size: .85rem; }
.up-bonus span { display: block; }
.up-bonus .up-chance { color: var(--muted); }
.up-gone { color: var(--muted); font-weight: 400; }
.up-privacy { margin-top: 18px; color: var(--muted); font-size: .88rem; }
@media (max-width: 719px) {
  .up-mat.wide { grid-column: auto; }
  .up-hist-wrap { border: 0; background: none; overflow: visible; }
  table.data.up-hist thead { display: none; }
  table.data.up-hist, table.data.up-hist tbody, table.data.up-hist tr, table.data.up-hist td { display: block; width: auto; }
  table.data.up-hist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; margin: 0 0 10px; padding: 12px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, .35); }
  table.data.up-hist tbody tr:nth-child(even) { background: rgba(0, 0, 0, .35); }
  table.data.up-hist td { padding: 0; border: 0; }
  table.data.up-hist td.c-item { grid-column: 1 / -1; order: -2; }
  table.data.up-hist td.c-when { order: -1; }
  table.data.up-hist td.c-char { order: -1; text-align: right; }
  table.data.up-hist td.c-mats, table.data.up-hist td.c-bonus { grid-column: 1 / -1; }
  table.data.up-hist td.c-bonus:empty, table.data.up-hist td.c-mats:empty { display: none; }
  .up-when small { display: inline; margin-left: 6px; }
  .up-op { grid-auto-flow: column; align-items: center; justify-content: start; gap: 10px; }
  .up-res { justify-items: end; }
  .up-sum .stat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .up-mat-grid { gap: 6px; }
  .up-mat { padding: 7px 10px; gap: 10px; }
  .up-mat .item-ico, .up-mat .up-coin { width: 30px; height: 30px; }
  .up-mat-kind { display: none; }
  .up-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-filters .field, .up-filters .field:has(select) { grid-column: 1 / -1; min-width: 0; }
  .up-filters .field.field-date { grid-column: auto; min-width: 0; }
  .up-filters input[type="date"] { padding: 10px; }
  .up-filters .field-actions, .up-filters .up-err { grid-column: 1 / -1; }
  .up-filters .field-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------ ACC3: Manage Account and its pages (docs\acc3.md)
   The reference layout arranges the page in titled sections of full-width row buttons; same order and texts here,
   drawn with our panels, gold and blue. */
.mg { display: grid; gap: 22px; max-width: 780px; margin: 0 auto; }
.mg > .notice { margin: 0; }
.mg-title { margin: 0; text-align: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 400; }
/* SITEPUB1: the avatar in the card, top right (account-manage.js avatarPic) */
[data-manage-card] { position: relative; }
[data-manage-card] .mg-card { padding-right: 124px; }
.mg-av-link { position: absolute; top: 22px; right: 22px; display: block; width: 96px; height: 96px; border-radius: 50%; }
.mg-av { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--topbar-bg);
  border: 2px solid var(--gold-lo); box-shadow: 0 0 0 4px rgba(236, 209, 154, .08), 0 10px 26px rgba(0, 0, 0, .45); transition: border-color .2s ease, transform .2s ease; }
.mg-av-edit { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.mg-av-edit svg { width: 16px; height: 16px; }
.mg-av-link:hover .mg-av, .mg-av-link:focus-visible .mg-av { border-color: var(--gold-hi); transform: scale(1.04); }
.mg-av-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) {
  [data-manage-card] .mg-card { padding-right: 0; }
  [data-manage-card] .mg-card > div:nth-child(-n+2) { padding-right: 88px; }
  .mg-av-link { top: 16px; right: 16px; width: 72px; height: 72px; }
  .mg-av-edit { width: 26px; height: 26px; }
}
/* SITEPUB1: at a glance under the card (account-manage.js drawGlance): the characters and the last purchases */
.mg-glance { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.mg-glance[hidden] { display: none; }
.mg-gl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-gl-all { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--gold); text-decoration: none; white-space: nowrap; }
.mg-gl-all svg { width: 15px; height: 15px; transition: transform .2s ease; }
.mg-gl-all:hover svg { transform: translateX(3px); }
.mg-gl-empty { margin: 0; color: var(--text-2); }
.mg-chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.mg-chars > li { display: flex; }
.mg-char { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.mg-char:hover { border-color: rgba(236, 209, 154, .4); background: rgba(236, 209, 154, .06); transform: translateY(-2px); }
.mg-char-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-line); object-fit: contain; }
.mg-char-txt, .mg-buy-txt { display: grid; gap: 2px; min-width: 0; }
.mg-char .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-hi); }
.mg-char .nm > span:last-child, .mg-buy-txt .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-char .sub, .mg-buy-txt .sub { font-size: .85rem; color: var(--muted); }
.mg-buys { list-style: none; margin: 0; padding: 0; display: grid; }
.mg-buys li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.mg-buys li:first-child { border-top: 0; padding-top: 0; }
.mg-buy-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-line); }
.mg-buy-ico img { width: 36px; height: 36px; }
.mg-buy-price { font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.mg-buy-price strong { color: var(--gold-hi); }
@media (prefers-reduced-motion: reduce) { .mg-char:hover { transform: none; } }
.mg-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.mg-card div { min-width: 0; }
.mg-card dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.mg-card dd { margin: 3px 0 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.mg-card dd.ok { color: var(--ok); }
.mg-card dd.bad { color: var(--bad); }
.mg-card .mg-ms { color: var(--gold-hi); }
/* 4ALL GAMEPC1 round 2 (decision 517): "Last login" leads to Login History */
.mg-card dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-lo); text-underline-offset: 3px; }
.mg-card dd a:hover, .mg-card dd a:focus-visible { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }
.mg-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-size: 1.12rem; }
.mg-sec h2 svg { width: 22px; height: 22px; flex: none; }
.mg-line { display: block; width: 64px; height: 2px; margin: 10px 0 18px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), rgb(var(--gold-rgb) / 0)); }
.mg-sec > p { color: var(--text-2); }
.mg-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mg-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); color: var(--text); font: 600 .95rem/1.3 var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.mg-row:hover, .mg-row:focus-visible { border-color: var(--gold-lo); background: var(--gold-soft); color: var(--gold-hi); }
.mg-row svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.mg-new { position: absolute; top: -9px; right: 12px; padding: 1px 8px; border-radius: 4px; background: #2f9e5b; color: #fff; font: 700 .62rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.mg-big { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mg-big .btn { flex: 1 1 240px; max-width: 340px; }
/* 4ALL SITEAUTH1 (decision 524): display:flex above beat the hidden attribute, so the big buttons of Manage Account
   (Support / Donate / Forum) and the team's buttons (data-manage-staff) showed signed out and to every account */
.mg-big[hidden] { display: none; }
.mg-social { display: grid; gap: 0; }
.mg-soc { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--gold-line); }
.mg-soc:first-child { border-top: 0; padding-top: 4px; }
.mg-soc-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.mg-soc-head svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.mg-soc-head .mg-x { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(239, 107, 91, .45); border-radius: 50%; background: transparent; color: var(--bad); cursor: pointer; }
.mg-soc-head .mg-x:hover { background: rgba(239, 107, 91, .12); }
.mg-soc-head .mg-x svg { width: 16px; height: 16px; color: currentColor; }
.mg-soc-url { margin: 0; color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.mg-soc-url a { color: var(--info); }
.mg-soc-form { display: flex; gap: 10px; }
.mg-soc-form input { flex: 1 1 auto; min-width: 0; }
.mg-msg { margin: 0; font-size: .88rem; }
.mg-msg:empty { display: none; }
.mg-msg.ok { color: var(--ok); }
.mg-msg.bad { color: var(--bad); }
.mg-state { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--gold-line); font-size: .72rem; font-weight: 600; color: var(--muted); vertical-align: 1px; }
.mg-state.approved { color: var(--ok); border-color: rgba(95, 211, 138, .45); }
.mg-state.waiting { color: var(--warn); border-color: rgba(240, 180, 76, .45); }
.mg-state.refused { color: var(--bad); border-color: rgba(239, 107, 91, .45); }
.btn-danger { color: #fff; background: linear-gradient(180deg, #e0705f 0%, #c64a3a 60%, #a33a2c 100%); border-color: #d25a49; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.mg-del form { display: grid; gap: 12px; margin-top: 14px; }
.mg-del .field { max-width: 26rem; }
.mg-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.mg-back:hover { color: var(--gold-hi); }
.mg-back svg { width: 18px; height: 18px; }
.mg-head { display: grid; justify-items: center; gap: 10px; text-align: center; }
.mg-head h1, .mg-head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem); }
.mg-head .mg-line { margin: 0; width: 80px; background: linear-gradient(90deg, rgb(var(--gold-rgb) / 0), var(--gold), rgb(var(--gold-rgb) / 0)); }
.mg-head p { margin: 0; color: var(--text-2); }
.mg-head .btn { margin-top: 6px; }
.mg-head .mg-back { justify-self: start; }
.mg-head + * { margin-top: 0; }
.tk-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tk-meta svg { width: 18px; height: 18px; color: var(--gold); }
[data-acc3], [data-tickets] { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.mg-form { display: grid; gap: 16px; max-width: 30rem; margin: 18px auto 0; }
.mg-form .btn { justify-self: center; }
.mg-result { display: grid; gap: 10px; margin-top: 14px; }
.mg-items { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mg-items li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .3); }
.mg-items img { width: 32px; height: 32px; }
.mg-bag { margin-top: 18px; }
.mg-bag h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--gold-hi); font-size: 1rem; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mg-grid li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .3); font-size: .88rem; }
.mg-grid li img { width: 32px; height: 32px; flex: none; }
.mg-grid li span { min-width: 0; overflow-wrap: anywhere; }
.mg-grid li small { display: block; color: var(--muted); }
.mg-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.mg-tabs button[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-hi); border-color: var(--gold-lo); }

/* tickets (as in the reference layout: Subject with the topic icon, a green OPEN / red CLOSED pill, Created) */
.tk-subject { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.tk-subject:hover { color: var(--gold-hi); }
.tk-subject svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); flex: none; }
.tk-pill { display: inline-block; white-space: nowrap; padding: 2px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tk-pill.open { background: #2f9e5b; }
.tk-pill.closed { background: #c64a3a; }
.tk-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.tk-topics legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.tk-topic { position: relative; }
.tk-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-topic label { display: grid; justify-items: center; gap: 6px; height: 100%; padding: 12px 8px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .85rem; font-weight: 600; text-align: center; cursor: pointer; }
.tk-topic label svg { width: 26px; height: 26px; color: var(--gold); }
.tk-topic input:checked + label { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); }
.tk-topic input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.tk-form { display: grid; gap: 18px; margin-top: 18px; }
.tk-form textarea { min-height: 220px; resize: vertical; }
.tk-form .btn-lg { justify-self: center; }
.tk-shots { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-shots:empty { display: none; }
.tk-shots li { position: relative; }
.tk-shots img { display: block; max-width: 160px; max-height: 120px; border: 1px solid var(--gold-line); border-radius: var(--radius); }
.tk-shots button { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer; }
.tk-shots button svg { width: 14px; height: 14px; }
.tk-msgs { display: grid; gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.tk-msg { padding: 14px 16px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.tk-msg.team { border-color: rgba(76, 140, 246, .45); background: rgb(var(--blue-rgb) / .08); }
.tk-msg header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.tk-msg header strong { color: var(--gold-hi); }
.tk-msg.team header strong { color: var(--info); }
.tk-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-msg .tk-shots { margin-top: 10px; }
.tk-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--text-2); font-size: .9rem; }
.tk-staff-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.tk-staff-filter button[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-hi); border-color: var(--gold-lo); }

@media (max-width: 640px) {
  .mg-card { grid-template-columns: 1fr; }
  .mg-soc-form { flex-direction: column; }
  .mg-big .btn { max-width: none; }
}

/* ------------------------------------------------------------ ACC4: one account panel (docs\acc4.md). The pages that
   moved into Manage Account (Change Password, Browsers & Computers, Recent Activity, Upgrade History, the merged
   Character Management) take the look of the ACC3 pages: "Back to Panel", the title, the gold line, then panels. */
.mg-page { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.mg-page.mg-wide { max-width: none; }
.mg-page[hidden], [data-sec-body][hidden] { display: none; }
.mg-page.mg-wide > .mg-head { width: 100%; max-width: 900px; justify-self: center; }
.upg-app > .empty-state, .upg-app > .notice { max-width: 900px; margin-left: auto; margin-right: auto; }
.mg-pw-form { margin-top: 0; }
.mg-pw-form .field { margin: 0; }
.mg-forgot { margin: 18px 0 0; text-align: center; color: var(--text-2); }
.mg-links { justify-content: center; margin: 16px 0 0; }
.mg-sec .sec-list { margin-top: 0; }
/* Character Management: the table of the reference layout (Name, Class) picks the character shown under it */
.cm-panel { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; padding-bottom: clamp(12px, 1.6vw, 18px); }
table.data.cm-table td { vertical-align: middle; }
.cm-pick { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cm-pick .nm { font-weight: 600; }
.cm-pick:hover .nm, .cm-pick:focus-visible .nm { color: var(--gold-hi); }
.cm-pick .badge { margin-left: 6px; }
.cm-pick .sub { display: block; margin-top: 2px; font-size: .85rem; color: var(--text-2); }
table.data.cm-table tr.is-current td { background: var(--gold-soft); }
table.data.cm-table tr.is-current .nm { color: var(--gold-hi); }
.cm-ban { margin: 0; }

/* ------------------------------------------------------------ AVATAR1 (docs\avatar1.md): the row "Avatar" of Manage
   Account. The picture as the forum shows it (a circle), the small one as the game's saved account and the forum's
   thread list show it, the box for the game, the rules. Colours: the site's own tokens only. */
[data-avatar] { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.av-panel { display: grid; gap: 14px; }
.av-show { display: grid; justify-items: center; gap: 10px; }
.av-faces { display: flex; align-items: flex-end; gap: 18px; }
.av-big { display: block; width: 128px; height: 128px; border: 2px solid var(--gold-lo); border-radius: 50%; background: var(--topbar-bg); object-fit: cover; }
.av-small { display: block; width: 48px; height: 48px; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--topbar-bg); object-fit: cover; }
.av-pending .av-big { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.av-caption { margin: 0; color: var(--text-2); text-align: center; }
.av-actions { justify-content: center; }
.av-actions .btn svg { width: 18px; height: 18px; }
.av-hint { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.av-check { margin: 0; }
.av-check strong { color: var(--text); }
.av-rules h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-size: 1.05rem; }
.av-rules p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- 4ALL SITE3 (row 57): the page of a character */
.char-page { display: grid; gap: clamp(14px, 2vw, 22px); padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(22px, 3.5vw, 40px); }
.char-page > * { min-width: 0; }
.char-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.char-back .ico { width: 18px; height: 18px; }
.char-name {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 8px 0 0; max-width: 100%;
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); overflow-wrap: anywhere;
}
.char-name .soc-marks { margin-left: 0; gap: 10px; vertical-align: 0; }
.char-name .soc-marks svg { width: 26px; height: 26px; }
.char-kicker { margin: 0; font: 400 1.05rem/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.char-kicker::before { content: ""; display: block; width: 90px; height: 2px; margin: 0 auto 16px; background: linear-gradient(90deg, rgb(var(--gold-rgb) / 0), var(--gold), rgb(var(--gold-rgb) / 0)); }
.char-update { width: 100%; max-width: 46rem; padding: 10px 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, .25); }
.char-update p { margin: 0; }
.char-update-main { font-size: .95rem; color: var(--text-2); }
.char-update-main::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: 2px; }
.char-update-next { margin-top: 4px !important; font-size: .9rem; color: var(--muted); }
.char-update[hidden], .char-update-next[hidden], .pub-find[hidden] { display: none; }
.char-side { display: grid; gap: clamp(14px, 2vw, 22px); align-content: start; min-width: 0; }
.char-facts { margin: 0; }
.char-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgb(var(--gold-rgb) / .08); }
.char-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.char-fact dt { color: var(--muted); }
.char-fact dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
/* the middle of the equipment window: the kingdom's emblem of our client and HP / MP */
.char-emblem { gap: 18px; }
.char-emblem-img { display: block; width: 160px; max-width: 70%; height: auto; border-radius: 50%; box-shadow: 0 0 0 6px rgb(var(--gold-rgb) / .04), 0 0 34px rgba(var(--k), .22); }
.char-bars { display: grid; gap: 8px; width: 100%; max-width: 240px; }
.char-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .6); font: 600 .9rem/1.3 var(--sans); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 8px rgba(0, 0, 0, .35); font-variant-numeric: lining-nums tabular-nums;
}
.char-bar-hp { background: linear-gradient(180deg, var(--bad), rgba(239, 107, 91, .55)); }
.char-bar-mp { background: linear-gradient(180deg, var(--blue-hi), var(--blue-lo)); }
.char-bar-label { letter-spacing: .08em; }
/* 4ALL SITE3D1 part 1: the 3D view in the middle of the equipment window (char3d.js, behind data-3d="on" of the page);
   the 2D emblem stays when WebGL 2 is missing, the device is weak, or a file does not load */
.char-3d { justify-content: flex-end; gap: 12px; min-height: 470px; padding: 0 12px 14px; }
.c3d-stage { position: relative; align-self: stretch; flex: 1; min-height: 360px; }
.c3d-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.c3d-canvas:active { cursor: grabbing; }
.c3d-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--gold-lo); border-radius: var(--radius); }
.c3d-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.c3d-stage.is-ready .c3d-wait { display: none; }
.c3d-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.c3d-ctrl .btn { min-height: 32px; padding: 4px 12px; font-size: .74rem; }
.c3d-hint { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .char-3d { min-height: 340px; } .c3d-stage { min-height: 260px; } }
/* 4ALL ACH1-W1: the achievements of a character (character-public.js; the site's colours only) */
.ach-card .ach-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.ach-card .ach-count { font: 400 1.6rem/1.2 var(--display); color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; }
.ach-card .ach-count b { font-weight: 400; color: var(--gold-hi); }
.ach-card .ach-top-pct { font-variant-numeric: lining-nums tabular-nums; }
.ach-bar { height: 8px; margin: 10px 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--gold-line); overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.ach-card .ach-h3 { margin: 18px 0 8px; font: 400 .78rem/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.ach-last { list-style: none; margin: 0; padding: 0; }
.ach-last li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid rgba(236, 209, 154, .08); }
.ach-last li:last-child { border-bottom: 0; }
.ach-last-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ach-last-date { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ach-last-title { grid-column: 1 / -1; font-size: .85rem; color: var(--gold); }
.ach-card .ach-roman { display: inline-block; min-width: 2.2em; padding: 0 6px; border: 1px solid var(--gold-line); border-radius: 999px; font: 400 .72rem/1.6 var(--display); color: var(--gold); text-align: center; vertical-align: 1px; }
.ach-titles { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ach-titles li { padding: 3px 11px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-soft); color: var(--gold-hi); font-size: .85rem; }
.ach-card .ach-more { margin: 16px 0 0; font-size: .9rem; }
