/*
 * TAG Legal Desk v2.1, J154 (29 Sep 2026): pointer play (js\v21_pvp.js), the Director's file's local pointer sprite
 * and recovery chip (C:\Users\smurt\Downloads\TAG_Atelier_v3_Solo.html, CSS lines 82 to 86 and the arena-recovery
 * rules), recoloured with the desk's own tokens.
 * While your own pointer is knocked (html[data-v21-pvp="displaced"]) the system pointer is hidden over the page and
 * your pointer is drawn where the bump sent it (span.v21pvp-me, on the page's own effect layer #v21-atl-layer, above
 * the colleagues' pointers). The attribute goes the instant the knock drops (over anything you can press or type in,
 * the window left, a sheet opened), so the system pointer is back in that same frame.
 * Decoration only: never pressable, never read out, never focusable. Reduced motion (the computer's and the desk's
 * own), Calm and forced colours: no drawn pointer and the system pointer never hidden. Never printed.
 */

/* ======================================================================= the hidden system pointer */

/* Tied to the same states as the drawn pointer: whenever it is hidden, so is this rule, even for a moment. */
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html[data-v21-pvp="displaced"]:not([data-calm="on"]):not([data-quiet="on"]):not([data-v21-welfare="on"]):not([data-day-matters]):not([data-motion="reduced"]) #app-main,
  html[data-v21-pvp="displaced"]:not([data-calm="on"]):not([data-quiet="on"]):not([data-v21-welfare="on"]):not([data-day-matters]):not([data-motion="reduced"]) #app-main * { cursor: none !important; }
}

/* ======================================================================= your drawn pointer */

.v21pvp-me {
  position: absolute; left: 0; top: 0; z-index: 3; display: block; width: 32px; height: 36px;
  pointer-events: none; will-change: transform; transform: translate3d(-100px, -100px, 0);
  filter: drop-shadow(0 1px 1.5px rgba(17, 31, 22, .35));
}
.v21pvp-me[hidden] { display: none !important; }
.v21pvp-me svg { display: block; overflow: visible; }
.v21pvp-me .v21pvp-arrow { stroke: #f9fcf7; stroke-width: 1.4; stroke-linejoin: round; }
.v21pvp-me.v21pvp-img { background-repeat: no-repeat; background-position: 0 0; background-size: 100% 100%; }

/* ======================================================================= the chip beside it (the file's recovery chip) */

.v21pvp-chip {
  position: absolute; left: 0; top: 0; z-index: 4; display: block; max-width: min(300px, calc(100vw - 16px));
  pointer-events: none; will-change: transform;
  padding: 5px 10px 5px 9px; border-radius: 8px; border-left: 3px solid transparent;
  background: var(--glass-2, var(--solid, #ffffff)); color: var(--ink, #25352b);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--glass-edge, rgba(255, 255, 255, .72)), 0 0 0 1px var(--glass-rim, rgba(27, 27, 27, .07)), 0 4px 14px rgba(17, 31, 22, .16);
  font-size: 12px; line-height: 1.35; font-weight: 600; white-space: nowrap;
}
.v21pvp-chip[hidden] { display: none !important; }
.v21pvp-chip.v21pvp-sliding { border-left-color: var(--brand-text, #233d26); }
.v21pvp-probe { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ======================================================================= the bump power picker (your chip's menu) */

.v21pvp-pop { max-width: min(340px, calc(100vw - 24px)); }
.v21pvp-pop-box { display: grid; gap: 8px; padding: 2px; }
.v21pvp-pop-box h3 { margin: 0; font-size: 15px; }
.v21pvp-list { display: grid; gap: 4px; }
.v21pvp-opt {
  display: grid; grid-template-columns: 16px 1fr auto auto; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--glass-rim, rgba(34, 58, 43, .22)); background: var(--solid, #ffffff); color: var(--ink, #25352b);
}
.v21pvp-opt:hover { background: var(--brand-soft, rgba(44, 66, 48, .065)); }
.v21pvp-opt:focus-visible { outline: 2px solid var(--focus, var(--brand-text, #233d26)); outline-offset: 2px; }
.v21pvp-opt[aria-checked="true"] { border-color: var(--brand-text, #233d26); box-shadow: inset 3px 0 0 var(--brand-text, #233d26); }
.v21pvp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-2, #526253); box-sizing: border-box; }
.v21pvp-opt[aria-checked="true"] .v21pvp-dot { border-color: var(--brand-text, #233d26); background: radial-gradient(circle, var(--brand-text, #233d26) 0 3px, transparent 3.5px); }
.v21pvp-name { font-weight: 600; }
.v21pvp-meta { font-size: 12px; white-space: nowrap; }
.v21pvp-said:empty { display: none; }
.v21pvp-set { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v21pvp-set label { font-weight: 600; }

/* ======================================================================= the still and plain states */

:root[data-quiet="on"] .v21pvp-me, :root[data-quiet="on"] .v21pvp-chip,
:root[data-v21-welfare="on"] .v21pvp-me, :root[data-v21-welfare="on"] .v21pvp-chip,
:root[data-calm="on"] .v21pvp-me, :root[data-calm="on"] .v21pvp-chip,
:root[data-day-matters] .v21pvp-me, :root[data-day-matters] .v21pvp-chip,
:root[data-motion="reduced"] .v21pvp-me, :root[data-motion="reduced"] .v21pvp-chip { display: none !important; }
:root[data-theme="high_contrast"] .v21pvp-me { filter: none; }
:root[data-theme="high_contrast"] .v21pvp-chip { background: #ffffff; color: #000000; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pvp-chip.v21pvp-sliding { border-left-color: #000000; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .v21pvp-chip { background: var(--solid, #ffffff); } }
:root[data-glass="reduced"] .v21pvp-chip { background: var(--solid, #ffffff); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
  .v21pvp-me, .v21pvp-chip { display: none !important; }
}
@media (forced-colors: active) {
  .v21pvp-me, .v21pvp-chip { display: none !important; }
  .v21pvp-opt { forced-color-adjust: auto; border: 1px solid CanvasText; }
  .v21pvp-opt[aria-checked="true"] { outline: 2px solid Highlight; }
  .v21pvp-dot { border-color: CanvasText; }
  .v21pvp-opt[aria-checked="true"] .v21pvp-dot { background: Highlight; }
}
@media print {
  .v21pvp-me, .v21pvp-chip { display: none !important; }
}
