/* «Аксессуар на аватарку» (0.39, club-acc.js): an element of its own (.cacc) lies exactly over a face; its drawing
   (100 × 100 = the face) is worn on it (0.50): a hat centred on the head, its brim on the top fifth, rising up to
   ~35 % of the face above it; glasses across the eyes. Wherever a box clips its content (the strip scrolls sideways,
   a board's name ends in an ellipsis), it gets that room above with a padding and the same negative margin: nothing
   moves. Taps go through it. No animation: a still look, reduced motion or not. */
.cacc { position: absolute; pointer-events: none; }
.cacc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Glasses (.cacc-eyes): across a photo's eyes, 43 % down; on Discord's default avatar on its logo's eyes (52 %); over
   letters pushed up onto the forehead, the letters left readable. */
.cacc-svg .cacc-eyes { transform: translateY(var(--cacc-eyes, 0px)); }
.person:has(> .av > img[src*="embed/avatars/"]) > .cacc, .pp-head:has(> .pp-av > img[src*="embed/avatars/"]) > .cacc,
.cacc-box:has(> .club-face > img[src*="embed/avatars/"]) > .cacc, .react-who:has(> img[src*="embed/avatars/"]) > .cacc { --cacc-eyes: 8px; }
.person:not(:has(> .av > img)) > .cacc, .pp-head:not(:has(> .pp-av > img)) > .cacc, .cacc-box:not(:has(> .club-face > img)) > .cacc { --cacc-eyes: -22px; }

/* The participants strip (clubShop.nameAfter): the chip's 22-px face sits 3 px in and in the middle (style.css
   .person); it grows on hover, so does the accessory. On a phone the chip is the face (34 px inside a 2-px edge). The
   badge and the sync dot come later in the chip: drawn over it. The strip clips its row: with an accessory in it, its
   box reaches 5 px higher on a computer (11 px above a face) and 7 px on a phone (12 px), into the header's padding. */
.person > .cacc { left: 3px; top: calc(50% - 11px); width: 22px; height: 22px; transition: transform .12s ease; }
.person:hover > .cacc { transform: scale(1.06); }
header .participants:has(> .person > .cacc) { padding-top: 7px; margin-top: -5px; }
@media (max-width: 760px) {
  .person > .cacc { left: 0; top: 0; width: 100%; height: 100%; }
  header .participants:has(> .person > .cacc) { padding-top: 10px; margin-top: -7px; }
}

/* A flying reaction's pill (clubShop.sigHtml): over its face (16 px, 18 in a frame); no face, no accessory. */
.react-who:has(> .cacc) { position: relative; }
.react-who > .cacc { left: 2px; top: calc(50% - 8px); width: 16px; height: 16px; }
.react-who[data-club-frame] > .cacc { top: calc(50% - 9px); width: 18px; height: 18px; }
.react-who:not(:has(> img)) > .cacc { display: none; }

/* The games' boards and podiums (clubShop.face): the face and the accessory in a box of their own, laid out where the
   face was (hall-game.css, club-looks.css). The box takes the face's own size — whichever .club-face rule wins (club-
   powers.css draws them 30 px) — and one's own previews in the shop ask for theirs (.cacc-me). A board's name clips
   its line: it gets the hat's room above; a podium's medal stands a little higher. */
.cacc-box { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.cacc-box > .club-face { display: block; margin: 0; }
.cacc-box > .cacc-me { width: var(--fs); height: var(--fs); }
.cacc-box > .cacc { inset: 0; }
.hg-name > .cacc-box { margin-right: 6px; vertical-align: -5px; }
.hg-name:has(> .cacc-box > .cacc) { padding-top: 12px; margin-top: -12px; }
div.hg-step > .cacc-box { margin: 2px 0; }
div.hg-step > .cacc-box:has(> .cacc) { margin-top: 9px; }
div.hg-step > .cacc-box > .club-face[data-club-frame] { border-width: 3px; }

/* The mini-profile: over its 56-px face, the first thing in its head. */
.pp-head:has(> .cacc) { position: relative; }
.pp-head > .cacc-pp { left: 0; top: calc(50% - 28px); width: 56px; height: 56px; }

/* The shop's card: the sixteen on one's own face (a hat's room above each), how the hall sees one, the tile's
   picture. «Сейчас» is a line under the name (a hat would cover a corner label). */
.cacc-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cacc-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 100px; padding: 20px 4px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.cacc-opt:hover:not(:disabled) { background: var(--line); }
.cacc-opt.on { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
.cacc-opt:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.cacc-opt:disabled { cursor: default; }
.cacc-opt .club-face[data-club-frame] { border-width: 3px; }
.cacc-opt-n { line-height: 1.2; text-align: center; }
.cacc-opt-now { margin-top: -4px; color: var(--ok); font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.cacc-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: calc(var(--fs, 20px) * .36); }
.cacc-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 2px 10px; color: var(--muted); font-size: 12.5px; }
.cacc-chip { padding-top: 4px; padding-bottom: 4px; }
.club-tile-pv .cacc-box { margin-top: 10px; }
@media (max-width: 380px) { .cacc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .person > .cacc { transition: none; } }
