/* THE BLOOD SCOPE -- full-screen targeting ritual (js/wheel.js).
   Shared by index.html (GM, with controls) and join.html (players, read-only).
   Replaces the visual treatment of the old WOMF wheel; the legacy .wheel-*
   rules in asoc.css are now unused. Motion is transform/opacity only. */

#wheel-overlay.wheel-overlay {
  z-index: 1000; /* above the player's chat column and HUD (<= 725) */
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  backdrop-filter: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(120, 18, 32, 0.20), transparent 52%),
    rgba(2, 3, 6, 0.90);
}

.bs-shell {
  --s: min(72vmin, 600px, calc(100dvh - 290px));
  --crimson: #ff3b4a;
  --crimson-d: #b3202e;
  --steel: #9aa5b5;
  --cut: 12px;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  color: #e7ebf2;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  animation: bs-in 0.5s ease-out both;
}

/* scanline interference + vignette over the whole ritual */
.bs-shell::before,
.bs-shell::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bs-shell::before {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.bs-shell::after {
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.7) 100%);
}
.bs-shell > * { position: relative; z-index: 2; }

/* ---------- top HUD ---------- */
.bs-hud-top {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; padding: 0 16px;
}
.bs-brand {
  font-size: 13px; font-weight: 700; letter-spacing: 0.42em; color: var(--crimson);
  text-shadow: -1px 0 rgba(0, 229, 255, 0.35), 1px 0 rgba(255, 59, 74, 0.5);
}
.bs-brand-sub { font-size: 10px; letter-spacing: 0.24em; color: var(--steel); }
.bs-shell.is-glitch .bs-brand { animation: bs-glitch 0.36s steps(3) 1; }

/* ---------- the optic ---------- */
.bs-stage { position: relative; width: var(--s); height: var(--s); flex: none; }
.bs-lens {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(46, 30, 40, 0.55), rgba(8, 8, 12, 0.94) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 59, 74, 0.38),
    inset 0 0 calc(var(--s) * 0.12) rgba(0, 0, 0, 0.9),
    0 0 calc(var(--s) * 0.1) rgba(255, 40, 60, 0.16);
  animation: bs-lens-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* subtle lens distortion: curved highlight + edge darkening */
.bs-lens::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 5;
  background:
    radial-gradient(ellipse 70% 40% at 35% 18%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.55) 100%);
}

.bs-optics { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-optics circle, .bs-optics path { fill: none; }
.bs-optics .o-dim { stroke: rgba(255, 255, 255, 0.09); stroke-width: 0.6; }
.bs-optics .o-ring { stroke: var(--crimson); stroke-width: 1.3; opacity: 0.85; }
.bs-optics .o-arc { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.1; }
.bs-optics .o-fine { stroke: rgba(255, 59, 74, 0.28); stroke-width: 0.5; }
.bs-optics .o-cross { stroke: var(--crimson); stroke-width: 1.6; }
.bs-optics .o-dash { stroke: rgba(255, 59, 74, 0.55); stroke-width: 0.6; stroke-dasharray: 3 3; }
.bs-optics .o-center { stroke-width: 0.9; }
.bs-optics .o-brk { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.9; }
.bs-optics .o-tick { stroke: rgba(255, 255, 255, 0.4); stroke-width: 0.8; }
.bs-optics .o-range { stroke: rgba(255, 59, 74, 0.5); stroke-width: 0.7; }
.bs-spin { transform-box: fill-box; transform-origin: center; animation: bs-spin 70s linear infinite; }

/* ---------- candidates ---------- */
.bs-ring { position: absolute; inset: 0; }
.bs-cand {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--s) * 0.125);
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) scale(var(--sc, 1));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  opacity: 0.6;
  will-change: transform;
}
.bs-av {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #10131a;
  box-shadow: 0 0 0 2px var(--frame, #6f7885), 0 0 0 4px rgba(0, 0, 0, 0.65);
}
.bs-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-av b { font-size: calc(var(--s) * 0.05); color: #cfd6e2; }
/* No picture on file: a frame-tinted sigil plate with scanlines, a faint
   crosshair and the hero's initial. */
.bs-av.is-sigil {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--frame, #6f7885) 55%, #10131a) 0%, #0a0c12 78%);
}
.bs-av.is-sigil::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--frame, #6f7885) 70%, transparent);
  background:
    linear-gradient(var(--frame, #6f7885), var(--frame, #6f7885)) 50% 0 / 1px 22% no-repeat,
    linear-gradient(var(--frame, #6f7885), var(--frame, #6f7885)) 50% 100% / 1px 22% no-repeat,
    linear-gradient(var(--frame, #6f7885), var(--frame, #6f7885)) 0 50% / 22% 1px no-repeat,
    linear-gradient(var(--frame, #6f7885), var(--frame, #6f7885)) 100% 50% / 22% 1px no-repeat;
  opacity: 0.7;
}
.bs-av.is-sigil b {
  position: relative; font-weight: 900; letter-spacing: 0;
  font-size: calc(var(--s) * 0.06); color: #fff; text-shadow: 0 0 calc(var(--s) * 0.014) var(--frame, #6f7885), 0 0 calc(var(--s) * 0.03) var(--frame, #6f7885);
}
.bs-cand em {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px;
  font-style: normal; font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; color: #fff; opacity: 0;
  text-shadow: 0 0 6px rgba(255, 59, 74, 0.8);
}
.bs-cand.is-hot { opacity: 1; --sc: 1.14; }
.bs-cand.is-hot em { opacity: 1; }
.bs-cand.is-hot .bs-av { box-shadow: 0 0 0 2px var(--crimson), 0 0 calc(var(--s) * 0.03) rgba(255, 59, 74, 0.75); }
.bs-cand.is-locked {
  opacity: 1; --sc: 1.55; z-index: 3;
  transition: transform 0.85s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.5s ease;
}
.bs-cand.is-locked .bs-av { box-shadow: 0 0 0 3px var(--crimson), 0 0 calc(var(--s) * 0.05) rgba(255, 59, 74, 0.85); }
.bs-cand.is-locked em { opacity: 0; }
.bs-cand.is-dimmed { opacity: 0.1; }

/* ---------- reticle ---------- */
.bs-reticle {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 0.19); aspect-ratio: 1; z-index: 4;
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px)));
  scale: 1.28;
  transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.2, 1), scale 0.4s cubic-bezier(0.3, 1.2, 0.3, 1);
  animation: bs-jitter 0.24s steps(1) infinite;
  pointer-events: none;
}
.bs-reticle i { position: absolute; width: 24%; height: 24%; border: 0 solid var(--crimson); filter: drop-shadow(0 0 3px rgba(255, 59, 74, 0.8)); }
.bs-reticle i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.bs-reticle i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.bs-reticle i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.bs-reticle i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.bs-shell[data-stage='lock'] .bs-reticle,
.bs-shell[data-stage='strike'] .bs-reticle,
.bs-shell[data-stage='result'] .bs-reticle { scale: 1; animation: none; }
.bs-shell[data-stage='standby'] .bs-reticle { opacity: 0.45; }

/* ---------- shadow broker cameo (ACCESS DENIED easter egg) ---------- */
.bs-broker {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 0.12); aspect-ratio: 1; z-index: 3;
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px)));
  border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--crimson), 0 0 18px rgba(255, 59, 74, 0.8);
}
.bs-broker[hidden] { display: none; }
.bs-broker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-denied {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: rgba(120, 10, 24, 0.55); padding: 12px 0; letter-spacing: 0.3em;
}
.bs-denied[hidden] { display: none; }
.bs-denied b { font-size: calc(var(--s) * 0.04); color: #fff; text-shadow: -1px 0 rgba(0, 229, 255, 0.4), 1px 0 rgba(255, 59, 74, 0.7); }
.bs-denied span { font-size: 10px; color: #ffc9ce; }
.bs-shell.is-denied .bs-cand { opacity: 0.12; }
.bs-shell.is-denied .bs-optics .o-ring,
.bs-shell.is-denied .bs-optics .o-cross { stroke: #ff6b78; }

/* ---------- readout ---------- */
.bs-readout { min-height: 74px; text-align: center; padding: 0 16px; }
.bs-status {
  font-size: 12px; letter-spacing: 0.3em; color: var(--steel); min-height: 15px;
  text-shadow: -1px 0 rgba(0, 229, 255, 0.28), 1px 0 rgba(255, 59, 74, 0.4);
}
.bs-name {
  margin: 6px 0 4px; min-height: 28px; font-size: clamp(16px, 3.4vmin, 28px); font-weight: 700;
  letter-spacing: 0.12em; color: #fff; text-shadow: 0 0 14px rgba(255, 59, 74, 0.55);
  overflow-wrap: anywhere;
}
.bs-subline { font-size: 11px; letter-spacing: 0.26em; color: var(--crimson); min-height: 14px; }
.bs-shell.is-confirmed .bs-status { color: #ffd0d4; }

/* ---------- strike ---------- */
.bs-flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 90, 90, 0.5), rgba(255, 59, 74, 0.12) 55%, transparent 80%);
}
.bs-shell.is-struck .bs-flash { animation: bs-muzzle 0.18s ease-out 1; }
.bs-shell.is-struck .bs-stage { animation: bs-recoil 0.34s ease-out 1; }
.bs-fracture {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 0.27); aspect-ratio: 1; z-index: 4;
  transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; pointer-events: none;
  background:
    linear-gradient(32deg, transparent 47.6%, rgba(255, 59, 74, 0.95) 48.2% 49.2%, transparent 49.8%),
    linear-gradient(-58deg, transparent 46.8%, rgba(255, 59, 74, 0.9) 47.4% 48.4%, transparent 49%),
    linear-gradient(101deg, transparent 49.2%, rgba(255, 140, 150, 0.85) 49.7% 50.5%, transparent 51%),
    linear-gradient(-14deg, transparent 51.6%, rgba(255, 59, 74, 0.8) 52.1% 52.9%, transparent 53.4%);
  mix-blend-mode: screen;
}
.bs-shell.is-fractured .bs-fracture { opacity: 1; transition: opacity 0.12s linear; }
.bs-shell.is-fractured .bs-cand.is-locked .bs-av { filter: saturate(0.35) contrast(1.25); animation: bs-av-glitch 0.5s steps(4) 1; }
.bs-shell.is-signal-loss .bs-lens { animation: bs-loss 0.7s ease-out forwards; }
.bs-shell.is-signal-loss .bs-lens::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 7; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.35) 2px 5px);
}

/* ---------- result ---------- */
.bs-shell[data-stage='result'] .bs-stage { opacity: 0.22; transition: opacity 0.5s ease; }
.bs-shell[data-stage='result'] .bs-readout { visibility: hidden; }
.bs-result {
  position: absolute; left: 50%; top: 46%; z-index: 8;
  transform: translate(-50%, -50%);
  width: min(92vw, 410px); padding: 22px 24px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 8, 14, 0.96), rgba(7, 6, 10, 0.97));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px rgba(255, 59, 74, 0.6), inset 0 0 40px rgba(179, 32, 46, 0.18);
  animation: bs-result-in 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.bs-result[hidden] { display: none; }
.bs-res-kicker { font-size: 12px; letter-spacing: 0.34em; color: var(--crimson); font-weight: 700; }
.bs-res-portrait { position: relative; width: 92px; margin: 6px 0 2px; }
.bs-res-portrait .bs-av { box-shadow: 0 0 0 3px var(--crimson), 0 0 0 7px rgba(0, 0, 0, 0.7), 0 0 26px rgba(255, 59, 74, 0.6); filter: saturate(0.55) contrast(1.15); }
.bs-res-portrait::before, .bs-res-portrait::after {
  content: ''; position: absolute; background: var(--crimson); opacity: 0.85;
}
.bs-res-portrait::before { left: 50%; top: -12px; bottom: -12px; width: 1.5px; transform: translateX(-50%); }
.bs-res-portrait::after { top: 50%; left: -12px; right: -12px; height: 1.5px; transform: translateY(-50%); }
.bs-res-name { font-size: clamp(18px, 4.6vmin, 24px); font-weight: 700; letter-spacing: 0.1em; color: #fff; overflow-wrap: anywhere; }
.bs-res-sentence { font-size: 13px; letter-spacing: 0.26em; color: #ffd0d4; padding: 4px 10px; background: rgba(179, 32, 46, 0.3); }
.bs-res-quote { font-size: 11.5px; line-height: 1.5; color: var(--steel); font-style: italic; max-width: 32ch; }
.bs-res-src { font-size: 10px; letter-spacing: 0.24em; color: rgba(255, 59, 74, 0.8); }

/* ---------- controls ---------- */
.bs-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px; min-height: 40px; }
.bs-btn {
  --cut: 9px;
  border: 0; cursor: pointer; padding: 11px 20px; font: 700 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.18em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  color: #fff; background: #1a1d25; box-shadow: inset 0 0 0 1px rgba(154, 165, 181, 0.45);
  transition: background 0.15s, box-shadow 0.15s;
}
.bs-btn:hover:not(:disabled) { background: #232733; }
.bs-btn:disabled { opacity: 0.45; cursor: default; }
.bs-btn-primary { background: linear-gradient(180deg, #8f1a28, #5e0f1a); box-shadow: inset 0 0 0 1px rgba(255, 59, 74, 0.75); }
.bs-btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #a81f2f, #6d1220); }
.bs-btn-danger { background: #2b0d12; box-shadow: inset 0 0 0 1px rgba(255, 59, 74, 0.55); color: #ffb3ba; }
.bs-btn-ghost { background: transparent; }
.bs-close {
  position: absolute; top: 14px; right: 14px; z-index: 9; width: 34px; height: 34px; border: 0; cursor: pointer;
  color: #cfd6e2; background: #14171d; font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 0 1px rgba(154, 165, 181, 0.4);
}
.bs-close[hidden] { display: none; }
.bs-close:hover { background: #232733; }

/* ---------- persistent target indicator (roster / leaderboard) ---------- */
.bs-mark {
  display: inline-block; position: relative; flex: none; width: 13px; height: 13px; margin-left: 5px; vertical-align: middle;
  border: 1.5px solid #ff3b4a; border-radius: 50%; box-shadow: 0 0 6px rgba(255, 59, 74, 0.7);
  animation: bs-mark-pulse 2.6s ease-in-out infinite;
}
.bs-mark::before, .bs-mark::after { content: ''; position: absolute; background: #ff3b4a; }
.bs-mark::before { left: 50%; top: -4px; bottom: -4px; width: 1.5px; transform: translateX(-50%); }
.bs-mark::after { top: 50%; left: -4px; right: -4px; height: 1.5px; transform: translateY(-50%); }

/* ---------- public announcement in chat ---------- */
.bloodscope-chat-message .shadow-broker-transmission,
.bloodscope-chat-message .shadow-broker-body {
  white-space: pre-line;
}
.bloodscope-chat-message .shadow-broker-transmission {
  border-left: 3px solid #ff3b4a;
  background: linear-gradient(90deg, rgba(255, 59, 74, 0.16), rgba(255, 59, 74, 0.02) 70%);
}

/* ---------- keyframes ---------- */
@keyframes bs-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-lens-in { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
@keyframes bs-spin { to { transform: rotate(360deg); } }
@keyframes bs-jitter { 0% { translate: 0 0; } 33% { translate: 1.5px -1px; } 66% { translate: -1px 1.5px; } 100% { translate: 0 0; } }
@keyframes bs-glitch { 0% { transform: translateX(0); } 33% { transform: translateX(-3px); } 66% { transform: translateX(3px); } 100% { transform: translateX(0); } }
@keyframes bs-muzzle { 0% { opacity: 0; } 25% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes bs-recoil { 0% { transform: translate(0, 0); } 20% { transform: translate(-4px, 3px); } 45% { transform: translate(3px, -2px); } 70% { transform: translate(-2px, 1px); } 100% { transform: translate(0, 0); } }
@keyframes bs-av-glitch { 0% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
@keyframes bs-loss { 0% { opacity: 1; filter: none; } 100% { opacity: 0.4; filter: grayscale(0.6) contrast(1.3); } }
@keyframes bs-result-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes bs-mark-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- reduced motion / simplified presentation ---------- */
@media (prefers-reduced-motion: reduce) {
  .bs-shell, .bs-shell * , .bs-mark { animation: none !important; transition: none !important; }
  .bs-flash { display: none; }
}
.bs-shell.bs-reduced, .bs-shell.bs-reduced * { animation: none !important; transition: none !important; }
.bs-shell.bs-reduced .bs-flash { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .bs-shell { --s: min(88vw, 62dvh, calc(100dvh - 260px)); gap: 10px; }
  .bs-brand { font-size: 11px; letter-spacing: 0.3em; }
  .bs-brand-sub { font-size: 9px; letter-spacing: 0.16em; }
  .bs-cand em { font-size: 9px; letter-spacing: 0.08em; }
  .bs-readout { min-height: 66px; }
  .bs-btn { padding: 10px 14px; font-size: 11px; }
}

/* GM: brief highlight on the Blood Tribute panel after VIEW TRIBUTE */
.bs-section-ping { animation: bs-section-ping 2.2s ease-out 1; }
@keyframes bs-section-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 74, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(255, 59, 74, 0); }
}

/* ---------- GM command rail: BLOOD SCOPE, directly under POISON / CHAOS ----------
   Same anatomy as the CHAOS button (drawn icon, label, one-line caption) in
   the scope's crimson. Reading order: ... POISON (10), CHAOS (11), BLOOD SCOPE
   (11, after CHAOS in the DOM -- see chaos.js ensureRailButton), LIBRARY (12). */
html body #battle-controls-panel #blood-scope-gm-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0 !important;
  min-height: var(--rail-btn, 46px) !important;
  height: var(--rail-btn, 46px) !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  box-sizing: border-box !important;
  order: 11 !important;
  cursor: pointer;
  border: 1px solid #b3202e !important;
  border-radius: 7px !important;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 18% 110%, rgba(255, 59, 74, .26), transparent 42%),
    linear-gradient(110deg, #14060a, #34101a 52%, #12060a) !important;
  color: #ffd9dd !important;
  box-shadow: inset 0 0 0 2px rgba(10, 3, 5, .72), inset 0 0 22px rgba(255, 59, 74, .12), 0 0 12px rgba(255, 59, 74, .14) !important;
  transition: box-shadow .15s, border-color .15s;
}
html body #battle-controls-panel #blood-scope-gm-button .blood-scope-action-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ff5a68;
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 59, 74, .6));
  transition: transform .15s;
}
html body #battle-controls-panel #blood-scope-gm-button .gm-action-copy {
  display: grid;
  gap: 3px;
  padding: 0;
  font: inherit;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
}
html body #battle-controls-panel #blood-scope-gm-button .gm-action-copy b {
  font: 900 12px/1.1 var(--font-machine, ui-monospace, Menlo, Consolas, monospace);
  letter-spacing: .2em;
  text-shadow: 0 0 8px rgba(255, 70, 85, .8);
}
html body #battle-controls-panel #blood-scope-gm-button .gm-action-copy small {
  font: 800 8px/1 var(--font-machine, ui-monospace, Menlo, Consolas, monospace);
  letter-spacing: .16em;
  color: #c98a92;
}
html body #battle-controls-panel #blood-scope-gm-button:hover:not(:disabled),
html body #battle-controls-panel #blood-scope-gm-button:focus-visible {
  border-color: #ff3b4a !important;
  box-shadow: inset 0 0 0 2px rgba(10, 3, 5, .72), inset 0 0 22px rgba(255, 59, 74, .22), 0 0 18px rgba(255, 59, 74, .32) !important;
}
html body #battle-controls-panel #blood-scope-gm-button:hover:not(:disabled) .blood-scope-action-icon { transform: scale(1.1) rotate(45deg); }
html body #battle-controls-panel #blood-scope-gm-button:disabled { opacity: .5; cursor: default; }
html body #battle-controls-panel #blood-scope-gm-button.is-active { border-color: #ff3b4a !important; opacity: 1; }
html body #battle-controls-panel #blood-scope-gm-button.is-active .gm-action-copy small { color: #ff8d98; }
html body #battle-controls-panel #blood-scope-gm-button.is-recall {
  border-color: #e0a030 !important;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    linear-gradient(110deg, #160f05, #3a2608 52%, #140d04) !important;
  color: #ffe6b8 !important;
}
html body #battle-controls-panel #blood-scope-gm-button.is-recall .blood-scope-action-icon { stroke: #ffb347; filter: drop-shadow(0 0 6px rgba(255, 179, 71, .55)); }
html body #battle-controls-panel #blood-scope-gm-button.is-recall .gm-action-copy b { text-shadow: 0 0 8px rgba(255, 179, 71, .7); }
html body #battle-controls-panel #blood-scope-gm-button.is-recall .gm-action-copy small { color: #d8b072; }
@media (prefers-reduced-motion: reduce) {
  html body #battle-controls-panel #blood-scope-gm-button,
  html body #battle-controls-panel #blood-scope-gm-button .blood-scope-action-icon { transition: none; }
}

/* ---------- GM setup: hidden SECRET TARGET picker ---------- */
.wheel-setup-rig {
  display: grid; gap: 6px; margin-top: 12px; padding: 10px 12px;
  border: 1px dashed rgba(255, 59, 74, 0.45); background: rgba(255, 59, 74, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.wheel-setup-rig[hidden] { display: none; }
.wheel-setup-rig-title { font: 800 10px/1 var(--font-machine, ui-monospace, Menlo, Consolas, monospace); letter-spacing: 0.22em; color: #ff5a68; }
.wheel-setup-rig select {
  width: 100%; padding: 8px 10px; background: #0d0a10; color: #ffd9dd;
  border: 1px solid rgba(255, 59, 74, 0.5); font: 700 12px var(--font-machine, ui-monospace, Menlo, Consolas, monospace);
}
.wheel-setup-rig small { font-size: 10px; letter-spacing: 0.04em; color: #a98890; }
