/* The Scope, slice 1 (2026-11-06): Magic Mesh boxes, Dead Drops and NO GRID on SL's own plot. SL's own variables only
   (--sl, --sl-rgb, --bone, --mute, --font-mono): the theme stays as it is (memory keep-sl-theme). */

.sl-mesh-layer { position: absolute; inset: 0; pointer-events: none; }

/* a box: a small star of the theme colour */
.sl-mesh-box, .sl-mesh-drop {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column-reverse;   /* name ABOVE the mark: the team's names sit below theirs, so they never collide */
  align-items: center;
  gap: 2px;
}
.sl-mesh-box i {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--sl);
  clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 80% 100%, 50% 76%, 20% 100%, 31% 60%, 0 38%, 38% 38%);
  filter: drop-shadow(0 0 5px rgba(var(--sl-rgb), 0.9));
}
.sl-mesh-box.off i { background: var(--mute); filter: none; opacity: 0.7; }
.sl-mesh-box span, .sl-mesh-drop span {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: var(--bone);
  text-shadow: 0 0 6px #000, 0 0 2px #000;
  white-space: nowrap;
  opacity: 0.85;
}

/* a Dead Drop: a gold diamond (gold in every theme: a drop reads as a drop) */
.sl-mesh-drop i {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #f5c542;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.55);
}
.sl-mesh-drop.locked i { background: rgba(245, 197, 66, 0.25); }
.sl-mesh-drop span { color: #f5c542; }
.sl-mesh-box.beyond, .sl-mesh-drop.beyond { opacity: 0.5; }

/* the tested reach (NO GRID): a dashed ring, no movement */
.sl-mesh-reach {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(var(--sl-rgb), 0.7);
  border-radius: 50%;
}
.sl-mesh-reach span {
  position: absolute;
  top: -1.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: var(--sl);
  white-space: nowrap;
  text-shadow: 0 0 6px #000;
}

/* NO GRID: the whole theme turns amber through SL's own colour variables (doubled class = it wins over a theme) */
body.sl-grid-down.sl-grid-down {
  --sl: #ff7a18;
  --sl-rgb: 255, 122, 24;
  --floor: #ff7a18;
}
/* one slim line in the page flow above the header: it pushes the page down a little, it never covers anything */
.sl-grid-banner {
  position: relative;
  z-index: 8;   /* the header's own level, so the page's background layers never cover it */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.7rem;
  padding: 4px 12px;
  border-bottom: 1px solid #ff7a18;
  background: rgba(30, 12, 2, 0.92);
  color: #ff7a18;
  font-family: var(--font-display);
  text-align: center;
}
.sl-grid-banner[hidden] { display: none; }
.sl-grid-banner b { font-size: 0.8rem; letter-spacing: 0.16em; }
.sl-grid-banner small { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.08em; color: var(--bone); }

/* a group of boxes / drops that landed on one spot */
.sl-mesh-box.group span, .sl-mesh-drop.group span { opacity: 1; }
.sl-mesh-box.tap, .sl-mesh-drop.tap { pointer-events: auto; cursor: pointer; }
