/* Line-of-people editor. Used on the site (theme tokens) and in wp-admin (fallback colours).
   The scene is drawn like the game's pavement, so its colours stay the same in light and dark mode. */

.gcl-scene {
  --pave: #dfe1e6;
  --pave-joint: rgba(0, 0, 0, .06);
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background-color: var(--pave);
  background-image:
    linear-gradient(var(--pave-joint) 1px, transparent 1px),
    linear-gradient(90deg, var(--pave-joint) 1px, transparent 1px);
  background-size: 28px 14px;
  padding: 10px 12px 22px;
  color: #1d2327;
  overflow: hidden;
}

.gcl-scene-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gcl-front {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: #2d7d46;
  border-radius: 6px;
  padding: 3px 8px;
}

.gcl-total { font-size: 12px; font-weight: 700; color: #3c434a; }

.gcl-crowd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.gcl-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.gcl-people {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  max-width: 100%;
  padding: 0 3px;
}
.gcl-people .gcl-person { margin: 0 1px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .12)); }

.gcl-crowd-more {
  align-self: center;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #3c434a;
}

/* Count under each group, in the group's colour. */
.gcl-group-foot {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 2px solid var(--gc, #8c8f94);
  border-radius: 999px;
  padding: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.gcl-group-foot button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #f0f0f1;
  color: #1d2327;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.gcl-group-foot button:hover { background: #dcdcde; }

.gcl-group-foot output { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }

/* The rope barrier along the back of the pavement, like in the game. */
.gcl-rope {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #d63638 0 22px, #f2f2f2 22px 26px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}

.gcl-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 2px 4px;
  color: #50575e;
  font-size: 13px;
}
.gcl-empty .gcl-person rect,
.gcl-empty .gcl-person circle { stroke: #8c8f94; stroke-dasharray: 2 1.5; }
.gcl-empty .gcl-person ellipse { display: none; }

.gcl-add { margin: 12px 0 0; }

.gcl-add-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #646970);
}

.gcl-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 6px;
}

.gcl-pick {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 54px;
  border-radius: 10px;
  border: 1px solid var(--line, #c3c4c7);
  background: var(--panel, #fff);
  color: var(--text, #1d2327);
  cursor: pointer;
  padding: 4px 2px;
  font: inherit;
}
.gcl-pick span {
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted, #646970);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gcl-pick:hover { border-color: var(--accent, #2271b1); transform: translateY(-1px); }
.gcl-pick:active { transform: translateY(0); }

.gcl-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.gcl-tools button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--muted, #646970);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.gcl-tools button:hover { color: var(--text, #1d2327); text-decoration: underline; }

.gcl-pick:focus-visible,
.gcl-group-foot button:focus-visible,
.gcl-tools button:focus-visible {
  outline: 2px solid var(--accent, #2271b1);
  outline-offset: 2px;
}

/* wp-admin layout */
.gcl-admin-line { border: 1px solid #dcdcde; border-radius: 8px; padding: 12px; margin: 0 0 12px; background: #fff; }
.gcl-admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gcl-admin-type { margin: 10px 0 0; }
