/* Night raid prototype (js/minigames/raid.js): the tiles drawn over the park, the tills, the raider and the watchmen */
.rd-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.rd-night {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.rd-svg .sh {
  fill: rgba(20, 60, 36, 0.35);
  stroke: rgba(130, 210, 150, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 2 4;
}
.rd-svg .ex {
  fill: rgba(80, 200, 120, 0.35);
  stroke: #6fdc8c;
  stroke-width: 3;
}
.rd-svg .dz {
  fill: rgba(220, 60, 40, 0.45);
  stroke: rgba(255, 130, 90, 0.9);
  stroke-width: 1.5;
}
.rd-svg .nx {
  fill: rgba(255, 200, 80, 0.12);
  stroke: rgba(255, 200, 80, 0.95);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.rd-svg .mv {
  fill: rgba(150, 230, 130, 0.22);
  stroke: #9be27a;
  stroke-width: 2;
}
.rd-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.rd-till {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 32px;
  padding: 2px 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #f2c94c;
  border: 2px solid #6b4a12;
  color: #3a2608;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.rd-u {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid #fff8e8;
  background: var(--mg-sand, #e3d6bb);
}
.rd-u em {
  position: absolute;
  right: -12px;
  top: -14px;
  width: 26px;
  height: 26px;
}
.rd-u em img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}
.rd-u.g.out {
  border-color: #8a8a8a;
}
.rd-u.out > img {
  filter: grayscale(1) brightness(0.8);
}
.rd-u.hid {
  opacity: 0.55;
}
.rd-u.g {
  border-color: #e0553a;
}
.rd-u.me {
  border-color: #7fdc6a;
}
.rd-u > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.rd-st {
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 700;
  color: var(--mg-ink);
}

/* lit and ash tiles, where the tool in hand reaches (brown: the park's edge for a burrow) */
.rd-svg .lt {
  fill: rgba(255, 200, 90, 0.16);
}
.rd-svg .sm {
  fill: rgba(150, 150, 160, 0.55);
  stroke: rgba(220, 220, 230, 0.7);
  stroke-width: 1;
}
.rd-svg .tg {
  fill: rgba(120, 190, 255, 0.28);
  stroke: #9fd0ff;
  stroke-width: 2;
}
.rd-svg .tg.edge {
  fill: rgba(150, 95, 40, 0.4);
  stroke: #d9a061;
}
.rd-ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
}
.rd-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* the packing card and the tools in the raid */
.rd-kits {
  display: grid;
  gap: 6px;
  max-height: 34vh;
  overflow-y: auto;
}
.rd-kit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid var(--mg-dark, #3b2614);
  background: #fff8e8;
  color: var(--mg-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rd-kit.on {
  background: #d9efc4;
  border-color: #3a6b1e;
}
.rd-kit img {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}
.rd-tool img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.rd-kit span {
  display: grid;
}
.rd-kit b {
  font-size: 14px;
}
.rd-kit small {
  font-size: 12px;
  line-height: 1.25;
}
.rd-tools {
  display: flex;
  gap: 6px;
}
.rd-tool {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px;
  border-radius: 12px;
  border: 2px solid var(--mg-dark, #3b2614);
  background: #fff8e8;
  color: var(--mg-ink);
  font: 700 12px/1.1 'Rubik', system-ui, sans-serif;
  position: relative;
  cursor: pointer;
}
.rd-tool b {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 18px;
  border-radius: 999px;
  background: #f2c94c;
  border: 2px solid #6b4a12;
  font-size: 11px;
  line-height: 14px;
}
.rd-tool.on {
  background: #cfe6ff;
  border-color: #2d6fb0;
}
.rd-tool:disabled {
  opacity: 0.45;
  cursor: default;
}
